create skill tsx and update skill groups to use it. make things scrollable.

This commit is contained in:
iamBadgers committed 2026-10-23 22:32:29 -07:00
1 parent 824ee6e1e8
commit 18298c35d4
13 files changed
+164 -437

No files matched your search

+11 -62
View File
@@ -1,4 +1,5 @@
import { useState, useEffect } from 'react'
import { SkillHeader, SkillRow } from './skill'
const baseUrl = typeof window !== 'undefined'
? window.location.origin
@@ -19,69 +20,17 @@ export function Social() {
return (
<main>
<table className="cyber-table">
<thead>
<tr>
<th style={{ width: "70%" }}>SOCIAL SKILLS</th>
<th style={{ width: "10%" }}>RANKS</th>
<th style={{ width: "10%" }}>STAT</th>
<th style={{ width: "10%" }}>BASE</th>
</tr>
</thead>
<SkillHeader skillGroup="SOCIAL SKILLS" />
<tbody>
<tr>
<td>BRIBERY</td>
<td>{skills.bribery}</td>
<td>{stats.cool}</td>
<td>{stats.cool + skills.bribery}</td>
</tr>
<tr>
<td>CONVERSATION</td>
<td>{skills.conversation}</td>
<td>{stats.emp}</td>
<td>{stats.emp + skills.conversation}</td>
</tr>
<tr>
<td>HUMAN PERCEPTION</td>
<td>{skills.humper}</td>
<td>{stats.emp}</td>
<td>{stats.emp + skills.humper}</td>
</tr>
<tr>
<td>INTERROGATION</td>
<td>{skills.interogation}</td>
<td>{stats.cool}</td>
<td>{stats.cool + skills.interogation}</td>
</tr>
<tr>
<td>PERSUASION</td>
<td>{skills.persuasion}</td>
<td>{stats.cool}</td>
<td>{stats.cool + skills.persuasion}</td>
</tr>
<tr>
<td>PERSONAL GROOMING</td>
<td>{skills.heavyweapons}</td>
<td>{stats.cool}</td>
<td>{stats.cool + skills.heavyweapons}</td>
</tr>
<tr>
<td>STREETWISE</td>
<td>{skills.streetwise}</td>
<td>{stats.cool}</td>
<td>{stats.cool + skills.streetwise}</td>
</tr>
<tr>
<td>TRADING</td>
<td>{skills.trading}</td>
<td>{stats.cool}</td>
<td>{stats.cool + skills.trading}</td>
</tr>
<tr>
<td>WARDROBE AND STYLE</td>
<td>{skills.wardrobe}</td>
<td>{stats.cool}</td>
<td>{stats.cool + skills.wardrobe}</td>
</tr>
<SkillRow skillName="BRIBERY" skillRank={skills.bribery} stat={stats.cool} />
<SkillRow skillName="CONVERSATION" skillRank={skills.conversation} stat={stats.emp} />
<SkillRow skillName="HUMAN PERCEPTION" skillRank={skills.humper} stat={stats.emp} />
<SkillRow skillName="INTEROGATION" skillRank={skills.interogation} stat={stats.cool} />
<SkillRow skillName="PERSUASION" skillRank={skills.persuasion} stat={stats.cool} />
<SkillRow skillName="PERSONAL GROOM" skillRank={skills.personalgrooming} stat={stats.cool} />
<SkillRow skillName="STREETWISE" skillRank={skills.streetwise} stat={stats.cool} />
<SkillRow skillName="TRADING" skillRank={skills.trading} stat={stats.cool} />
<SkillRow skillName="WARDROBE/STYLE" skillRank={skills.wardrobe} stat={stats.cool} />
</tbody>
</table>
</main>