feat: adiciona galeria

This commit is contained in:
Rafael Sampaio de Oliveira 2022-10-10 23:04:31 -03:00
parent 90d1ea40c5
commit 3ebcf93844
5 changed files with 96 additions and 1 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.4 MiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 718 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -89,8 +89,8 @@ header {
.cards-container { .cards-container {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
justify-content: center; justify-content: center;
gap: 20px;
width: 57%; width: 57%;
} }
@ -115,6 +115,34 @@ header {
line-height: 24px; line-height: 24px;
} }
.gallery {
display: flex;
justify-content: center;
width: 100%;
background: #e0e0e0;
margin-bottom: 95px;
}
.gallery-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(31%, 1fr));
justify-content: center;
gap: 40px;
width: 92%;
}
.gallery-container figure {
display: flex;
justify-content: center;
position: relative;
top: 60px;
width: 100%;
}
.gallery-container img {
width: 100%;
}
@media (max-width: 414px) { @media (max-width: 414px) {
.banner-desktop { .banner-desktop {
display: none; display: none;
@ -155,6 +183,23 @@ header {
.cards { .cards {
margin-top: 0; margin-top: 0;
} }
.gallery-container {
gap: 24px 14px;
}
.gallery-container figure {
top: 30px;
}
.image03 {
position: relative;
left: 54%;
}
.image03 img {
width: 208%;
}
} }
@media (min-width: 350px) and (max-width: 380px) { @media (min-width: 350px) and (max-width: 380px) {
@ -168,3 +213,13 @@ header {
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
} }
} }
@media (min-width: 415px) and (max-width: 599px) {
.gallery-container {
grid-template-columns: repeat(auto-fill, minmax(94%, 1fr));
}
.gallery-container img {
width: 94%;
}
}

View File

@ -100,6 +100,19 @@
</div> </div>
</div> </div>
</div> </div>
<div class="gallery">
<div class="gallery-container">
<figure class="image01">
<img src="./assets/images/image-01.svg" alt="" />
</figure>
<figure class="image02">
<img src="./assets/images/image-02.svg" alt="" />
</figure>
<figure class="image03">
<img src="./assets/images/image-03.svg" alt="" />
</figure>
</div>
</div>
</main> </main>
</body> </body>
</html> </html>