Skip to content

Commit

Permalink
metadata added to layout
Browse files Browse the repository at this point in the history
  • Loading branch information
sanidhyy committed Jan 1, 2024
1 parent 5faaad7 commit cf67b3e
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions components/Layout.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Sora } from "next/font/google";
import Head from "next/head";

import Header from "../components/Header";
import Nav from "../components/Nav";
Expand All @@ -13,14 +14,31 @@ const sora = Sora({

const Layout = ({ children }) => {
return (
<div
<main
className={`page bg-site text-white bg-cover bg-no-repeat ${sora.variable} font-sora relative`}
>
{/* metadata */}
<Head>
<title>Ethan Smith | Portfolio</title>
<meta
name="description"
content="Ethan Smith is a Full-stack web developer with 10+ years of experience."
/>
<meta
name="keywords"
content="react, next, nextjs, html, css, javascript, js, modern-ui, modern-ux, portfolio, framer-motion, 3d-website, particle-effect"
/>
<meta name="author" content="Sanidhya Kumar Verma" />
<meta name="theme-color" content="#f13024" />
</Head>

<TopLeftImg />
<Nav />
<Header />

{/* main content */}
{children}
</div>
</main>
);
};

Expand Down

0 comments on commit cf67b3e

Please sign in to comment.