Skip to content

Commit

Permalink
feat: added site footer
Browse files Browse the repository at this point in the history
  • Loading branch information
fluid-design-io committed Oct 20, 2023
1 parent 0be3b43 commit 0d600f2
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import StyleSheetInitializer from "./stylesheet-initializer";
import { getServerColors } from "@/lib/getServerColors";

import { Analytics } from "@vercel/analytics/react";
import SiteFooter from "@/components/core/site-footer";

const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
const comfortaa = Comfortaa({
Expand Down Expand Up @@ -68,6 +69,7 @@ export default async function RootLayout({
<SiteHeader />
<Toolbar />
{children}
<SiteFooter />
<Toaster />
</ThemeProvider>
<Analytics />
Expand Down
76 changes: 76 additions & 0 deletions apps/web/components/core/site-footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import { Github, Youtube } from "lucide-react";
import app from "../../../../package.json";

const navigation = [
{
name: "GitHub",
href: "https://github.com/fluid-design-io/fluid-design",
icon: Github,
},
{
name: "YouTube",
href: "https://youtube.com/@fluiddesign",
icon: Youtube,
},
];

function SiteFooter() {
return (
<footer className="border-t border-border/30 bg-background-accent">
<div className="mx-auto max-w-[120rem] px-6 py-4 md:flex md:items-center md:justify-between lg:px-8">
<div className="flex justify-center space-x-6 md:order-2">
{navigation.map((item) => (
<a
key={item.name}
href={item.href}
className="text-foreground/50 hover:text-primary/80"
>
<span className="sr-only">{item.name}</span>
<item.icon className="h-4 w-4" aria-hidden="true" />
</a>
))}
<a
href="https://github.com/fluid-design-io/fluid-design/releases"
target="_blank"
referrerPolicy="no-referrer"
rel="noopener noreferrer"
className="text-[0.7rem] text-foreground/50 hover:underline"
aria-label="Release Notes"
title="Release Notes"
>
V {app.version}
</a>
</div>
<div className="mt-8 md:order-1 md:mt-0">
<p className="text-center text-xs leading-5 text-gray-500">
Built by{" "}
<a
href="https://oliverpan.vercel.app"
target="_blank"
className="underline"
referrerPolicy="no-referrer"
rel="noopener noreferrer"
title="Visit Oliver's portfolio"
>
Oliver Pan
</a>
{". "}
The source code is on{" "}
<a
href="https://github.com/fluid-design-io/fluid-design"
target="_blank"
className="underline"
referrerPolicy="no-referrer"
rel="noopener noreferrer"
>
GitHub
</a>
.
</p>
</div>
</div>
</footer>
);
}

export default SiteFooter;

0 comments on commit 0d600f2

Please sign in to comment.