summaryrefslogtreecommitdiffhomepage
path: root/app/javascript/components/GameCard.jsx
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-05-15 20:35:42 -0400
committerrealtradam <[email protected]>2024-05-15 20:35:42 -0400
commit15bf3d5848aa1b7aeb5177f8b9ca84eb9ff5799f (patch)
treed5c9e7eb61de935e458f0af1d1e2b81d641e0277 /app/javascript/components/GameCard.jsx
parentd2ad5924bce17e3b07ee0af86a8739559dac3b35 (diff)
downloadgameHolster-15bf3d5848aa1b7aeb5177f8b9ca84eb9ff5799f.tar.gz
gameHolster-15bf3d5848aa1b7aeb5177f8b9ca84eb9ff5799f.zip
more styling improvements and gamecards added
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>
+ </>
+ )
+};