Skip to content

Commit 678dbd5

Browse files
committed
sponsor carousel fix for mobile
1 parent 969257c commit 678dbd5

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed
59.6 KB
Loading

css/index.css

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,35 @@ body {
218218
background-color: #090909;
219219
border-radius: 25px;
220220
margin-left: 100px; margin-right: 100px;
221+
222+
}
223+
224+
.onmobile {
225+
display: none !important;
221226
}
227+
@media screen and (max-width:770px) {
222228
.carousel {
223-
height: 30%;
229+
height: 700px;
224230
background-image: linear-gradient(180deg, black, #00000000);
225231
}
226232
.carousel-inner {
227-
height: 30%;
233+
height: 700px;
234+
}
235+
.carousel-item { img {
236+
height: 700px;
237+
width: 100%;
238+
}}
239+
.carousel-item source {
240+
height: 700px;
241+
}
242+
.nonmobile {
243+
display: none !important;
244+
}
245+
.onmobile {
246+
display: block !important;
247+
background-color: #24263b;
248+
}
228249
}
229-
230250
.crevomark {
231251
width: 35%;
232252
margin-left: 50%; margin-right: 50%;

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@
6666
<div class="carousel-item">
6767
<img src="assets/img/Carousel/TeamPic2.jpg" style="object-fit: cover" class="d-block w-100 indexcar" alt="Crev Team Image" loading="lazy">
6868
</div>
69-
<div class="carousel-item nonmobile">
69+
<div class="carousel-item">
7070
<img src="assets/img/Carousel/sponsors.png" style="object-fit: cover" class="d-block w-100 indexcar nonmobile" alt="Crev Team Image" loading="lazy">
71+
<img src="assets/img/Carousel/sponsorsmobile.png" style="object-fit: scale-down" class="d-block w-100 indexcar onmobile" alt="Crev Team Image" loading="lazy">
7172
</div>
7273
</div>
7374
<img class="crevomark position-absolute bottom-0 translate-middle" src="assets/img/Crevomark.svg">

0 commit comments

Comments
 (0)