feat: add SiteFooter component and integrate it into RootLayout
Some checks failed
Push to github container register / push-docker (push) Has been cancelled
Some checks failed
Push to github container register / push-docker (push) Has been cancelled
This commit is contained in:
@@ -3,6 +3,7 @@ import { Geist, Geist_Mono, Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { SiteHeader } from "@/components/site-header";
|
||||
import { SiteFooter } from "@/components/site-footer";
|
||||
|
||||
const inter = Inter({subsets:['latin'],variable:'--font-sans'});
|
||||
|
||||
@@ -34,6 +35,7 @@ export default function RootLayout({
|
||||
<body className="min-h-full flex flex-col">
|
||||
<SiteHeader />
|
||||
{children}
|
||||
<SiteFooter />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
13
app/page.tsx
13
app/page.tsx
@@ -107,19 +107,6 @@ export default function Home() {
|
||||
</ol>
|
||||
</section>
|
||||
</main>
|
||||
<footer className="border-t bg-card/60">
|
||||
<div className="mx-auto flex w-full max-w-6xl items-center justify-center px-4 py-4 text-center text-xs text-muted-foreground sm:px-8 sm:text-sm">
|
||||
運用元:
|
||||
<a
|
||||
href="https://neody.land/ja"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="ml-1 font-medium text-foreground underline underline-offset-4 hover:text-primary"
|
||||
>
|
||||
Neodyland
|
||||
</a>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
17
components/site-footer.tsx
Normal file
17
components/site-footer.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
export function SiteFooter() {
|
||||
return (
|
||||
<footer className="border-t bg-card/60">
|
||||
<div className="mx-auto flex w-full max-w-6xl items-center justify-center px-4 py-4 text-center text-xs text-muted-foreground sm:px-8 sm:text-sm">
|
||||
運用元:
|
||||
<a
|
||||
href="https://neody.land/ja"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="ml-1 font-medium text-foreground underline underline-offset-4 hover:text-primary"
|
||||
>
|
||||
Neodyland
|
||||
</a>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user