-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
131 lines (117 loc) · 5.19 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<title>Dragonfly Martial Arts and Fitness</title>
<link rel="stylesheet" href="dragonfly.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://unpkg.com/[email protected]/dist/react.js"></script>
<script src="https://unpkg.com/[email protected]/dist/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js"></script>
<script type="text/babel" src="dragonfly.jsx"></script>
</head>
<body>
<header>
<div class="logo">
<img src="https://rebrand.ly/b72ojnm" alt="Dragonfly Martial Arts and Fitness">
</div>
<h1>DRAGONFLY MARTIAL ARTS AND FITNESS</h1>
<nav>
<ul>
<li><a href="about.html"><button data-text="Awesome" class="button">
<span class="actual-text"> About </span>
<span class="hover-text" aria-hidden="true"> About </span>
</button></a></li>
<li><a href="ajarn.html"><button data-text="Awesome" class="button">
<span class="actual-text"> Ajarn </span>
<span class="hover-text" aria-hidden="true"> Ajarn </span>
</button></a></li>
<li><a href="schedule.html"><button data-text="Awesome" class="button">
<span class="actual-text"> Schedule </span>
<span class="hover-text" aria-hidden="true"> Schedule </span>
</button></a></li>
<li><a href="contact.html"><button data-text="Awesome" class="button">
<span class="actual-text"> Contact </span>
<span class="hover-text" aria-hidden="true"> Contact </span>
</button></a></li>
</ul>
</nav>
</header>
<div class="splash">
<h1 class="splash-header">WELCOME TO <br>
DRAGONFLY MARTIAL <br>
ARTS AND FITNESS</h1>
<img src="https://rebrand.ly/b72ojnm" alt="Dragonfly Martial Arts and Fitness logo">
<h4 class="splash-info">Click anywhere to continue</h4>
</div>
<section class="hero">
<h2 class="w3-center">TRAINING AT DRAGONFLY</h2>
<div class="hero img" style="max-width:500px">
<img class="mySlides w3-animate-fading" src="https://rebrand.ly/bkngw9v/" alt="dragonfly training" style="width:60%">
<img class="mySlides w3-animate-fading" src="https://rebrand.ly/jrrg29w" alt="dragonfly training" style="width:60%">
<img class="mySlides w3-animate-fading" src="https://rebrand.ly/8xt03qh" alt="dragonfly training" style="width:60%">
<img class="mySlides w3-animate-fading" src="https://rebrand.ly/8z6fvkn" alt="dragonfly class" style="width:60%">
<img class="mySlides w3-animate-fading" src="https://rebrand.ly/bx40a3i" alt="dragonfly training" style="width:60%">
<img class="mySlides w3-animate-fading" src="https://rebrand.ly/itrug8c" alt="dragonfly class" style="width:60%">
<img class="mySlides w3-animate-fading" src="https://rebrand.ly/c3qhsxl" alt="dragonfly class" style="width:60%">
</div>
<script>
var myIndex = 0;
carousel();
function carousel() {
var i;
var x = document.getElementsByClassName("mySlides");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
myIndex++;
if (myIndex > x.length) {myIndex = 1}
x[myIndex-1].style.display = "block";
setTimeout(carousel, 3000); // Change image every 2 seconds
}
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var splashScreen = document.querySelector('.splash');
var header = document.querySelector('header');
var nav = document.querySelector('nav');
if (window.innerWidth < 768) {
header.classList.add('small-screen');
nav.classList.add('small-screen');
} else {
header.classList.remove('small-screen');
nav.classList.remove('small-screen');
}
var hasShownSplashScreen = sessionStorage.getItem('hasShownSplashScreen');
if (hasShownSplashScreen) {
splashScreen.classList.add('hidden');
} else {
splashScreen.addEventListener('click', function() {
hideSplashScreen();
});
}
function hideSplashScreen() {
splashScreen.style.opacity = 0;
setTimeout(function() {
splashScreen.classList.add('hidden');
sessionStorage.setItem('hasShownSplashScreen', true);
}, 610);
}
var homeButton = document.querySelector('a[href="index.html"]');
homeButton.addEventListener('click', function(event) {
event.preventDefault(); // Prevent the default navigation behavior
hideSplashScreen();
setTimeout(function() {
window.location.href = 'index.html'; // Navigate to the home page
}, 610);
});
});
</script>
</section>
</body>
<footer>
<p> © 2023 The Sabucco Syndicate</p>
</footer>
</body>
</html>