-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (31 loc) · 1.85 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
<!DOCTYPE html>
<html>
<head>
<title>Workout Wizard - Home</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
<link rel="stylesheet" href="css/index.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script>
</head>
<body class="bg-dark-subtle bg-gradient">
<span id="navbar-container"></span>
<script>
//get navbar and hide login and signup, or log out buttons depending on whether or not the user is currently logged in
fetch("/navbar.html")
.then(result => result.text())
.then(htmlContent => {
document.querySelector("#navbar-container").innerHTML = htmlContent;
document.querySelector(document.cookie.includes("email=") ? "#logged-out-btns" : "#logged-in-btn").classList.add("d-none");
});
</script>
<div class="container">
<div style="text-shadow:0.05em 0.05em 0.9em rgba(1, 1, 14, 0.537); " class="text-primary fw-bold display-3 text-center p-2">Workout Wizard</div>
<div class="text-black text-center fs-4 p-2">A workout tracker app where you can create workouts and execute them, while tracking your progress.</div>
<div class="text-center">
<a style="box-shadow: 0.1em 0.1em 5em rgba(61, 12, 12, 0.815);" class= "mt-2 btn btn-primary btn-lg" href="/login">GO!</a>
</div>
</div>
</div>
</body>
</html>