Slimmed cards down, and made their layout relative
This commit is contained in:
@ -11,9 +11,9 @@ function Card(data) {
|
|||||||
<img src={data.CardImg !== undefined ? data.CardImg : "https://thiscatdoesnotexist.com/"} alt="Avatar" style={{ width: "100%" }} />
|
<img src={data.CardImg !== undefined ? data.CardImg : "https://thiscatdoesnotexist.com/"} alt="Avatar" style={{ width: "100%" }} />
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<p>{data.CardDesc}</p>
|
<p>{data.CardDesc}</p>
|
||||||
<p style={{position: "absolute", bottom: -8, left: 8}}>Mana: {data.ManaCost}</p>
|
<p style={{position: "absolute", bottom: -8, left: "2%"}}>Mana: {data.ManaCost}</p>
|
||||||
<p style={{position: "absolute", bottom: -8, left: 125}}>Power: {data.Power} </p>
|
<p style={{position: "absolute", bottom: -8, left: "35%"}}>Power: {data.Power} </p>
|
||||||
<p style={{position: "absolute", bottom: -8, right: 8}}>Toughness: {data.Toughness}</p>
|
<p style={{position: "absolute", bottom: -8, right: "2%"}}>Toughness: {data.Toughness}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -17,8 +17,8 @@ code {
|
|||||||
border-radius: 3%;
|
border-radius: 3%;
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 300px;
|
width: 250px;
|
||||||
height: 450px;
|
height: 420px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color: #a05236a6;
|
background-color: #a05236a6;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
|
|||||||
Reference in New Issue
Block a user