css stuff. rows and cols for main.
This commit is contained in:
1 parent
2a61649fcb
commit
4e30b49c6c
5 files changed
+132
-18
No files matched your search
+42
-1
@@ -1,3 +1,44 @@
|
||||
import { useState, useEffect } from 'react'
|
||||
const baseUrl = typeof window !== 'undefined'
|
||||
? window.location.origin
|
||||
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env
|
||||
|
||||
const st = await fetch(`${baseUrl}/characters/collateral/stats.json`)
|
||||
.then(r => r.json());
|
||||
|
||||
const sk = await
|
||||
fetch(`${baseUrl}/characters/collateral/skills.json`)
|
||||
.then(r => r.json());
|
||||
|
||||
const dt = await
|
||||
fetch(`${baseUrl}/characters/collateral/details.json`)
|
||||
.then(r => r.json());
|
||||
|
||||
export function Details() {
|
||||
return (
|
||||
<main>
|
||||
<div className="cyber-card">
|
||||
<div className="cyber-card__body flex flex-col">
|
||||
<h4 className="cyber-h5">{dt.name}</h4>
|
||||
<div className="flex">
|
||||
<img style={{ height: "100px" }} src={`${baseUrl}/characters/collateral/portrait.jpg`}></img>
|
||||
<div className="flex-col">
|
||||
<h5>{dt.role_one} {dt.role_one_rank}</h5>
|
||||
<h5>{dt.role_two} {dt.role_two_rank}</h5>
|
||||
<h5>{dt.role_three} {dt.role_three_rank}</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="cyber-card">
|
||||
<div className="cyber-card__body">
|
||||
<h4 className="cyber-h5">Notes</h4>
|
||||
<div className="flex flex-col">
|
||||
<span>Fabrication Expertiese: {dt.fabrication_exp}</span>
|
||||
<span>Upgrade Expertiese: {dt.upgrade_exp}</span>
|
||||
<span>Field Expertiese: {dt.field_exp}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main >
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user