-
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 #40 from y3owk1n/develop
more styling on links
- Loading branch information
Showing
9 changed files
with
9,846 additions
and
7,186 deletions.
There are no files selected for viewing
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
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,44 @@ | ||
import React from "react"; | ||
import { githubProfile, githubRepo } from "@/lib/constants"; | ||
|
||
const SiteFooter = () => { | ||
return ( | ||
<footer> | ||
<p className="text-center text-sm leading-loose md:text-left"> | ||
Built by{" "} | ||
<a | ||
href={githubProfile} | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
className="group font-medium text-foreground transition-all duration-300 ease-in-out "> | ||
<span className="bg-gradient-to-r from-foreground to-foreground bg-[length:0%_2px] bg-left-bottom bg-no-repeat pb-1 transition-all duration-500 ease-out group-hover:bg-[length:100%_2px]"> | ||
Kyle | ||
</span> | ||
</a> | ||
. Hosted on{" "} | ||
<a | ||
href="https://vercel.com" | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
className="group font-medium text-foreground transition-all duration-300 ease-in-out "> | ||
<span className="bg-gradient-to-r from-foreground to-foreground bg-[length:0%_2px] bg-left-bottom bg-no-repeat pb-1 transition-all duration-500 ease-out group-hover:bg-[length:100%_2px]"> | ||
Vercel | ||
</span> | ||
</a> | ||
. The source code is available on{" "} | ||
<a | ||
href={githubRepo} | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
className="group font-medium text-foreground transition-all duration-300 ease-in-out "> | ||
<span className="bg-gradient-to-r from-foreground to-foreground bg-[length:0%_2px] bg-left-bottom bg-no-repeat pb-1 transition-all duration-500 ease-out group-hover:bg-[length:100%_2px]"> | ||
GitHub | ||
</span> | ||
</a> | ||
. | ||
</p> | ||
</footer> | ||
); | ||
}; | ||
|
||
export default SiteFooter; |
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,116 @@ | ||
import React from "react"; | ||
import Link from "next/link"; | ||
import DarkModeToggle from "./DarkModeToggle"; | ||
import TraworldHover from "./TraworldHover"; | ||
import { Avatar, AvatarFallback, AvatarImage } from "./ui/Avatar"; | ||
import { buttonVariants } from "./ui/Button"; | ||
import { githubProfile, linkedInProfile } from "@/lib/constants"; | ||
import { AiFillGithub, AiFillLinkedin } from "react-icons/ai"; | ||
import { twMerge } from "tailwind-merge"; | ||
|
||
const SiteHeader = () => { | ||
return ( | ||
<header className="lg:sticky lg:top-0 lg:flex lg:max-h-screen lg:w-1/2 lg:flex-col lg:justify-between lg:py-24"> | ||
<div> | ||
<Avatar className="mb-8 h-20 w-20"> | ||
<AvatarImage src="https://github.com/y3owk1n.png" /> | ||
<AvatarFallback>KW</AvatarFallback> | ||
</Avatar> | ||
|
||
<h1 className="text-4xl font-bold tracking-tight text-foreground sm:text-5xl"> | ||
Kyle Wong | ||
</h1> | ||
<h2 className="mt-3 text-lg font-medium tracking-tight text-foreground sm:text-xl"> | ||
Head Of Marketing at <TraworldHover /> | ||
</h2> | ||
<p className="mt-4 max-w-xs leading-normal"> | ||
I build brands, strategies and experiences in the digital | ||
world. | ||
</p> | ||
</div> | ||
|
||
<nav | ||
className="hidden lg:block" | ||
aria-label="In-page jump links"> | ||
<ul className="mt-16 grid gap-4"> | ||
<li> | ||
<Link | ||
className="group font-medium text-foreground transition-all duration-300 ease-in-out " | ||
href="/#about"> | ||
<span className="bg-gradient-to-r from-foreground to-foreground bg-[length:0%_2px] bg-left-bottom bg-no-repeat pb-1 transition-all duration-500 ease-out group-hover:bg-[length:100%_2px]"> | ||
About | ||
</span> | ||
</Link> | ||
</li> | ||
<li> | ||
<Link | ||
className="group font-medium text-foreground transition-all duration-300 ease-in-out " | ||
href="/#experiences"> | ||
<span className="bg-gradient-to-r from-foreground to-foreground bg-[length:0%_2px] bg-left-bottom bg-no-repeat pb-1 transition-all duration-500 ease-out group-hover:bg-[length:100%_2px]"> | ||
Experiences | ||
</span> | ||
</Link> | ||
</li> | ||
<li> | ||
<Link | ||
className="group font-medium text-foreground transition-all duration-300 ease-in-out " | ||
href="/#projects"> | ||
<span className="bg-gradient-to-r from-foreground to-foreground bg-[length:0%_2px] bg-left-bottom bg-no-repeat pb-1 transition-all duration-500 ease-out group-hover:bg-[length:100%_2px]"> | ||
Projects | ||
</span> | ||
</Link> | ||
</li> | ||
<li> | ||
<Link | ||
className="group font-medium text-foreground transition-all duration-300 ease-in-out " | ||
href="/#posts"> | ||
<span className="bg-gradient-to-r from-foreground to-foreground bg-[length:0%_2px] bg-left-bottom bg-no-repeat pb-1 transition-all duration-500 ease-out group-hover:bg-[length:100%_2px]"> | ||
Posts | ||
</span> | ||
</Link> | ||
</li> | ||
</ul> | ||
</nav> | ||
|
||
<ul className="mt-10 flex items-center gap-2"> | ||
<li className="text-xs"> | ||
<a | ||
href={linkedInProfile} | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
className={twMerge( | ||
"block hover:text-foreground", | ||
buttonVariants({ | ||
variant: "ghost", | ||
size: "sm", | ||
}) | ||
)}> | ||
<span className="sr-only">LinkedIn</span> | ||
<AiFillLinkedin className="h-6 w-6" /> | ||
</a> | ||
</li> | ||
<li className="text-xs"> | ||
<a | ||
href={githubProfile} | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
className={twMerge( | ||
"block hover:text-foreground", | ||
buttonVariants({ | ||
variant: "ghost", | ||
size: "sm", | ||
}) | ||
)}> | ||
<span className="sr-only">Github</span> | ||
<AiFillGithub className="h-6 w-6" /> | ||
</a> | ||
</li> | ||
<li className="text-xs"> | ||
<DarkModeToggle /> | ||
</li> | ||
</ul> | ||
</header> | ||
); | ||
}; | ||
|
||
export default SiteHeader; |
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,14 @@ | ||
import React from "react"; | ||
import Link from "next/link"; | ||
|
||
const SkipToContent = () => { | ||
return ( | ||
<Link | ||
href="/#content" | ||
className="absolute left-0 top-0 block -translate-x-full rounded bg-gradient-to-br from-teal-400 via-blue-500 to-purple-600 px-4 py-3 text-sm font-bold uppercase tracking-widest text-white focus-visible:translate-x-0"> | ||
Skip to Content | ||
</Link> | ||
); | ||
}; | ||
|
||
export default SkipToContent; |
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