forked from M3-Academy/challenge-landing-page
Merge pull request 'feat: create main banner and responsive' (#3) from feature/main-banner into develop
Reviewed-on: #3
This commit is contained in:
commit
be5cfcdf41
@ -18,6 +18,14 @@
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/*-------------*\
|
||||
= MAIN BANNER =
|
||||
\*-------------*/
|
||||
.main-banner-image {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/*CUBE CSS styles*/
|
||||
|
||||
/*-------*\
|
||||
@ -25,4 +33,24 @@
|
||||
\*-------*/
|
||||
.bg-clr-black {
|
||||
background-color: var(--bg-clr-black);
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1024px) {
|
||||
.image-mobile {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.image-desktop {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
.image-mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.image-desktop {
|
||||
display: flex;
|
||||
}
|
||||
}
|
BIN
assets/images/main-banner-mobile.jpg
Normal file
BIN
assets/images/main-banner-mobile.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 230 KiB |
12
index.html
12
index.html
@ -29,6 +29,18 @@
|
||||
</header>
|
||||
|
||||
<!--=============== Main Banner ===============-->
|
||||
<figure class="main-banner">
|
||||
<img
|
||||
class="main-banner-image image-desktop"
|
||||
src="./assets/images/main-banner-desktop.jpg"
|
||||
alt="Um desktop aberto em um software de ambiente de desenvolvimento"
|
||||
/>
|
||||
<img
|
||||
class="main-banner-image image-mobile"
|
||||
src="./assets/images/main-banner-mobile.jpg"
|
||||
alt="Um desktop aberto em um software de ambiente de desenvolvimento"
|
||||
/>
|
||||
</figure>
|
||||
|
||||
<!--=============== Information ===============-->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user