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 - + @@ -206,29 +206,37 @@ export const Home: React.FC = () => { - Vocabulary - 5 Shelves + + Vocabulary + 5 Shelves + - Books - 3 Shelves + + Books + 3 Shelves + - IELTS - 5 Shelves + + IELTS + 5 Shelves + - GRE - 2 Shelves + + GRE + 2 Shelves +