Skip to content

Commit 875148b

Browse files
committed
Fix carousel
1 parent 6a5653f commit 875148b

File tree

5 files changed

+31
-15
lines changed

5 files changed

+31
-15
lines changed

.DS_Store

2 KB
Binary file not shown.

_includes/.DS_Store

6 KB
Binary file not shown.

_includes/footer/custom.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- Swiper JS -->
2+
<script src="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.js"></script>
3+
<script>
4+
const swiper = new Swiper('.swiper', {
5+
loop: true,
6+
pagination: {
7+
el: '.swiper-pagination',
8+
},
9+
navigation: {
10+
nextEl: '.swiper-button-next',
11+
prevEl: '.swiper-button-prev',
12+
},
13+
});
14+
</script>
15+

_includes/head/custom.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!-- Swiper CSS -->
2+
<link
3+
rel="stylesheet"
4+
href="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.css"
5+
/>

_tabs/teaching.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,36 +32,32 @@ My approach to teaching emphasizes curiosity, real-world relevance, and active e
3232

3333
### Student Reviews
3434

35-
<div class="testimonial-carousel">
36-
<input type="radio" name="review" id="rev1" checked>
37-
<input type="radio" name="review" id="rev2">
38-
<input type="radio" name="review" id="rev3">
39-
40-
<div class="testimonials">
41-
<div class="review" id="review1">
35+
<div class="swiper">
36+
<div class="swiper-wrapper">
37+
<div class="swiper-slide">
4238
<blockquote>
4339
“Brianna explained complex topics so clearly. Her passion for seismology made the class way more engaging!”
4440
<footer>– GEOL 240 Student, Fall 2024</footer>
4541
</blockquote>
4642
</div>
47-
<div class="review" id="review2">
43+
<div class="swiper-slide">
4844
<blockquote>
4945
“Easily one of the most supportive TAs I’ve had — she really cared whether we understood the material.”
5046
<footer>– Student Evaluation</footer>
5147
</blockquote>
5248
</div>
53-
<div class="review" id="review3">
49+
<div class="swiper-slide">
5450
<blockquote>
5551
“Great at answering questions and super approachable. 10/10 would recommend.”
5652
<footer>– Anonymous Feedback</footer>
5753
</blockquote>
5854
</div>
5955
</div>
6056

61-
<div class="carousel-nav">
62-
<label for="rev1"></label>
63-
<label for="rev2"></label>
64-
<label for="rev3"></label>
65-
</div>
66-
</div>
57+
<!-- If you want navigation arrows -->
58+
<div class="swiper-button-next"></div>
59+
<div class="swiper-button-prev"></div>
6760

61+
<!-- Pagination dots -->
62+
<div class="swiper-pagination"></div>
63+
</div>

0 commit comments

Comments
 (0)