feat: add footer with attribution and source link
- Create Footer component with author info and repo link - Add footer to root layout (appears on all pages) - Include dedication to Lilly & Diego 🐈 🐈⬛
This commit is contained in:
@@ -14,6 +14,7 @@ const geistMono = Geist_Mono({
|
|||||||
});
|
});
|
||||||
|
|
||||||
import { getDictionary } from "@/get-dictionary";
|
import { getDictionary } from "@/get-dictionary";
|
||||||
|
import { Footer } from "@/components/footer";
|
||||||
|
|
||||||
export async function generateMetadata({ params }: { params: Promise<{ lang: string }> }): Promise<Metadata> {
|
export async function generateMetadata({ params }: { params: Promise<{ lang: string }> }): Promise<Metadata> {
|
||||||
const { lang } = await params;
|
const { lang } = await params;
|
||||||
@@ -41,9 +42,10 @@ export default async function RootLayout({
|
|||||||
return (
|
return (
|
||||||
<html lang={lang}>
|
<html lang={lang}>
|
||||||
<body
|
<body
|
||||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
className={`${geistSans.variable} ${geistMono.variable} antialiased flex flex-col min-h-screen`}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
<Footer />
|
||||||
<Toaster />
|
<Toaster />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
25
components/footer.tsx
Normal file
25
components/footer.tsx
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
export function Footer() {
|
||||||
|
return (
|
||||||
|
<footer className="mt-auto py-6 px-4 border-t bg-muted/30">
|
||||||
|
<div className="max-w-4xl mx-auto text-center text-sm text-muted-foreground">
|
||||||
|
Made with ❤️ and 🍷 for Lilly & Diego by{" "}
|
||||||
|
<a
|
||||||
|
href="mailto:elpatron+csp@mailbox.org"
|
||||||
|
className="hover:underline font-medium text-foreground"
|
||||||
|
>
|
||||||
|
Markus F.J. Busche
|
||||||
|
</a>
|
||||||
|
.{" "}
|
||||||
|
Source @{" "}
|
||||||
|
<a
|
||||||
|
href="https://gitea.elpatron.me/elpatron/cat-sitting-planner"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="hover:underline font-medium text-foreground"
|
||||||
|
>
|
||||||
|
https://gitea.elpatron.me/elpatron/cat-sitting-planner
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user