summaryrefslogtreecommitdiffhomepage
path: root/app/javascript/components/GameCard.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/components/GameCard.jsx')
-rw-r--r--app/javascript/components/GameCard.jsx19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/javascript/components/GameCard.jsx b/app/javascript/components/GameCard.jsx
new file mode 100644
index 0000000..6b79630
--- /dev/null
+++ b/app/javascript/components/GameCard.jsx
@@ -0,0 +1,19 @@
+import React from "react";
+//import { Link } from "react-router-dom";
+
+export default function GameCard ({ link = "./", width = "72" })
+{
+ return (
+ <>
+ <a href={ link } className="block w-min pt-10 px-1" target="_blank">
+ <div className="gameCard">
+ <div className="gameCardWrapper">
+ <img src="https://ggayane.github.io/css-experiments/cards/dark_rider-cover.jpg" className="gameCardCoverImg" />
+ </div>
+ <img src="https://ggayane.github.io/css-experiments/cards/dark_rider-title.png" className="gameTitleImg p-5%" />
+ <img src="https://ggayane.github.io/css-experiments/cards/dark_rider-character.webp" className="gameCharacterImg" />
+ </div>
+ </a>
+ </>
+ )
+};