Skip to content

Commit

Permalink
feat(landing): hero layout
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdancho committed Aug 15, 2024
1 parent 4326da5 commit 194a544
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/features/landing/LandingPage.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function LandingPage() {
return (
<main className='bg-black-120 px-6 pb-6 text-lg text-grey-40'>
<div className='mx-auto max-w-[86rem]'>
<div className='flex h-svh flex-col'>
<div className='flex min-h-svh flex-col'>
<Header />
<HeroSection />
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/features/landing/sections/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { StopwatchIcon } from '../components/icons'

export function HeroSection() {
return (
<section className='flex flex-1 items-center'>
<div className='grid h-full max-h-[44rem] flex-1 grid-cols-[1fr,auto] gap-3 pb-10 pt-3'>
<section className='flex flex-1 flex-col items-center justify-center'>
<div className='grid max-h-[44rem] min-h-[40rem] flex-1 grid-cols-[1fr,auto] grid-rows-[auto,1fr] gap-3 pb-10 pt-3'>
<div className='landing-gradient-1 landing-hero-clip-polygon row-span-2 flex h-full flex-col items-start justify-center rounded-3xl p-10'>
<h1 className='landing-h1 mb-10 flex flex-wrap text-white-100'>
<span className='whitespace-nowrap'>
Expand All @@ -24,6 +24,7 @@ export function HeroSection() {
</PrimaryButton>
</div>
<div className='h-[21rem] w-[21rem] shrink-0 rounded-3xl bg-black-100'></div>
<div className='-ml-[22rem] rounded-3xl bg-secondary-20'></div>
</div>
</section>
)
Expand Down

0 comments on commit 194a544

Please sign in to comment.