unique page metadata

This commit is contained in:
2023-01-23 20:51:16 -06:00
parent af604fd3f6
commit 18c8d1ab0f
4 changed files with 147 additions and 41 deletions

View File

@@ -1,4 +1,4 @@
import React from "react";
import React, { useEffect } from "react";
import ChessBed from "../componets/ChessBed.js";
export default function Home() {
@@ -6,11 +6,21 @@ export default function Home() {
width: "350px",
height: "165px",
border: "none",
display: "block"
display: "block",
};
useEffect(() => {
// This will run when the page first loads and whenever the title changes
document.title = "Andrew Simonson - Portfolio Home";
}, []);
return (
<div id="home">
<meta
name="description"
content="Andrew Simonson's Portfolio Website - Homepage"
/>
<div className="homeground">
<div className="relative">
<div className="flex">