From 3321db8f9c549103ebae46bf025a3135208a2e3b Mon Sep 17 00:00:00 2001 From: realtradam Date: Fri, 17 May 2024 22:16:00 -0400 Subject: uploading images to games and also iframes for games --- app/javascript/components/GameCard.jsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'app/javascript/components/GameCard.jsx') diff --git a/app/javascript/components/GameCard.jsx b/app/javascript/components/GameCard.jsx index 6b79630..9cd815d 100644 --- a/app/javascript/components/GameCard.jsx +++ b/app/javascript/components/GameCard.jsx @@ -1,17 +1,24 @@ import React from "react"; //import { Link } from "react-router-dom"; -export default function GameCard ({ link = "./", width = "72" }) +//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 ( <>
- +
- - + +
-- cgit v1.2.3