blob: 8b80b8e7b02f352ecc11c39c0c747fe1f18bd508 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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 />} />
//export default () => (
export default function Games () {
let { user, game } = useParams();
//http://localhost:3000/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="http://localhost:3000/api/v1/game/realtradam/orc-arena-of-time/index.html" title={game}></iframe>
</div>
</div>
</>
);
};
|