-
Notifications
You must be signed in to change notification settings - Fork 32
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
Showing
10 changed files
with
105 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import Hero from '../hero'; | ||
import Container from '../layouts/container'; | ||
import Navbar from '../navbar'; | ||
|
||
export default function Header() { | ||
return ( | ||
<div className="relative border-b border-slate-200"> | ||
<Navbar /> | ||
<div className="pointer-events-none absolute inset-0 -z-10 bg-grid-slate-100 [mask-image:linear-gradient(0deg,white,rgba(255,255,255,0))]"></div> | ||
<Container> | ||
<div className="mt-4 flex min-h-[21rem] items-center"> | ||
<Hero /> | ||
</div> | ||
</Container> | ||
</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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import LogoSection from './logo-section'; | ||
import TextSection from './text-section'; | ||
|
||
export default function Hero() { | ||
return ( | ||
<div className="flex w-full items-center gap-4 pb-6"> | ||
<TextSection /> | ||
<LogoSection /> | ||
</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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function LogoSection() { | ||
return <section className="hidden lg:block">Logo Section</section>; | ||
} |
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,28 @@ | ||
import Dot from '@/utilities/dot'; | ||
import TypoComp from '@/utilities/typo-component'; | ||
|
||
export default function TextSection() { | ||
return ( | ||
<section className="space-y-6"> | ||
{/* icons */} | ||
<div className="flex flex-wrap items-center gap-x-4 text-sm font-medium capitalize"> | ||
1 contributors | ||
<Dot /> | ||
Open Source | ||
<Dot /> | ||
Student community | ||
</div> | ||
<TypoComp> | ||
<h1> | ||
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet consectetur.{' '} | ||
</h1> | ||
<p> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure, | ||
veritatis architecto totam accusantium placeat voluptas ipsum numquam. | ||
</p> | ||
</TypoComp> | ||
{/* links */} | ||
<div className="">links</div> | ||
</section> | ||
); | ||
} |
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
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,3 +1,24 @@ | ||
import Image from 'next/image'; | ||
import PBCLifeLogo from '~/images/pbclifelogo.png'; | ||
import Container from '../layouts/container'; | ||
|
||
export default function Navbar() { | ||
return <div>Navbar</div>; | ||
return ( | ||
<Container> | ||
{/* logo */} | ||
<div className="flex items-center gap-x-2 py-4"> | ||
<Image | ||
src={PBCLifeLogo} | ||
alt="logo" | ||
placeholder="blur" | ||
width={48} | ||
height={48} | ||
className="h-10 w-10 rounded-full object-cover object-center" | ||
/> | ||
<span className="text-2xl font-bold tracking-tight">PBC LIFE</span> | ||
</div> | ||
{/* social icons */} | ||
<div className=""></div> | ||
</Container> | ||
); | ||
} |
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,5 @@ | ||
export default function Dot() { | ||
return ( | ||
<span className="h-1 w-1 flex-shrink-0 rounded-full bg-slate-800"></span> | ||
); | ||
} |
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,8 @@ | ||
import { HTMLAttributes } from 'react'; | ||
|
||
type TypoCompType = HTMLAttributes<HTMLDivElement> & {}; | ||
|
||
export default function TypoComp({ className, ...props }: TypoCompType) { | ||
// todo: implement theme system | ||
return <div className={` prose max-w-2xl ${className || ``}`} {...props} />; | ||
} |
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