feat(home): cria grid de imagens desktop e mobile

This commit is contained in:
Andrea Matsunaga 2022-10-12 21:27:38 -03:00
parent d8bf785b58
commit bfbb076a42
8 changed files with 98 additions and 2 deletions

View File

@ -64,6 +64,18 @@
</div>
</div>
</section>
<div class="image-grid-container">
<div class="image-grid">
<img class="grid-image-desktop" src="./src/assets/img/grid-image-desktop-01.png" alt="Primeira Imagem do Grid de Imagens"/>
<img class="grid-image-desktop" src="./src/assets/img/grid-image-desktop-02.png" alt="Segunda Imagem do Grid de Imagens"/>
<img class="grid-image-desktop" src="./src/assets/img/grid-image-desktop-03.png" alt="Terceira Imagem do Grid de Imagens"/>
<img class="grid-image-mobile grid-image-mobile-01" src="./src/assets/img/grid-image-mobile-01.png" alt="Primeira Imagem do Grid de Imagens"/>
<img class="grid-image-mobile grid-image-mobile-02" src="./src/assets/img/grid-image-mobile-02.png" alt="Segunda Imagem do Grid de Imagens"/>
<img class="grid-image-mobile grid-image-mobile-03" src="./src/assets/img/grid-image-mobile-03.png" alt="Terceira Imagem do Grid de Imagens"/>
</div>
</div>
</main>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

View File

@ -105,19 +105,73 @@ body {
text-align: center;
}
.image-grid-container {
display: flex;
justify-content: center;
background: #E0E0E0;
}
.image-grid {
width: 92%;
display: flex;
justify-content: center;
gap: 40px;
position: relative;
top: 62px;
}
.grid-image-desktop,
.grid-image-mobile {
display: block;
}
/* ----- RESPONSIVIDADE ----- */
@media screen and (min-width: 2500px) {
}
@media screen and (min-width: 769px) {
.main-banner-mobile {
.main-banner-mobile,
.grid-image-mobile {
display: none;
}
}
@media screen and (min-width: 769px) and (max-width: 1919px) {
.image-grid {
/* width: 100%; */
/* margin: 0 24px; */
display: grid;
grid-template-columns: repeat(2, auto);
grid-template-areas:
"imagem1 imagem2"
"imagem3 imagem3";
column-gap: 14px;
row-gap: 24px;
top: 32px;
background: #E0E0E0;
}
.grid-image-desktop {
max-width: 100%;
}
.grid-image-desktop-01 {
grid-area: imagem1;
}
.grid-image-desktop-02 {
grid-area: imagem2;
}
.grid-image-desktop-03 {
grid-area: imagem3;
}
}
@media screen and (max-width: 768px) {
.main-banner-desktop {
.main-banner-desktop,
.grid-image-desktop {
display: none;
}
@ -158,6 +212,36 @@ body {
.top-card {
max-width: 100%;
}
.image-grid {
/* width: 100%; */
/* margin: 0 24px; */
display: grid;
grid-template-columns: repeat(2, auto);
grid-template-areas:
"imagem1 imagem2"
"imagem3 imagem3";
column-gap: 14px;
row-gap: 24px;
top: 32px;
background: #E0E0E0;
}
.grid-image-mobile {
max-width: 100%;
}
.grid-image-mobile-01 {
grid-area: imagem1;
}
.grid-image-mobile-02 {
grid-area: imagem2;
}
.grid-image-mobile-03 {
grid-area: imagem3;
}
}
@media screen and (max-width: 320px) {