File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ - https://raw.githubusercontent.com/CabrilloRoboticsClub/cabrillorobotics.github.io/41309abdbb5d93dbc6c0119bf8f97a3bb38ad743/assets/images/seahawk-II/gallery-seahawk-II/interview.webp
2
+ - https://raw.githubusercontent.com/CabrilloRoboticsClub/cabrillorobotics.github.io/41309abdbb5d93dbc6c0119bf8f97a3bb38ad743/assets/images/seahawk-II/gallery-seahawk-II/stack.webp
3
+ - https://github.com/CabrilloRoboticsClub/cabrillorobotics.github.io/blob/258a1699f10c378fb2a1d18c2a986080bf3b6a57/assets/images/seahawk-II/gallery-seahawk-II/deploy.jpeg?raw=true
4
+ - https://raw.githubusercontent.com/CabrilloRoboticsClub/cabrillorobotics.github.io/782b579c031c16835e0fee2b57a22246c1a79618/assets/images/seahawk-II/gallery-seahawk-II/product-demo-pilot-2.webp
Original file line number Diff line number Diff line change 1
1
< section class ="hero is-halfheight has-text-left " id ="team-showcase ">
2
- < figure class ="hero-background " style =" background -image: url('https://raw.githubusercontent.com/CabrilloRoboticsClub/cabrillorobotics.github.io/41309abdbb5d93dbc6c0119bf8f97a3bb38ad743/assets/images/seahawk-II/gallery-seahawk-II/interview.webp'); ">
2
+ < figure class ="hero-background " id =" rotating -image ">
3
3
< div class ="overlay ">
4
4
< div class ="container is-centered ">
5
5
< div class ="title-text ">
@@ -12,3 +12,26 @@ <h1 class="title has-text-white-ter is-size-1 is-uppercase has-text-weight-bold"
12
12
</ figure >
13
13
</ section >
14
14
15
+ < script >
16
+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
17
+ const images = [
18
+ { % for image in site . data . team - imgs % }
19
+ "{{ image.url }}" { % unless forloop . last % } , { % endunless % }
20
+ { % endfor % }
21
+ ] ;
22
+
23
+ let currentIndex = 0 ;
24
+ const imageElement = document . getElementById ( 'rotating-image' ) ;
25
+
26
+ function rotateImage ( ) {
27
+ imageElement . style . backgroundImage = `url(${ images [ currentIndex ] } )` ;
28
+ currentIndex = ( currentIndex + 1 ) % images . length ;
29
+ }
30
+
31
+ // Rotate the image every 5 seconds
32
+ setInterval ( rotateImage , 5000 ) ;
33
+
34
+ // Set the initial image
35
+ rotateImage ( ) ;
36
+ } ) ;
37
+ </ script >
Original file line number Diff line number Diff line change 11
11
12
12
< body >
13
13
{% include navbar.html %}
14
+ {% include team-showcase.html %}
14
15
< section class ="section has-text-centered has-background-black-bis " id ="team ">
15
16
< div class ="container ">
16
- {% include team-showcase.html %}
17
+
17
18
<!-- <h2 class="title has-text-left has-text-white-ter is-size-2 has-text-weight-bold mgb-medium">
18
19
Our Team
19
20
</h2> -->
You can’t perform that action at this time.
0 commit comments