🐛 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 {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin: 0.2rem auto;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
align-items: center;
|
||||
margin: 0.2rem auto;
|
||||
width: 100%;
|
||||
|
||||
.image-container-home {
|
||||
position: relative;
|
||||
width: 22%;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
}
|
||||
@media only screen and (max-width: 600px) {
|
||||
display: block;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
#home-banner-text {
|
||||
width: 78%;
|
||||
margin-bottom: 30px;
|
||||
font-size: 1.875rem;
|
||||
line-height: 3rem;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
#home-banner-text {
|
||||
margin-bottom: 1.5rem;
|
||||
color: var(--primary-color);
|
||||
font-size: 1.875rem;
|
||||
line-height: 3rem;
|
||||
|
||||
.home-banner-header {
|
||||
margin-bottom: 1rem;
|
||||
font-size: 2.8rem;
|
||||
font-weight: 550;
|
||||
}
|
||||
#home-banner-header {
|
||||
margin-bottom: 1rem;
|
||||
font-weight: 550;
|
||||
font-size: 2.8rem;
|
||||
|
||||
#banner-home-subtitle {
|
||||
width: 95%;
|
||||
padding-right: 5%;
|
||||
font-weight: 250;
|
||||
line-height: 1.75rem;
|
||||
color: var(--text-color);
|
||||
}
|
||||
@media only screen and (max-width: 600px) {
|
||||
margin-bottom: 0;
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
#banner-home-subtitle p {
|
||||
font-size: 1rem;
|
||||
}
|
||||
#banner-home-subtitle {
|
||||
color: var(--text-color);
|
||||
font-weight: 250;
|
||||
line-height: 1.75rem;
|
||||
|
||||
#banner-home-subtitle a {
|
||||
font-weight: 400;
|
||||
}
|
||||
p {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.banner-home-img {
|
||||
aspect-ratio: 1 / 1;
|
||||
max-width: 15rem;
|
||||
max-height: 15rem;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border: none;
|
||||
}
|
||||
a {
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
#banner-container-home {
|
||||
display: block;
|
||||
margin: 0em auto;
|
||||
margin-bottom: 2rem;
|
||||
@media only screen and (max-width: 600px) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.home-banner-header {
|
||||
font-size: 2.2rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
#image-container-home {
|
||||
position: relative;
|
||||
padding-left: 2rem;
|
||||
min-width: 11rem;
|
||||
min-height: 11rem;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
|
||||
.banner-home-img {
|
||||
max-width: 12rem;
|
||||
max-height: 12rem;
|
||||
}
|
||||
#banner-home-img {
|
||||
border: none;
|
||||
aspect-ratio: 1 / 1;
|
||||
width: 100%;
|
||||
max-width: 15rem;
|
||||
height: auto;
|
||||
max-height: 15rem;
|
||||
|
||||
.image-container-home {
|
||||
width: 95%;
|
||||
}
|
||||
@media only screen and (max-width: 600px) {
|
||||
max-width: 12rem;
|
||||
max-height: 12rem;
|
||||
}
|
||||
}
|
||||
|
||||
#home-banner-text {
|
||||
width: 95%;
|
||||
@media only screen and (max-width: 600px) {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue