summaryrefslogtreecommitdiffhomepage
path: root/src/components/GameCard.jsx
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-06-06 19:24:45 -0400
committerrealtradam <[email protected]>2024-06-06 19:24:45 -0400
commit34346b1fd4fffd2571374f86b16084066dc4aa2d (patch)
tree1f147151e9b1eb9449394d5adb1827b04c4841c5 /src/components/GameCard.jsx
parent7a38eef00de0bb35565dda3ddb1efa748c22ea47 (diff)
downloadmalcz.com-34346b1fd4fffd2571374f86b16084066dc4aa2d.tar.gz
malcz.com-34346b1fd4fffd2571374f86b16084066dc4aa2d.zip
add seperate uploading page and update match backend functionality
Diffstat (limited to 'src/components/GameCard.jsx')
-rw-r--r--src/components/GameCard.jsx26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/components/GameCard.jsx b/src/components/GameCard.jsx
deleted file mode 100644
index ac63160..0000000
--- a/src/components/GameCard.jsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import React from "react";
-//import { Link } from "react-router-dom";
-
-//game = {
-// card_img: "",
-// char_img: "",
-// title_img: ""
-//}
-
-export default function GameCard ({ link = "./", width = "72", game = { card_img: "https://ggayane.github.io/css-experiments/cards/dark_rider-cover.jpg", char_img: "https://ggayane.github.io/css-experiments/cards/dark_rider-character.png", title_img: "https://ggayane.github.io/css-experiments/cards/dark_rider-title.png" } })
-{
-
- return (
- <>
- <a href={ link } className="block w-min pt-10 px-1" target="_blank">
- <div className="gameCard">
- <div className="gameCardWrapper">
- <img style={{imageRendering: game.img_rendering}} src={`${import.meta.env.VITE_API_TITLE}/api/v1/games_img/realtradam/${game.titleSlug}.png?type=card`} className="gameCardCoverImg" />
- </div>
- <img style={{imageRendering: game.img_rendering}} src={`${import.meta.env.VITE_API_TITLE}/api/v1/games_img/realtradam/${game.titleSlug}.png?type=title`} className="gameTitleImg p-5%" />
- <img style={{imageRendering: game.img_rendering}} src={`${import.meta.env.VITE_API_TITLE}/api/v1/games_img/realtradam/${game.titleSlug}.png?type=char`} className="gameCharacterImg" />
- </div>
- </a>
- </>
- )
-};