split education skills into top / bottom halves.

This commit is contained in:
iamBadgers committed 2026-10-20 17:19:48 -07:00
1 parent 06fe33c450
commit 9387bcdf21
2 files changed
+81 -22

No files matched your search

+3 -2
View File
@@ -3,7 +3,7 @@ import { Welcome } from "../welcome/welcome";
import { Awareness } from "../skills/awareness";
import { Body } from "../skills/body";
import { Control } from "../skills/control";
import { Education } from "../skills/education"
import { Education, EducationTop, EducationBottom } from "../skills/education"
import { Fighting } from "../skills/fighting"
import { Performance } from "../skills/performance"
import { Ranged } from "../skills/ranged"
@@ -31,9 +31,10 @@ export default function Home() {
<Awareness />
<Body />
<Control />
<EducationTop />
</div>
<div className="flex-col stats-and-skills-skill-column">
<Education />
<EducationBottom />
<Fighting />
<Performance />
</div>
+78 -20
View File
@@ -31,6 +31,82 @@ function SkillRow({ skillName, skillRank, stat }) {
);
}
function EducationTopSkills({ stats, skills }) {
return (<>
<SkillRow skillName="ACCOUNTING" skillRank={skills.accounting} stat={stats.int} />
<SkillRow skillName="ANIMAL HANDLING" skillRank={skills.animalhandling} stat={stats.int} />
<SkillRow skillName="BUREAUCRAY" skillRank={skills.bureaucracy} stat={stats.int} />
<SkillRow skillName="BUSINESS" skillRank={skills.business} stat={stats.int} />
<SkillRow skillName="COMPOSITION" skillRank={skills.composition} stat={stats.int} />
<SkillRow skillName="CRIMINOLOGY" skillRank={skills.criminology} stat={stats.int} />
<SkillRow skillName="CRYPTOGRAPHY" skillRank={skills.cryptography} stat={stats.int} />
<SkillRow skillName="DEDUCTION" skillRank={skills.deduction} stat={stats.int} />
<SkillRow skillName="EDUCATION" skillRank={skills.education} stat={stats.int} />
<SkillRow skillName="GAMBLE" skillRank={skills.gamble} stat={stats.int} />
</>)
}
function EducationBottomSkills({ stats, skills }) {
return (<>
<SkillRow skillName="LANGUAGE:" skillRank="---" stat="---" />
<SkillRow skillName="-- STREETSLANG" skillRank={skills.lang_streetslang} stat={stats.int} />
<SkillRow skillName="-- ENGLISH" skillRank={skills.lang_english} stat={stats.int} />
<SkillRow skillName="-- SPANISH" skillRank={skills.lang_spanish} stat={stats.int} />
<SkillRow skillName="LIBRARY SEARCH" skillRank={skills.librarysearch} stat={stats.int} />
<SkillRow skillName="LOCAL EXPERT:" skillRank="---" stat="---" />
<SkillRow skillName="-- OLD COMBAT ZONE" skillRank={skills.localex_ocz} stat={stats.int} />
<SkillRow skillName="-- HOT ZONE" skillRank={skills.localex_hotzone} stat={stats.int} />
<SkillRow skillName="TACTICS" skillRank={skills.tactics} stat={stats.int} />
<SkillRow skillName="WILDERNESS SURVIVAL" skillRank={skills.wildernesssurvival} stat={stats.int} />
</>)
}
export function EducationTop() {
const [stats] = useState(st)
const [skills] = useState(sk)
return (
<main>
<table className="cyber-table">
<thead>
<tr>
<th style={{ width: "70%" }}>EDUCATION SKILLS</th>
<th style={{ width: "10%" }}>RANKS</th>
<th style={{ width: "10%" }}>STAT</th>
<th style={{ width: "10%" }}>BASE</th>
</tr>
</thead>
<tbody>
<EducationTopSkills stats={stats} skills={skills} />
</tbody>
</table>
</main>
)
}
export function EducationBottom() {
const [stats] = useState(st)
const [skills] = useState(sk)
return (
<main>
<table className="cyber-table">
<thead>
<tr>
<th style={{ width: "70%" }}>EDUCATION SKILLS</th>
<th style={{ width: "10%" }}>RANKS</th>
<th style={{ width: "10%" }}>STAT</th>
<th style={{ width: "10%" }}>BASE</th>
</tr>
</thead>
<tbody>
<EducationBottomSkills stats={stats} skills={skills} />
</tbody>
</table>
</main>
)
}
export function Education() {
const [stats] = useState(st)
@@ -48,26 +124,8 @@ export function Education() {
</tr>
</thead>
<tbody>
<SkillRow skillName="ACCOUNTING" skillRank={skills.accounting} stat={stats.int} />
<SkillRow skillName="ANIMAL HANDLING" skillRank={skills.animalhandling} stat={stats.int} />
<SkillRow skillName="BUREAUCRAY" skillRank={skills.bureaucracy} stat={stats.int} />
<SkillRow skillName="BUSINESS" skillRank={skills.business} stat={stats.int} />
<SkillRow skillName="COMPOSITION" skillRank={skills.composition} stat={stats.int} />
<SkillRow skillName="CRIMINOLOGY" skillRank={skills.criminology} stat={stats.int} />
<SkillRow skillName="CRYPTOGRAPHY" skillRank={skills.cryptography} stat={stats.int} />
<SkillRow skillName="DEDUCTION" skillRank={skills.deduction} stat={stats.int} />
<SkillRow skillName="EDUCATION" skillRank={skills.education} stat={stats.int} />
<SkillRow skillName="GAMBLE" skillRank={skills.gamble} stat={stats.int} />
<SkillRow skillName="LANGUAGE:" skillRank="---" stat="---" />
<SkillRow skillName="-- STREETSLANG" skillRank={skills.lang_streetslang} stat={stats.int} />
<SkillRow skillName="-- ENGLISH" skillRank={skills.lang_english} stat={stats.int} />
<SkillRow skillName="-- SPANISH" skillRank={skills.lang_spanish} stat={stats.int} />
<SkillRow skillName="LIBRARY SEARCH" skillRank={skills.librarysearch} stat={stats.int} />
<SkillRow skillName="LOCAL EXPERT:" skillRank="---" stat="---" />
<SkillRow skillName="-- OLD COMBAT ZONE" skillRank={skills.localex_ocz} stat={stats.int} />
<SkillRow skillName="-- HOT ZONE" skillRank={skills.localex_hotzone} stat={stats.int} />
<SkillRow skillName="TACTICS" skillRank={skills.tactics} stat={stats.int} />
<SkillRow skillName="WILDERNESS SURVIVAL" skillRank={skills.wildernesssurvival} stat={stats.int} />
<EducationTopSkills stats={stats} skills={skills} />
<EducationBottomSkills stats={stats} skills={skills} />
</tbody>
</table>
</main>