diff --git a/api/extensions/users-permissions/controllers/Auth.js b/api/extensions/users-permissions/controllers/Auth.js index 04996a0..24825d8 100644 --- a/api/extensions/users-permissions/controllers/Auth.js +++ b/api/extensions/users-permissions/controllers/Auth.js @@ -26,7 +26,7 @@ const formatError = error => [ module.exports = { /** - * Registers the user in Strapi and the authenticates with the AstroPlant Core API. + * Registers the user in Strapi and authenticates with the AstroPlant Core API. */ async register(ctx) { const advanced = await strapi diff --git a/components/cards/DashboardLinkCard.js b/components/cards/DashboardLinkCard.js index 1d167ca..7b56d99 100644 --- a/components/cards/DashboardLinkCard.js +++ b/components/cards/DashboardLinkCard.js @@ -29,6 +29,7 @@ const IconHolder = styled(Icon)` const Title = styled.h3` margin: 0 0 0 1rem; + color: ${props => props.theme.primary}; transition: color 0.2s ease-out; @@ -51,7 +52,7 @@ export default function DashboardLinkCard({ href, icon, title, description }) { - + {icon} {title} diff --git a/components/cards/KitCard.js b/components/cards/KitCard.js index 079ffe4..5688636 100644 --- a/components/cards/KitCard.js +++ b/components/cards/KitCard.js @@ -1,13 +1,15 @@ import React from "react"; import styled from "styled-components"; +import Theme from "../../styles/theme"; +import Button from "../Button"; import InProgress from "../InProgress"; import Card from "./Card"; +import PeripheralCard from "./PeripheralCard"; const Container = styled(Card)` flex-flow: column; align-items: center; justify-content: center; - text-align: center; `; @@ -20,21 +22,53 @@ const Details = styled.p` } `; +const TopContainer = styled.div` + display: flex; + justify-content: space-between; + gap: 1.5rem; + flex-wrap: wrap; + width: 100%; + margin-bottom: 1.5rem; +`; + +const PeripheralCardsContainer = styled.div` + align-self: flex-start; + display: grid; + gap: 1.5rem; + width: 100%; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr) ); +`; + export default function KitCard(props) { + + if (props.kit) { + return ( + + + +

{props.kit.name}

+