Skip to content

Commit 8ed324c

Browse files
committed
google for the win???
1 parent 838bb54 commit 8ed324c

File tree

2 files changed

+61
-27
lines changed

2 files changed

+61
-27
lines changed

_includes/team-showcase.html

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<section class="hero is-halfheight has-text-left" id="team-showcase">
1+
<!-- <section class="hero is-halfheight has-text-left" id="team-showcase">
22
<figure class="hero-background" id="rotating-image" style="background-size: cover; background-position: center;">
33
<div class="overlay">
44
<div class="container is-centered">
@@ -10,8 +10,42 @@ <h1 class="title has-text-white-ter is-size-1 is-uppercase has-text-weight-bold"
1010
</div>
1111
</div>
1212
</figure>
13-
</section>
13+
</section> -->
1414

15+
<div id = "rotator1_div"></div>
16+
17+
<script>
18+
<!--
19+
var rotator1imgs = new Array("https://raw.githubusercontent.com/CabrilloRoboticsClub/cabrillorobotics.github.io/41309abdbb5d93dbc6c0119bf8f97a3bb38ad743/assets/images/seahawk-II/gallery-seahawk-II/interview.webp", "https://raw.githubusercontent.com/CabrilloRoboticsClub/cabrillorobotics.github.io/41309abdbb5d93dbc6c0119bf8f97a3bb38ad743/assets/images/seahawk-II/gallery-seahawk-II/stack.webp");
20+
var rotator1alt = new Array("qqjq", "liqjiq");
21+
var rotatorHtml = "";
22+
var endJs = "";
23+
24+
for(var img in rotator1imgs){
25+
var thisImg = new Image();
26+
thisImg.src = rotator1imgs[img];
27+
}
28+
var rotator1imgCt = 2;
29+
var rotator1currentAd = 0;
30+
var target = "";
31+
var rotator1banner = document.getElementById('rotator1');
32+
33+
function rotator1cycle() {
34+
var rotatorHtml = "";
35+
var endJs = "";
36+
if (rotator1currentAd == rotator1imgCt) {
37+
rotator1currentAd = 0;
38+
}
39+
40+
rotatorHtml += '<img src="' + rotator1imgs[rotator1currentAd] + '" alt = "' + rotator1alt[rotator1currentAd] + '" id="rotator1">' + endJs;
41+
document.getElementById("rotator1_div").innerHTML = rotatorHtml;
42+
rotator1currentAd++;
43+
window.setTimeout(rotator1cycle,5000);
44+
}
45+
rotator1cycle();
46+
// -->
47+
</script>
48+
<!--
1549
<script>
1650
document.addEventListener('DOMContentLoaded', function() {
1751
const images = [
@@ -35,4 +69,4 @@ <h1 class="title has-text-white-ter is-size-1 is-uppercase has-text-weight-bold"
3569
// Rotate the image every 5 seconds
3670
setInterval(rotateImage, 5000);
3771
});
38-
</script>
72+
</script> -->

assets/css/style.scss

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -448,31 +448,31 @@
448448
}
449449
}
450450

451-
#team-showcase {
452-
position: relative;
453-
height: 50vh;
454-
background: var(--black);
451+
// #team-showcase {
452+
// position: relative;
453+
// height: 50vh;
454+
// background: var(--black);
455455

456-
.hero-background {
457-
width: 100%;
458-
height: 100%;
459-
background-size: cover;
460-
background-position: center;
461-
position: relative;
462-
}
463-
.overlay {
464-
position: absolute;
465-
top: 0;
466-
left: 0;
467-
width: 100%;
468-
height: 100%;
469-
background-color: rgba(0, 0, 0, 0.7);
470-
display: flex;
471-
align-items: flex-end;
472-
justify-content: flex-start;
473-
padding: 2rem;
474-
}
475-
}
456+
// .hero-background {
457+
// width: 100%;
458+
// height: 100%;
459+
// background-size: cover;
460+
// background-position: center;
461+
// position: relative;
462+
// }
463+
// .overlay {
464+
// position: absolute;
465+
// top: 0;
466+
// left: 0;
467+
// width: 100%;
468+
// height: 100%;
469+
// background-color: rgba(0, 0, 0, 0.7);
470+
// display: flex;
471+
// align-items: flex-end;
472+
// justify-content: flex-start;
473+
// padding: 2rem;
474+
// }
475+
// }
476476

477477
#member {
478478
// this is for a shadow under the card, with the dark background it cant really be seen, consider making darker or removing

0 commit comments

Comments
 (0)