summaryrefslogtreecommitdiffhomepage
path: root/src/components/Game.jsx
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-05-23 16:55:59 -0400
committerrealtradam <[email protected]>2024-05-23 16:55:59 -0400
commit7a38eef00de0bb35565dda3ddb1efa748c22ea47 (patch)
treef94e4fb29bedf5f05dcb6913b77932a077bf0216 /src/components/Game.jsx
parent5f1b0bb1883a8021c7261dad59e063824849fd81 (diff)
downloadmalcz.com-7a38eef00de0bb35565dda3ddb1efa748c22ea47.tar.gz
malcz.com-7a38eef00de0bb35565dda3ddb1efa748c22ea47.zip
improve games
Diffstat (limited to 'src/components/Game.jsx')
-rw-r--r--src/components/Game.jsx13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/components/Game.jsx b/src/components/Game.jsx
index 7746767..a7bd007 100644
--- a/src/components/Game.jsx
+++ b/src/components/Game.jsx
@@ -1,10 +1,7 @@
import React, { useState, useEffect } from "react";
import { useParams } from "react-router-dom";
-//import { Link } from "react-router-dom";
-import GameCard from "./GameCard";
-import Button from "./Button";
-//<Route path="/games/:user/:game" element={<Game />} />
+//<Route path="/game/:game" element={<Game />} />
//export default () => (
export default function Games () {
@@ -12,10 +9,10 @@ export default function Games () {
//http://%{VITE_API_TITLE}/api/v1/game/realtradam/orc-arena-of-time/index.html
return(
<>
- <div>
- <div className="flex flex-col gap-16 max-w-6xl shrink">
- <div className="title font-bold text-6xl font-title">Orc: Arena of Time</div>
- <iframe style={{ aspectRatio: 1 }} className="bg-black aspect-square max-h-[90vh] rounded" src={`${import.meta.env.VITE_API_TITLE}api/v1/game/realtradam/orc-arena-of-time/index.html`} title={game}></iframe>
+ <div className="w-max flex grow shrink justify-center">
+ <div className="w-max flex flex-col gap-16 max-w-6xl shrink grow">
+ <div className="title font-bold text-6xl font-title">{game}</div>
+ <iframe style={{ aspectRatio: 1 }} className="bg-black aspect-square max-h-[90vh] rounded" src={`${import.meta.env.VITE_API_TITLE}/game/realtradam/${game}/index.html`} title={game}></iframe>
</div>
</div>
</>