From bb7c75a3ba1653cb4b087e9bf0f67b4a64819746 Mon Sep 17 00:00:00 2001 From: HenriqueSSan Date: Sun, 9 Oct 2022 11:21:22 -0300 Subject: [PATCH] feat: created gallery section and responsive --- assets/css/main.css | 52 +++++++++++++++++++++++++++++++++++++++++++++ index.html | 7 ++++++ 2 files changed, 59 insertions(+) diff --git a/assets/css/main.css b/assets/css/main.css index c4e0273..2da6913 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -139,6 +139,49 @@ } } +/*---------*\ += GALLERY = +\*---------*/ +.gallery { + --hs-grid-space: 24px 14px; + + padding: 0 24px; + margin-bottom: 112px; +} + +.gallery-container { + position: relative; + grid-template-columns: repeat(2, 1fr); + justify-content: center; + transform: translateY(2rem); +} + +.gallery-image-1 { + width: 100%; +} + +.gallery-image-2 { + width: 100%; +} + +.gallery-image-3 { + width: 100%; + grid-column: 1/2 span; +} + +@media screen and (min-width:1025px) { + .gallery-container { + width: 88%; + margin: 0 auto; + grid-template-columns: repeat(3, 1fr); + transform: translateY(4rem); + } + + .gallery-image-3 { + grid-column: auto; + } +} + /*CUBE CSS styles*/ /*-------------*\ @@ -148,6 +191,11 @@ margin-top: var(--hs-flow-space); } +.grid-box { + display: grid; + gap: var(--hs-grid-space); +} + .flex-box { display: flex; gap: var(--hs-flex-space); @@ -177,6 +225,10 @@ background-color: var(--bg-clr-black); } +.bg-clr-gray { + background-color: var(--bg-clr-gray); +} + @media only screen and (max-width: 1024px) { .image-mobile { display: flex; diff --git a/index.html b/index.html index 690f1fd..9406730 100644 --- a/index.html +++ b/index.html @@ -102,6 +102,13 @@ + -- 2.34.1