-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
177 lines (162 loc) · 9.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<title>Dungeon Draft v0.1</title>
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<!-- Page Title -->
<a class="navbar-brand active" href="#home" id="home-button">Dungeon Draft</a>
<!-- Hamburger menu on small screens -->
<button class="navbar-toggler ms-auto" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbarNavAltMarkup" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Navbar -->
<div class="collapse navbar-collapse" id="navbar">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#dungeon" id="dungeon-button" data-bs-toggle="modal" data-bs-target="#loginModal">My Dungeon</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#adventurers" id="adventurers-button">Adventurer Draft</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#traps" id="traps-button">Trap Draft</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#monsters" id="monsters-button">Monster Draft</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#bosses" id="bosses-button">Boss Draft</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#results" id="results-button">Past Results</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#rules" id="rules-button">Rules</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Login modal -->
<div class="modal fade bg-dark bg-gradient" id="loginModal" tabindex="-1" data-bs-backdrop="static">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content bg-dark text-light">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Please enter your name below</h5>
</div>
<div class="modal-body">
<input class="w-100" type="text" id="login-name" name="login-name">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-bs-dismiss="modal" id="submitLoginModal">Submit</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" id="closeLoginModal">Close</button>
</div>
</div>
</div>
</div>
<!-- Pages -->
<div class="d-flex h-100 text-center text-bg-light text-light bg-dark">
<!-- Home page -->
<div class="cover-container d-flex justify-content-center w-100 h-90 p-3 mx-auto flex-column active-view page" id="home">
<div class="container d-flex flex-row w-100 justify-content-center">
<main class="container px-3" id="home-text">
<h1 id="home-heading">Welcome to Dungeon Draft!</h1>
<p class="lead">Your destination for competitive D&D 5e dungeon building! You can jump right in or check out the rules below!</p>
<p class="lead">
<a href="#dungeon" class="btn btn-lg btn-secondary fw-bold border-white bg-dark" id="get-started-btn" data-bs-toggle="modal" data-bs-target="#loginModal">Get started</a>
<a href="#rules" class="btn btn-lg btn-secondary fw-bold border-white bg-dark" id="rules-btn">Rules Page</a>
</p>
</main>
</div>
</div>
<!-- My Dungeon page -->
<div class="container hidden page" id="dungeon">
<h1>My Dungeon</h1>
<div class="card" id="dungeon-entrance-card">
<img class="card-img-top" src="assets/dungeon_entrance_bg.jpg" alt="Entrance">
<div class="card-img-overlay text-light d-flex justify-content-center flex-column">
<h5 class="card-title">Entrance</h5>
<p class="card-text" id="dungeon-entrance-trap">Trap name here</p>
<p>
<a href="#traps" class="card-link btn btn-sm btn-secondary fw-bold border-white bg-dark disabled">See details</a>
<a href="#traps" class="card-link btn btn-sm btn-secondary fw-bold border-white bg-dark">Trap draft</a>
</p>
</div>
</div>
<div class="card" id="dungeon-floor1-card">
<img class="card-img-top" src="assets/home_dungeon_bg.jpg" alt="Floor 1">
<div class="card-img-overlay text-light d-flex justify-content-center flex-column">
<h5 class="card-title">Floor 1</h5>
<p class="card-text" id="dungeon-floor1-monster">Monster name here</p>
<p>
<a href="#monsters" class="card-link btn btn-sm btn-secondary fw-bold border-white bg-dark">See details</a>
<a href="#monsters" class="card-link btn btn-sm btn-secondary fw-bold border-white bg-dark">Monster draft</a>
</p>
</div>
</div>
<div class="card" id="dungeon-floor2-card">
<img class="card-img-top" src="assets/home_dungeon_bg.jpg" alt="Floor 2">
<div class="card-img-overlay text-light d-flex justify-content-center flex-column">
<h5 class="card-title">Floor 2</h5>
<p class="card-text" id="dungeon-floor2-monster">Monster name here</p>
<p>
<a href="#monsters" class="card-link btn btn-sm btn-secondary fw-bold border-white bg-dark">See details</a>
<a href="#monsters" class="card-link btn btn-sm btn-secondary fw-bold border-white bg-dark">Monster draft</a>
</p>
</div>
</div>
<div class="card" id="dungeon-boss-card">
<img class="card-img-top" src="assets/dungeon_boss_bg.jpg" alt="Boss">
<div class="card-img-overlay text-light d-flex justify-content-center flex-column">
<h5 class="card-title">Boss Floor</h5>
<p class="card-text" id="dungeon-boss-boss">Monster name here</p>
<p>
<a href="#boss" class="card-link btn btn-sm btn-secondary fw-bold border-white bg-dark">See details</a>
<a href="#boss" class="card-link btn btn-sm btn-secondary fw-bold border-white bg-dark">Boss draft</a>
</p>
</div>
</div>
<footer class="container" id="dungeon-image-credit">
<a href="https://www.freepik.com/author/upklyak">Images by upklyak</a> on Freepik
</footer>
</div>
<!-- Adventurers page -->
<div class="container hidden page" id="adventurers">
<h1>Adventurers Page</h1>
</div>
<!-- Trap page -->
<div class="container hidden page" id="traps">
<h1>Trap Page</h1>
</div>
<!-- Monster page -->
<div class="container hidden page" id="monsters">
<h1>Monster Page</h1>
</div>
<!-- Boss page -->
<div class="container hidden page" id="bosses">
<h1>Boss Page</h1>
</div>
<!-- Results page -->
<div class="container hidden page" id="results">
<h1>Results Page</h1>
</div>
<!-- Rules page -->
<div class="container hidden page" id="rules">
<h1>Rules Page</h1>
</div>
</div>
<!-- Functionality -->
<script src="main.js"></script>
<!-- Bootstrap -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>
</html>