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
@@ -1,4 +1,5 @@
|
||||
import { useState, useEffect } from 'react'
|
||||
import { SkillHeader, SkillRow } from './skill'
|
||||
|
||||
const baseUrl = typeof window !== 'undefined'
|
||||
? window.location.origin
|
||||
@@ -19,45 +20,13 @@ export function Awareness() {
|
||||
return (
|
||||
<main>
|
||||
<table className="cyber-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style={{ width: "70%" }}>AWARENESS SKILLS</th>
|
||||
<th style={{ width: "10%" }}>RANKS</th>
|
||||
<th style={{ width: "10%" }}>STAT</th>
|
||||
<th style={{ width: "10%" }}>BASE</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<SkillHeader skillGroup="AWARENES SKILLS"/>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>CONCENTRATION</td>
|
||||
<td>{skills.concentration}</td>
|
||||
<td>{stats.will}</td>
|
||||
<td>{stats.will + skills.concentration}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CONCEAL / REVEAL OBJECT</td>
|
||||
<td>{skills.cro}</td>
|
||||
<td>{stats.int}</td>
|
||||
<td>{stats.int + skills.cro}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>LIP READING</td>
|
||||
<td>{skills.lipreading}</td>
|
||||
<td>{stats.int}</td>
|
||||
<td>{stats.int + skills.lipreading}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PERCEPTION</td>
|
||||
<td>{skills.perception}</td>
|
||||
<td>{stats.int}</td>
|
||||
<td>{stats.int + skills.perception}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TRACKING</td>
|
||||
<td>{skills.tracking}</td>
|
||||
<td>{stats.int}</td>
|
||||
<td>{stats.int + skills.tracking}</td>
|
||||
</tr>
|
||||
<SkillRow skillName="CONCENCTRATION" skillRank={skills.concentration} stat={stats.will} />
|
||||
<SkillRow skillName="CONCEAL/REVEAL" skillRank={skills.cro} stat={stats.int} />
|
||||
<SkillRow skillName="LIP READING" skillRank={skills.lipreading} stat={stats.int} />
|
||||
<SkillRow skillName="PERCEPTION" skillRank={skills.perception} stat={stats.int} />
|
||||
<SkillRow skillName="TRACKING" skillRank={skills.tracking} stat={stats.int} />
|
||||
</tbody>
|
||||
</table>
|
||||
</main>
|
||||
|
||||
Reference in new issue
Block a user