diff --git a/src/app/games/page.tsx b/src/app/games/page.tsx new file mode 100644 index 0000000..9933b6b --- /dev/null +++ b/src/app/games/page.tsx @@ -0,0 +1,27 @@ +import { Certification } from "@/components/cert"; +import { Game } from "@/components/game"; +import { Rule } from "@/components/rule"; +import { Certifications } from "@/config/Certifications"; +import { Games } from "@/config/Games"; +import { Charm } from "next/font/google"; + +const Gamez = (): JSX.Element => { + return ( + <> +
+

Games

+
+

See how Naomi has appeared in various games.

+ +
+ {Games.map((game) => ( + + ))} +
+
+
+ + ); +}; + +export default Gamez; diff --git a/src/components/game.tsx b/src/components/game.tsx new file mode 100644 index 0000000..81493e6 --- /dev/null +++ b/src/components/game.tsx @@ -0,0 +1,30 @@ +import Image from "next/image"; +import { useState } from "react"; + +interface GameProps { + name: string; + img: string; +} + +export const Game = (props: GameProps): JSX.Element => { + const { name, img } = props; + + return ( +
+

{name}

+ + {name} + +
+ ); +}; diff --git a/src/config/Games.ts b/src/config/Games.ts new file mode 100644 index 0000000..8557715 --- /dev/null +++ b/src/config/Games.ts @@ -0,0 +1,21 @@ +export const Games: { + name: string; + img: string; + }[] = [ + { + name: "Bloody Spell", + img: "bloody-spell.jpg" + }, + { + name: "Dynasty Warriors 9: Empires", + img: "dw-9.jpg" + }, + { + name: "Soul Calibur VI", + img: "soul-calibur.jpg" + }, + { + name: "Star Wars: The Old Republic", + img: "swtor.jpg" + } + ] diff --git a/src/config/NavItems.ts b/src/config/NavItems.ts index 2731a50..4a3d931 100644 --- a/src/config/NavItems.ts +++ b/src/config/NavItems.ts @@ -5,4 +5,5 @@ export const NavItems = [ { href: "/contact", text: "Contact" }, { href: "/certs", text: "Certifications" }, { href: "/reviews", text: "Reviews" }, + { href: "/games", text: "Games"} ].sort((a, b) => a.text.localeCompare(b.text));