mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(footer) add footer
This commit is contained in:
3 files changed
+16
-5
No files matched your search
@@ -0,0 +1,9 @@
|
|||||||
|
'use client';
|
||||||
|
export default function Footer() {
|
||||||
|
return (
|
||||||
|
<div className={ `bottom-0 mt-5 content-center h-fit bg-slate-800/95` }>
|
||||||
|
<p className={ `text-center my-2` }>©2024-{ new Date().getFullYear() } <a
|
||||||
|
href={ 'https://github.com/lumither' }>Lumither Tao</a></p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -6,6 +6,7 @@ import { cn } from '@/lib/utils';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ThemeProvider } from '@/components/theme-provider';
|
import { ThemeProvider } from '@/components/theme-provider';
|
||||||
import Navbar from '@/app/navbar';
|
import Navbar from '@/app/navbar';
|
||||||
|
import Footer from '@/app/footer';
|
||||||
|
|
||||||
|
|
||||||
const fontSans = FontSans({
|
const fontSans = FontSans({
|
||||||
@@ -39,6 +40,7 @@ export default function RootLayout({
|
|||||||
<div className={ 'mt-20 overflow-scroll' }>
|
<div className={ 'mt-20 overflow-scroll' }>
|
||||||
{ children }
|
{ children }
|
||||||
</div>
|
</div>
|
||||||
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+5
-5
@@ -2,11 +2,11 @@ export default function Home() {
|
|||||||
let info = new Array(200).fill(<p> test </p>);
|
let info = new Array(200).fill(<p> test </p>);
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<ul>
|
<ul>
|
||||||
{ info.map((item, id) => (
|
{ info.map((item, id) => (
|
||||||
<li key={ id }> { item } </li>
|
<li key={ id }> { item } </li>
|
||||||
)) }
|
)) }
|
||||||
</ul>
|
</ul>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user