tear out footer
- SHA
7012b061e7225c1886365fd2efe96e21759c94e4- Parents
-
7e35af0 - Tree
73eed2d
7012b06
7012b061e7225c1886365fd2efe96e21759c94e47e35af0
73eed2d| Status | File | + | - |
|---|---|---|---|
| M |
app/layout.tsx
|
6 | 2 |
| M |
app/page.tsx
|
0 | 9 |
| A |
components/Footer.tsx
|
11 | 0 |
app/layout.tsxmodified@@ -1,5 +1,6 @@ | ||
| 1 | 1 | import type { Metadata } from "next"; |
| 2 | 2 | import "./globals.css"; |
| 3 | +import Footer from "@/components/Footer"; | |
| 3 | 4 | |
| 4 | 5 | export const metadata: Metadata = { |
| 5 | 6 | title: "VMI Virtual Memorial", |
@@ -13,8 +14,11 @@ export default function RootLayout({ | ||
| 13 | 14 | }>) { |
| 14 | 15 | return ( |
| 15 | 16 | <html lang="en"> |
| 16 | - <body className="antialiased"> | |
| 17 | - {children} | |
| 17 | + <body className="antialiased flex flex-col min-h-screen"> | |
| 18 | + <div className="flex-grow"> | |
| 19 | + {children} | |
| 20 | + </div> | |
| 21 | + <Footer /> | |
| 18 | 22 | </body> |
| 19 | 23 | </html> |
| 20 | 24 | ); |
app/page.tsxmodified@@ -149,15 +149,6 @@ export default function Home() { | ||
| 149 | 149 | )} |
| 150 | 150 | </div> |
| 151 | 151 | </main> |
| 152 | - | |
| 153 | - {/* Footer */} | |
| 154 | - <footer className="bg-gray-900 text-white py-8 mt-16"> | |
| 155 | - <div className="max-w-5xl mx-auto px-4 text-center"> | |
| 156 | - <p className="text-sm"> | |
| 157 | - © {new Date().getFullYear()} matthew forrester wolffe, Richard Colwell Wolffe Jr. | |
| 158 | - </p> | |
| 159 | - </div> | |
| 160 | - </footer> | |
| 161 | 152 | </div> |
| 162 | 153 | ); |
| 163 | 154 | } |