🐛 fix(home-banner): allow missing image & correct spacing (#123)
Also removes the necessity for $BASE_URL in specifying home banner images.main
parent
7d8ed20c24
commit
9c3e5d3990
@ -1,79 +1,75 @@
|
|||||||
#banner-container-home {
|
#banner-container-home {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
|
||||||
margin: 0.2rem auto;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
align-items: center;
|
||||||
|
margin: 0.2rem auto;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
.image-container-home {
|
@media only screen and (max-width: 600px) {
|
||||||
position: relative;
|
display: block;
|
||||||
width: 22%;
|
margin-bottom: 2rem;
|
||||||
overflow: hidden;
|
}
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#home-banner-text {
|
#home-banner-text {
|
||||||
width: 78%;
|
margin-bottom: 1.5rem;
|
||||||
margin-bottom: 30px;
|
color: var(--primary-color);
|
||||||
font-size: 1.875rem;
|
font-size: 1.875rem;
|
||||||
line-height: 3rem;
|
line-height: 3rem;
|
||||||
color: var(--primary-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.home-banner-header {
|
#home-banner-header {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
font-size: 2.8rem;
|
|
||||||
font-weight: 550;
|
font-weight: 550;
|
||||||
}
|
font-size: 2.8rem;
|
||||||
|
|
||||||
#banner-home-subtitle {
|
@media only screen and (max-width: 600px) {
|
||||||
width: 95%;
|
margin-bottom: 0;
|
||||||
padding-right: 5%;
|
font-size: 2.2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#banner-home-subtitle {
|
||||||
|
color: var(--text-color);
|
||||||
font-weight: 250;
|
font-weight: 250;
|
||||||
line-height: 1.75rem;
|
line-height: 1.75rem;
|
||||||
color: var(--text-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
#banner-home-subtitle p {
|
p {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#banner-home-subtitle a {
|
a {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.banner-home-img {
|
@media only screen and (max-width: 600px) {
|
||||||
aspect-ratio: 1 / 1;
|
|
||||||
max-width: 15rem;
|
|
||||||
max-height: 15rem;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 600px) {
|
|
||||||
#banner-container-home {
|
|
||||||
display: block;
|
|
||||||
margin: 0em auto;
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.home-banner-header {
|
|
||||||
font-size: 2.2rem;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner-home-img {
|
#image-container-home {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 2rem;
|
||||||
|
min-width: 11rem;
|
||||||
|
min-height: 11rem;
|
||||||
|
overflow: hidden;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
#banner-home-img {
|
||||||
|
border: none;
|
||||||
|
aspect-ratio: 1 / 1;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 15rem;
|
||||||
|
height: auto;
|
||||||
|
max-height: 15rem;
|
||||||
|
|
||||||
|
@media only screen and (max-width: 600px) {
|
||||||
max-width: 12rem;
|
max-width: 12rem;
|
||||||
max-height: 12rem;
|
max-height: 12rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-container-home {
|
|
||||||
width: 95%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#home-banner-text {
|
@media only screen and (max-width: 600px) {
|
||||||
width: 95%;
|
padding-left: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue