Add quadrant overview pages

This commit is contained in:
Tom Raithel
2017-02-21 21:10:24 +01:00
parent 61d46f96bb
commit c0dd1809e3
8 changed files with 185 additions and 76 deletions

20
js/components/Item.js Normal file
View File

@@ -0,0 +1,20 @@
import React from 'react';
import classNames from 'classnames';
export default function Item({ item, noLeadingBorder = false}) {
return (
<a
className={classNames('item', {
'item--no-leading-border': noLeadingBorder,
})}
href={`/${item.quadrant}/${item.name}.html`}
>
<div className="item__title">{item.title}</div>
{
item.info && (
<div className="item__info">{item.info}</div>
)
}
</a>
);
}