-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
@casey_baggz_omni
committed
Oct 3, 2024
1 parent
aa3bed5
commit 8422f6b
Showing
6 changed files
with
376 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
import { css } from '@cerberus/styled-system/css' | ||
import Link from 'next/link' | ||
import { button } from '@cerberus/styled-system/recipes' | ||
import CerberusLogo from './cerberus-logo' | ||
import { vstack } from '@cerberus-design/styled-system/patterns' | ||
import { grid, gridItem } from '@cerberus/styled-system/patterns' | ||
|
||
export default function HomeHero() { | ||
return ( | ||
<div | ||
className={grid({ | ||
columns: 1, | ||
gap: 4, | ||
mt: '8rem', | ||
lg: { | ||
columns: 2, | ||
gridTemplateColumns: '1fr 1fr', | ||
mt: '12rem', | ||
pxi: '8', | ||
}, | ||
})} | ||
> | ||
<main | ||
className={gridItem({ | ||
bgColor: 'page.surface.100', | ||
mxi: '2', | ||
pxi: '6', | ||
py: 8, | ||
rounded: '2xl', | ||
md: { | ||
pxi: '8', | ||
py: 14, | ||
}, | ||
lg: { | ||
pxi: '10', | ||
py: 16, | ||
}, | ||
})} | ||
> | ||
<div | ||
className={vstack({ | ||
alignItems: 'flex-start', | ||
gap: 4, | ||
})} | ||
> | ||
<h1 | ||
className={css({ | ||
maxW: '44ch', | ||
textStyle: 'display-sm', | ||
textWrap: 'pretty', | ||
lg: { | ||
pb: 4, | ||
textStyle: 'display-lg', | ||
}, | ||
})} | ||
> | ||
Protect your brand with{' '} | ||
<span | ||
className={css({ | ||
display: 'inline-block', | ||
color: 'danger.text.200', | ||
})} | ||
> | ||
Cerberus | ||
</span> | ||
</h1> | ||
|
||
<p | ||
className={css({ | ||
maxW: '44ch', | ||
textStyle: 'body-lg', | ||
lg: { | ||
lineHeight: 'relaxed', | ||
textStyle: 'body-xl', | ||
}, | ||
})} | ||
> | ||
Create React design systems effortlessly, or use our out-of-the-box | ||
settings. | ||
</p> | ||
|
||
<div | ||
className={css({ | ||
pt: 10, | ||
lg: { | ||
pt: 14, | ||
}, | ||
})} | ||
> | ||
<Link className={button()} href="/preset/"> | ||
Get Started | ||
</Link> | ||
</div> | ||
</div> | ||
</main> | ||
|
||
<div className={gridItem()}> | ||
<span | ||
className={css({ | ||
display: 'block', | ||
mt: 8, | ||
mx: 'auto', | ||
w: '1/2', | ||
})} | ||
> | ||
<CerberusLogo /> | ||
</span> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,14 @@ | ||
import { grid, gridItem, vstack } from '@cerberus/styled-system/patterns' | ||
import RootHeadline from './components/RootHeadline' | ||
import { css } from '@cerberus/styled-system/css' | ||
import Link from 'next/link' | ||
import Image from 'next/image' | ||
import { button } from '@cerberus/styled-system/recipes' | ||
import { css } from '@cerberus-design/styled-system/css' | ||
import HomeHero from './components/home-hero' | ||
|
||
export default async function Home() { | ||
export default function Home() { | ||
return ( | ||
<div | ||
className={css({ | ||
pxi: '4', | ||
pt: '10', | ||
pb: '20', | ||
mt: '9rem', | ||
})} | ||
> | ||
<main | ||
className={grid({ | ||
gap: '4', | ||
columns: 12, | ||
justifyContent: 'center', | ||
})} | ||
> | ||
<div | ||
className={gridItem({ | ||
gridColumnStart: 1, | ||
gridColumnEnd: 13, | ||
md: { | ||
gridColumnStart: 7, | ||
h: '66dvh', | ||
}, | ||
})} | ||
> | ||
<div | ||
className={vstack({ | ||
gap: '0', | ||
justify: 'center', | ||
p: '12', | ||
h: '15rem', | ||
w: 'full', | ||
md: { | ||
h: 'full', | ||
maxW: '40rem', | ||
}, | ||
})} | ||
> | ||
<Image | ||
alt="Cerberus Design System logo" | ||
className={css({ | ||
md: { | ||
w: 'full', | ||
}, | ||
})} | ||
priority | ||
src={`/logo.svg`} | ||
height="300" | ||
width="300" | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div | ||
className={gridItem({ | ||
gridColumnStart: 1, | ||
gridColumnEnd: 13, | ||
md: { | ||
alignSelf: 'center', | ||
gridColumnStart: 1, | ||
gridColumnEnd: 6, | ||
gridRowStart: 1, | ||
paddingInlineStart: '6', | ||
}, | ||
})} | ||
> | ||
<RootHeadline /> | ||
<div | ||
className={css({ | ||
mt: '4', | ||
})} | ||
> | ||
<Link className={button()} href="/preset/"> | ||
Get Started | ||
</Link> | ||
</div> | ||
</div> | ||
</main> | ||
<HomeHero /> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters