79 lines
2.3 KiB
TypeScript
79 lines
2.3 KiB
TypeScript
import type { Route } from "./+types/home";
|
|
import { Awareness } from "../skills/awareness";
|
|
import { Body } from "../skills/body";
|
|
import { Control } from "../skills/control";
|
|
import { EducationTop, EducationBottom } from "../skills/education"
|
|
import { Fighting } from "../skills/fighting"
|
|
import { Performance } from "../skills/performance"
|
|
import { RangedTop, RangedBottom } from "../skills/ranged"
|
|
import { Social } from "../skills/social"
|
|
import { Technique } from "../skills/technique"
|
|
import { Details } from "../details/details"
|
|
import { Stats } from "../details/stats"
|
|
import { WeaponsAndArmor } from "../details/weaponsandarmor"
|
|
|
|
export function meta({ }: Route.MetaArgs) {
|
|
return [
|
|
{ title: "New React Router App" },
|
|
{ name: "description", content: "Welcome to React Router!" },
|
|
];
|
|
}
|
|
|
|
function SkillTable() {
|
|
return (
|
|
<div style={{display: "flex", flexDirection: "row"}}>
|
|
<div style={{flexGrow: 1}} >
|
|
<Awareness />
|
|
<Body />
|
|
<Control />
|
|
<EducationTop />
|
|
</div>
|
|
<div style={{flexGrow: 1}} >
|
|
<EducationBottom />
|
|
<Fighting />
|
|
<Performance />
|
|
<RangedTop />
|
|
</div>
|
|
<div style={{flexGrow: 1}} >
|
|
<RangedBottom />
|
|
<Social />
|
|
<Technique />
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default function Home() {
|
|
return (
|
|
<main style={{height:"100vh"}}>
|
|
|
|
<div className="demo-layout">
|
|
<nav className="cyber-nav">
|
|
<span className="cyber-nav__brand">Collateral</span>
|
|
<ul className="cyber-nav__links">
|
|
<li><span className="cyber-nav__link cyber-nav__link--active">Stats and Skills</span></li>
|
|
<li><span className="cyber-nav__link">Cyber</span></li>
|
|
<li><span className="cyber-nav__link">Gear</span></li>
|
|
<li><span className="cyber-nav__link">Loadouts</span></li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
|
|
<div style={{display: "flex", flexDirection: "row", height: "100px"}}>
|
|
<div style={{width: "400px", padding: "10px"}}>
|
|
<Details />
|
|
</div>
|
|
|
|
<div style={{padding:"10px"}}><Stats /></div>
|
|
|
|
<div style={{flexGrow:10, height: "calc(100vh - 350px)"}}>
|
|
<div style={{padding:"10px", overflow: "auto", height:"100%"}}><SkillTable /></div>
|
|
<WeaponsAndArmor />
|
|
</div>
|
|
</div>
|
|
|
|
</main>
|
|
);
|
|
|
|
}
|