mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Replaced repos tab with contribute tab
This commit is contained in:
parent
86b01f443a
commit
72ea24c071
9 changed files with 122 additions and 10 deletions
50
src/components/Helps.js
Normal file
50
src/components/Helps.js
Normal 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>
|
||||
)
|
||||
}
|
25
src/components/Helps.module.css
Normal file
25
src/components/Helps.module.css
Normal file
|
@ -0,0 +1,25 @@
|
|||
.text {
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.helpTable {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.helpTable td {
|
||||
padding: 5px 2px;
|
||||
}
|
||||
|
||||
.helpHeader {
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.helpRow td {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.title {
|
||||
text-align: center;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue