improved styling of the header component
This commit is contained in:
+16
-16
@@ -4,31 +4,31 @@ import "./globals.css";
|
||||
import Header from "@/components/layout/Header";
|
||||
|
||||
const playfairDisplay = Playfair_Display({
|
||||
variable: "--font-playfair",
|
||||
subsets: ["latin"],
|
||||
variable: "--font-playfair",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const inter = Inter({
|
||||
variable: "--font-inter",
|
||||
subsets: ["latin"],
|
||||
variable: "--font-inter",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Mathéo Guilbert - Développeur Full Stack",
|
||||
description: "Portfolio de Mathéo Guilbert, développeur web freelance.",
|
||||
title: "Mathéo Guilbert - Développeur Full Stack",
|
||||
description: "Portfolio de Mathéo Guilbert, développeur web freelance.",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="fr" className={`${playfairDisplay.variable} ${inter.variable} bg-brand-beige m-[11px] antialiased`}>
|
||||
<body className="min-h-screen flex flex-col bg-brand-beige text-brand-brown">
|
||||
<Header />
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
return (
|
||||
<html lang="fr" className={`${playfairDisplay.variable} ${inter.variable} bg-brand-beige m-[11px] antialiased`}>
|
||||
<body className="min-h-screen flex flex-col bg-brand-beige text-brand-brown">
|
||||
<Header />
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
export default function Header() {
|
||||
return (
|
||||
<header className="bg-brand-brown text-brand-beige w-full py-6 px-10 flex justify-between items-center">
|
||||
<div className="font-serif text-2xl font-bold">M. Guilbert</div>
|
||||
<header className="bg-brand-brown text-brand-beige w-full py-6 px-10 flex justify-between items-center rounded-[10px]">
|
||||
<div className="font-serif text-2xl font-light">M. Guilbert</div>
|
||||
<nav>
|
||||
<ul className="flex gap-8 font-sans uppercase text-sm tracking-widest">
|
||||
<ul className="flex gap-8 font-sans text-base font-light">
|
||||
<li>Accueil</li>
|
||||
<li>Projets</li>
|
||||
<li>À propos</li>
|
||||
<li>Blog</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div>🇫🇷</div>
|
||||
<div className="font-sans text-base font-light">France</div>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user