2025-12-01 22:57:12 +01:00
|
|
|
import Head from 'next/head';
|
|
|
|
|
import Header from './Header';
|
|
|
|
|
import Footer from './Footer';
|
|
|
|
|
|
2026-10-24 21:19:22 +02:00
|
|
|
export default function Layout({ children, title, description }) {
|
|
|
|
|
const pageTitle = title || 'Jesse Egbosionu · Software Engineer';
|
|
|
|
|
const pageDescription =
|
|
|
|
|
description || 'Software engineer based in Amsterdam, focused on building scalable backend systems.';
|
|
|
|
|
|
2025-12-01 22:57:12 +01:00
|
|
|
return (
|
2026-10-24 21:19:22 +02:00
|
|
|
<div className="page">
|
2025-12-01 22:57:12 +01:00
|
|
|
<Head>
|
2026-10-24 21:19:22 +02:00
|
|
|
<title>{pageTitle}</title>
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
|
<meta name="description" content={pageDescription} />
|
|
|
|
|
<meta property="og:title" content={pageTitle} />
|
|
|
|
|
<meta property="og:description" content={pageDescription} />
|
|
|
|
|
<meta property="og:type" content="website" />
|
2025-12-01 22:57:12 +01:00
|
|
|
<link rel="icon" href="/favicon.ico" />
|
|
|
|
|
</Head>
|
|
|
|
|
|
2026-10-24 21:19:22 +02:00
|
|
|
<Header />
|
2025-12-01 22:57:12 +01:00
|
|
|
|
|
|
|
|
<main className="main-content">{children}</main>
|
|
|
|
|
|
|
|
|
|
<Footer />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|