feat(footer) add footer

This commit is contained in:
lumither committed 2024-03-24 13:35:58 +08:00
1 parent cd487561d4
commit dad86cdaad
3 files changed
+16 -5

No files matched your search

+9
View File
@@ -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>
);
}
+2
View File
@@ -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
View File
@@ -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>
); );
} }