diff options
| author | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2025-08-19 13:23:17 +0200 |
|---|---|---|
| committer | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2025-08-19 13:23:17 +0200 |
| commit | c04bc9a36ebfcdf6d8e2db8a6cdeb44062b66bec (patch) | |
| tree | 42dfa70f41f701b561455aac01b45ec72f816184 /frontend/src/pages/Games | |
| parent | fix/frontend: smol syntax fix (diff) | |
| download | lphub-c04bc9a36ebfcdf6d8e2db8a6cdeb44062b66bec.tar.gz lphub-c04bc9a36ebfcdf6d8e2db8a6cdeb44062b66bec.tar.bz2 lphub-c04bc9a36ebfcdf6d8e2db8a6cdeb44062b66bec.zip | |
organised pages, started work on theme
Diffstat (limited to 'frontend/src/pages/Games')
| -rw-r--r-- | frontend/src/pages/Games/Games.tsx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/frontend/src/pages/Games/Games.tsx b/frontend/src/pages/Games/Games.tsx new file mode 100644 index 0000000..e23b245 --- /dev/null +++ b/frontend/src/pages/Games/Games.tsx | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | import React from "react"; | ||
| 2 | import { Helmet } from "react-helmet"; | ||
| 3 | |||
| 4 | import GameEntry from "@components/GameEntry.tsx"; | ||
| 5 | import { Game } from "@customTypes/Game.ts"; | ||
| 6 | |||
| 7 | interface GamesProps { | ||
| 8 | games: Game[]; | ||
| 9 | } | ||
| 10 | |||
| 11 | const Games: React.FC<GamesProps> = ({ games }) => { | ||
| 12 | return ( | ||
| 13 | <div className="ml-20 min-h-screen text-foreground font-[--font-barlow-semicondensed-regular] overflow-y-auto scrollbar-thin"> | ||
| 14 | <Helmet> | ||
| 15 | <title>LPHUB | Games</title> | ||
| 16 | </Helmet> | ||
| 17 | <section className="py-12 px-12 w-full"> | ||
| 18 | <h1 className="text-3xl font-bold mb-8">Games</h1> | ||
| 19 | <div className="flex flex-col w-full"> | ||
| 20 | {games.map((game, index) => ( | ||
| 21 | <GameEntry game={game} key={index} /> | ||
| 22 | ))} | ||
| 23 | </div> | ||
| 24 | </section> | ||
| 25 | </div> | ||
| 26 | ); | ||
| 27 | }; | ||
| 28 | |||
| 29 | export default Games; | ||