Added missign files

This commit is contained in:
MrFry 2020-03-19 16:37:35 +01:00
parent bd574acf65
commit dcb36beda9
4 changed files with 218 additions and 0 deletions

55
src/pages/repos.js Normal file
View file

@ -0,0 +1,55 @@
import styles from './repos.module.css'
import repos from '../data/repos.json'
export default function Repos (props) {
return (
<div>
<div className={styles.description}>
{repos.description}
</div>
<table className={styles.repoTable}>
<thead>
<tr>
{repos.header.map((x, i) => {
return (
<td key={i}>
{x}
</td>
)
})}
</tr>
</thead>
<tbody>
{Object.keys(repos.repos).map((key) => {
let repo = repos.repos[key]
return (
<tr
key={key}
>
<td>
{repo.description}
</td>
<td>
<a href={repo.href}>
GitLab repo
</a>
</td>
<td>
<a href={repo.href + '/issues'}>
Issues
</a>
</td>
<td>
<a href={repo.href + '/docsTODO'}>
Devel docs
</a>
</td>
</tr>
)
})}
</tbody>
</table>
</div>
)
}