From 84972340b3cfdaf2cb726ab6d978ac7be37cc451 Mon Sep 17 00:00:00 2001 From: mattyl006 Date: Fri, 8 Jul 2022 11:03:21 +0200 Subject: [PATCH] correct mini challenges alignment and metric icon --- src/assets/metric_ico.svg | 4 +--- src/components/elements/IconLabel.js | 3 +-- src/components/elements/MiniChallenge.js | 10 +++++----- src/pages/Challenges.js | 18 ++++++++++-------- 4 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/assets/metric_ico.svg b/src/assets/metric_ico.svg index 311c19f..9691616 100644 --- a/src/assets/metric_ico.svg +++ b/src/assets/metric_ico.svg @@ -1,3 +1 @@ - - - + \ No newline at end of file diff --git a/src/components/elements/IconLabel.js b/src/components/elements/IconLabel.js index 4cc72d1..4f4772f 100644 --- a/src/components/elements/IconLabel.js +++ b/src/components/elements/IconLabel.js @@ -5,8 +5,7 @@ import {Medium} from "../../utils/fonts"; const IconLabel = (props) => { return ( - {props.children} diff --git a/src/components/elements/MiniChallenge.js b/src/components/elements/MiniChallenge.js index 2a7032d..f6adbc0 100644 --- a/src/components/elements/MiniChallenge.js +++ b/src/components/elements/MiniChallenge.js @@ -30,7 +30,7 @@ const ChallengeStyle = styled(FlexColumn)` const Line = styled(Container)` height: 1px; - width: 80%; + width: 85%; background-color: ${({theme}) => theme.colors.dark05}; margin-bottom: 14px; `; @@ -49,13 +49,13 @@ const IconsGrid = styled(Grid)` const MiniChallenge = (props) => { return ( - -

+ +

{props.title}

- +
- + {props.describe} diff --git a/src/pages/Challenges.js b/src/pages/Challenges.js index 8d880b7..772ceae 100644 --- a/src/pages/Challenges.js +++ b/src/pages/Challenges.js @@ -17,14 +17,16 @@ const Challenges = () => { Challenges

- - - - - + + + + + + +