create skill tsx and update skill groups to use it. make things scrollable.
This commit is contained in:
1 parent
824ee6e1e8
commit
18298c35d4
13 files changed
+164
-437
No files matched your search
+6
-32
@@ -1,4 +1,5 @@
|
||||
import { useState, useEffect } from 'react'
|
||||
import { SkillHeader, SkillRow } from './skill'
|
||||
|
||||
const baseUrl = typeof window !== 'undefined'
|
||||
? window.location.origin
|
||||
@@ -19,39 +20,12 @@ export function Control() {
|
||||
return (
|
||||
<main>
|
||||
<table className="cyber-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style={{ width: "70%" }}>CONTROL SKILLS</th>
|
||||
<th style={{ width: "10%" }}>RANKS</th>
|
||||
<th style={{ width: "10%" }}>STAT</th>
|
||||
<th style={{ width: "10%" }}>BASE</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<SkillHeader skillGroup="CONTROL SKILLS" />
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>DRIVE LAND VEHICLE</td>
|
||||
<td>{skills.driveland}</td>
|
||||
<td>{stats.dex}</td>
|
||||
<td>{stats.dex + skills.driveland}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PILOT AIR VEHICLE</td>
|
||||
<td>{skills.pilotair}</td>
|
||||
<td>{stats.dex}</td>
|
||||
<td>{stats.dex + skills.pilotair}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PILOT SEA VEHICLE</td>
|
||||
<td>{skills.lipreading}</td>
|
||||
<td>{stats.dex}</td>
|
||||
<td>{stats.dex + skills.pilotsea}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RIDING</td>
|
||||
<td>{skills.riding}</td>
|
||||
<td>{stats.dex}</td>
|
||||
<td>{stats.dex + skills.riding}</td>
|
||||
</tr>
|
||||
<SkillRow skillName="DRIVE LAND" skillRank={skills.driveland} stat={stats.dex} />
|
||||
<SkillRow skillName="PILOT AIR" skillRank={skills.pilotair} stat={stats.dex} />
|
||||
<SkillRow skillName="PILOT SEA" skillRank={skills.pilotsea} stat={stats.dex} />
|
||||
<SkillRow skillName="RIDING" skillRank={skills.riding} stat={stats.dex} />
|
||||
</tbody>
|
||||
</table>
|
||||
</main>
|
||||
|
||||
Reference in new issue
Block a user