Skip to content

Commit

Permalink
pill shape for version footer
Browse files Browse the repository at this point in the history
Signed-off-by: Vu Van Dung <me@joulev.dev>
  • Loading branch information
joulev committed May 7, 2024
1 parent 67fda5d commit 1b28dc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
<body
className={cn(sans.variable, mono.variable, "bg-[#334155] font-sans text-text-primary")}
>
<div className="fixed inset-0 pattern-cross pattern-text-tertiary pattern-bg-black pattern-size-6 pattern-opacity-20" />
<div className="fixed inset-0 -z-50 pattern-cross pattern-text-tertiary pattern-bg-black pattern-size-6 pattern-opacity-20" />
{children}
<VersionFooter />
<Analytics />
Expand Down
12 changes: 7 additions & 5 deletions src/app/version-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ export function VersionFooter() {
: "https://github.com/joulev/website";
const label = sha ? sha.slice(0, 7) : "unknown";
return (
<footer className="px-6 pb-12 text-center text-xs text-text-tertiary">
<Link unstyled href={url} className="transition hover:text-text-secondary">
<GitHub className="inline size-3" /> joulev/website@
<span className="font-mono">{label}</span>
</Link>
<footer className="px-6 pb-12 flex flex-row justify-center text-xs text-text-tertiary">
<div className="backdrop-blur bg-bg-darker px-3 py-1 rounded">
<Link unstyled href={url} className="transition hover:text-text-secondary">
<GitHub className="inline size-3" /> joulev/website@
<span className="font-mono">{label}</span>
</Link>
</div>
</footer>
);
}

0 comments on commit 1b28dc8

Please sign in to comment.