Skip to content

Commit 5afa88c

Browse files
authored
Add global layout with header and footer
1 parent 90ee722 commit 5afa88c

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

pages/_app.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import "../styles/globals.css";
2+
3+
export default function App({ Component, pageProps }) {
4+
return (
5+
<div style={{ fontFamily: "Arial, sans-serif" }}>
6+
{/* Global header */}
7+
<header style={{ padding: "1rem", backgroundColor: "#f5f5f5" }}>
8+
<h2>Tips Ecosystem</h2>
9+
</header>
10+
11+
{/* Page content */}
12+
<main style={{ padding: "2rem" }}>
13+
<Component {...pageProps} />
14+
</main>
15+
16+
{/* Global footer */}
17+
<footer style={{ padding: "1rem", backgroundColor: "#f5f5f5" }}>
18+
<small>© {new Date().getFullYear()} Tips Ecosystem</small>
19+
</footer>
20+
</div>
21+
);
22+
}

0 commit comments

Comments
 (0)