From a4023d8250ceca89d4e2f93c1b05289476eb05d0 Mon Sep 17 00:00:00 2001 From: kj1352 Date: Thu, 8 Jul 2021 14:25:43 +0530 Subject: [PATCH] home page - grid block UI --- src/components/home/Home.module.scss | 69 ++++++++++++++++++++++++++++ src/components/home/Home.tsx | 26 +++++++---- 2 files changed, 86 insertions(+), 9 deletions(-) diff --git a/src/components/home/Home.module.scss b/src/components/home/Home.module.scss index d9a6a7b..58a7968 100644 --- a/src/components/home/Home.module.scss +++ b/src/components/home/Home.module.scss @@ -270,4 +270,73 @@ $block-padding: 0 2rem; margin-top: 1rem; } } +} + + +.Grid { + padding: #{$block-padding}; + + ul { + list-style: none; + display: grid; + grid-template-columns: 1fr 1fr; + } + + li { + display: flex; + justify-content: space-between; + align-items: center; + margin: 2rem 0; + + &:nth-child(1) .icon { + background-color: var(--orange); + } + + &:nth-child(2) .icon { + background-color: var(--blue); + } + + &:nth-child(3) .icon { + background-color: var(--red); + } + + &:nth-child(4) .icon { + background-color: var(--teal); + } + } + + .icon { + width: 4rem; + height: 4rem; + background-color: var(--grey); + display: flex; + align-items: center; + justify-content: center; + border-radius: 1rem; + + svg { + fill: white; + width: 3rem; + } + } + + .info { + width: calc(100% - 5rem); + + label, span { + display: block; + } + + label { + font-size: 1.2rem; + color: var(--black); + font-weight: 700; + } + + span { + font-size: 1rem; + color: var(--grey); + font-weight: 500; + } + } } \ No newline at end of file diff --git a/src/components/home/Home.tsx b/src/components/home/Home.tsx index 30302cc..a47ae82 100644 --- a/src/components/home/Home.tsx +++ b/src/components/home/Home.tsx @@ -194,7 +194,7 @@ export const Home: React.FC = () => { Categories -