generated from yun-cheng/my-react-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from yun-cheng/feat/home-page-header-ui
feat(HomePage): add Header UI
- Loading branch information
Showing
4 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,26 @@ | ||
import type { ReactElement } from 'react' | ||
import cn from 'utils/cn' | ||
|
||
export default function Header(): ReactElement { | ||
return ( | ||
<div className={cn('h-[145px]', 'bg-circles bg-center bg-no-repeat')}> | ||
<div | ||
className={cn( | ||
'-translate-x-px sm:-translate-y-px sm:translate-x-0', | ||
'flex h-full flex-col items-center justify-center' | ||
)} | ||
> | ||
<h2 className='text-[20px]/[27px] font-extrabold text-dark-desaturated-blue sm:text-[28px]/[38px]'> | ||
Simple, traffic-based pricing | ||
</h2> | ||
<span | ||
className={cn( | ||
'pt-2 sm:pt-3', | ||
'whitespace-pre-line text-center sm:whitespace-normal', | ||
'text-[13px]/[23px] sm:text-[15px]/[20px]' | ||
)} | ||
>{`Sign-up for our 30-day trial.\nNo credit card required.`}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
import Header from 'components/Header' | ||
import type { ReactElement } from 'react' | ||
import cn from 'utils/cn' | ||
|
||
export default function HomePage(): ReactElement { | ||
return <div>Home Page</div> | ||
return ( | ||
<div | ||
className={cn( | ||
'min-h-screen px-6', | ||
'bg-background bg-[length:auto_400px] bg-no-repeat sm:bg-very-pale-blue sm:bg-auto', | ||
'font-semibold text-grayish-blue' | ||
)} | ||
> | ||
<div className='pt-[57px] sm:pt-[67px]'> | ||
<Header /> | ||
</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