Replaced repos tab with contribute tab

This commit is contained in:
MrFry 2020-04-06 21:30:51 +02:00
parent 86b01f443a
commit 72ea24c071
9 changed files with 122 additions and 10 deletions

50
src/components/Helps.js Normal file
View file

@ -0,0 +1,50 @@
import styles from './Helps.module.css'
import helps from '../data/helps.json'
const header = helps.header
const helpRows = helps.rows
export default function Helps () {
const renderTable = () => {
return (
<table className={styles.helpTable}>
<thead>
<tr className={styles.helpHeader}>
{header.map((h) => {
return (
<td>
{h}
</td>
)
})}
</tr>
</thead>
<tbody>
{Object.keys(helpRows).map((key) => {
const item = helpRows[key]
return (
<tr className={styles.helpRow}>
<td>
{item.name}
</td>
<td>
{item.description}
</td>
</tr>
)
})}
</tbody>
</table>
)
}
return (
<div className={styles.text}>
<div className={styles.title}>
Amiben tudsz segíteni:
</div>
<div>
{renderTable()}
</div>
</div>
)
}