Add cells to card and tidy up

This commit is contained in:
Franc Camps-Febrer
2018-12-06 14:08:47 +00:00
parent 7c707ababf
commit d64a085fb2
12 changed files with 89 additions and 67 deletions

View File

@@ -1,11 +1,13 @@
import React from 'react';
import { capitalizeFirstLetter } from '../../js/data/utilities.js';
const CardCategory = ({ categoryTitle, categoryLabel, color }) => (
<div className="card-cell category">
<div className="card-row card-cell category">
<h4>{categoryTitle}</h4>
<p>
{capitalizeFirstLetter(categoryLabel)}
<span className='color-category' style={{ background: color }}/>
{categoryLabel}
</p>
</div>
);