Skip to content

Commit

Permalink
improve footer
Browse files Browse the repository at this point in the history
  • Loading branch information
hayyi2 committed Nov 19, 2023
1 parent 3bc8d45 commit 58a2c8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/layouts/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { appConfig } from "@/config/app";
import { ModeToggle } from "../mode-toggle";

export function Footer() {
return (
<footer className="flex flex-col items-center justify-between gap-4 min-h-[3rem] md:h-20 py-2 md:flex-row">
<p className="text-center text-sm leading-loose text-muted-foreground md:text-left">Built by <a href="https://twitter.com/shadcn" target="_blank" rel="noreferrer" className="font-medium underline underline-offset-4">shadcn</a>. The source code is available on <a href="https://github.com/shadcn-ui/ui" target="_blank" rel="noreferrer" className="font-medium underline underline-offset-4">GitHub</a>.</p>
<p className="text-center text-sm leading-loose text-muted-foreground md:text-left">Built by <a href={appConfig.author.url} target="_blank" rel="noreferrer" className="font-medium underline underline-offset-4">{appConfig.author.name}</a>. The source code is available on <a href={appConfig.github.url} target="_blank" rel="noreferrer" className="font-medium underline underline-offset-4">GitHub</a>.</p>
<div className="hidden md:block">
<ModeToggle />
</div>
Expand Down
8 changes: 8 additions & 0 deletions src/config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ interface AppConfig {
title: string,
url: string
},
author: {
name: string,
url: string
},
}

export const appConfig: AppConfig = {
name: "Shadcn Sample",
github: {
title: "Shadcn Sample",
url: "https://github.com/hayyi2/shadcn-sample",
},
author: {
name: "hayyi",
url: "https://github.com/hayyi2/",
}
}

0 comments on commit 58a2c8d

Please sign in to comment.