From a142f1280bac22a0f0e3677c14532f486d115a63 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Fri, 20 Nov 2020 22:15:18 -0500 Subject: [PATCH] Initial Commit without API --- src/App.js | 44 ++++++++++++++++++++++++++++---------------- src/index.css | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 16 deletions(-) diff --git a/src/App.js b/src/App.js index 3784575..42f2ffc 100644 --- a/src/App.js +++ b/src/App.js @@ -1,25 +1,37 @@ -import logo from './logo.svg'; import './App.css'; +const sqlCards = [{ "CardImg":"https://is4-ssl.mzstatic.com/image/thumb/Purple118/v4/91/43/40/9143401d-5824-5d0a-e559-4872b27602b9/source/256x256bb.jpg", "CardName": "Devouring Dragon", "ManaCost": 5, "Power": 5, "Toughness": 5, "CardDesc": "He does to people what Greg does to booty.", "CreatureType": "Dragon" }, +{ "CardImg":"https://spellbook.blob.core.windows.net/hodassets/defaultportraits/fighter_default_cultist_female_0_2.jpg", "CardName": "Dragon Worshipper", "ManaCost": 1, "Power": 1, "Toughness": 1, "CardDesc": "He spends his days praying to dragons.", "CreatureType": "Human" }, +{ "CardImg":"https://a.wattpad.com/useravatar/Angoleth.256.592295.jpg", "CardName": "Dragon Whelp", "ManaCost": 2, "Power": 3, "Toughness": 2, "CardDesc": "He will get there.", "CreatureType": "Dragon" }]; + +function Card(props) { + props = props.props + return ( +
+

{props.CardName}

+ Avatar +
+

{props.CardDesc}

+

Mana: {props.ManaCost}

+

Power: {props.Power}

+

Toughness: {props.Toughness}

+
+
+ ) +} + function App() { return (
-
- logo -

- Edit src/App.js and save to reload. -

- - Learn React - -
+
); } -export default App; +export default App; \ No newline at end of file diff --git a/src/index.css b/src/index.css index ec2585e..974368d 100644 --- a/src/index.css +++ b/src/index.css @@ -11,3 +11,45 @@ code { font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; } +.card { + /* Add shadows to create the "card" effect */ + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.137); + border-radius: 3%; + transition: 0.3s; + position: relative; + width: 300px; + height: 450px; + padding: 10px; + background-color: #a05236a6; + color: #FFFFFF; +} + +/* On mouse-over, add a deeper shadow */ +.card:hover { + box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.795); +} + +/* Add some padding inside the card container */ +.container { + padding: 6px 16px; +} + +ul { + list-style-type: none; + margin: 4; + padding: 20px; + overflow: hidden; + display: table; + width: 100%; + list-style: none; +} + +li { + float: left; + display: table-cell; + text-align: center; + margin: 5px; +} +ul li div { + display: block; +} \ No newline at end of file