-
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.
feat: complete basic home page by design
- Loading branch information
1 parent
b362b5d
commit ca4c0cb
Showing
9 changed files
with
91 additions
and
4 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
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
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { navLinks, socials } from "@/lib/constants"; | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
|
||
const Header = () => { | ||
return ( | ||
<> | ||
<header className="relative z-[999] pt-10 hidden px-4 md:block"> | ||
<div className="container mx-auto flex h-16 w-full max-w-[1024px] items-center justify-between rounded-full border-[1px] border-white/25 bg-white/25 px-8 backdrop-blur-md dark:border-[#5E5E5E]/20 dark:bg-[#18181D]/30"> | ||
<div className="flex items-center gap-10"> | ||
<Link aria-label="Vignesh Gupta Logo" href="/"> | ||
<Image src="/logo.svg" width={50} height={50} alt="Logo" /> | ||
</Link> | ||
<nav | ||
aria-label="Main" | ||
data-orientation="horizontal" | ||
dir="ltr" | ||
className="relative flex justify-center" | ||
> | ||
<div className="relative"> | ||
<ul className="m-0 flex list-none items-center gap-10 rounded-[6px] p-1"> | ||
{navLinks.map((link) => ( | ||
<li key={`nav-link-${link.name}`}> | ||
<Link | ||
className="block py-2 text-onyx/70 transition-colors hover:text-onyx dark:text-muted-foreground dark:hover:text-white" | ||
href={link.href} | ||
> | ||
{link.name} | ||
</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
</nav> | ||
</div> | ||
<div className="flex items-center gap-4"> | ||
<div className="flex gap-6 text-onyx/70 dark:text-white/70"> | ||
{socials.map((social) => ( | ||
<Link | ||
key={`header-social-${social.name}`} | ||
className="group transition hover:text-onyx dark:hover:text-white" | ||
target="_blank" | ||
aria-label={social.name} | ||
href={social.href} | ||
> | ||
<social.icon className="size-6" /> | ||
</Link> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
</> | ||
); | ||
}; | ||
|
||
export default Header; |
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,23 @@ | ||
import { FaGithub, FaLinkedin } from "react-icons/fa"; | ||
import { FaXTwitter } from "react-icons/fa6"; | ||
|
||
export const socials = [ | ||
{ name: "Github", href: "https://github.com/vignesh-gupta/", icon: FaGithub }, | ||
{ | ||
name: "X (Twitter)", | ||
href: "https://x.com/vigneshfixes/", | ||
icon: FaXTwitter, | ||
}, | ||
{ | ||
name: "LinkedIn", | ||
href: "https://www.linkedin.com/in/vigneshgupta/", | ||
icon: FaLinkedin, | ||
}, | ||
]; | ||
|
||
export const navLinks = [ | ||
{ name: "About", href: "/about" }, | ||
{ name: "Work", href: "/work" }, | ||
{ name: "Notebook", href: "/notebook" }, | ||
{ name: "Contact", href: "/contact" }, | ||
]; |