-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmedals.html
148 lines (114 loc) · 4.97 KB
/
medals.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<!-- Styles CSS -->
<link rel="stylesheet" href="./static/styles.css">
<!-- Plotly -->
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<title>Medals</title>
<link rel="shortcut icon" type="image/jpg" href="./static/olympic_favicon.png" />
</head>
<body>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark sticky-top" style="background-color: rgb(28, 37, 153);">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">
<img src="./static/olympic_logo.png" alt="" width="35">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="athletes.html">Athletes</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="medals.html">Medals</a>
</li>
<li class="nav-item">
<a class="nav-link" href="facts.html">Fun Facts</a>
</li>
</ul>
</div>
</div>
</nav>
<div>
<style>
/* Container holding the image and the text */
.container-pic {
position: relative;
text-align: center;
color: white;
text-shadow: 2px 2px rgb(158, 168, 175);
}
/* Centered text */
.centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
<div class="container-pic">
<div class="row">
<div class="col-md-12 jumbotron text-center">
<img src="./static/medal.png" alt="medal" width="150">
<h1 class="centered" style="font-size:4rem; color:black">Medals</h1>
</div>
</div>
</div>
</div>
<br><br>
<style>
h3 {
text-align: center;
/* font-family: 'Segoe UI', cursive; */
font-size: 3rem;
padding-bottom: 0.2em;
}
</style>
<h3 style="color:rgb(28, 37, 153);">The Results Are In!</h3>
<div class="row justify-content-center">
<div class="col-md-6 text-center">
<p style="text-align:center">Over 200 countries from around the world sent their best athletes to compete in the 2021 Tokyo Summer Olympics. Below is an interactive bar chart displaying the top 10 nations by total medals, sorted by number of gold medals. Feel free to interact with the chart to uncover more details in the data.</p>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md">
<div class="well">
<div id="Medal_Stacked"></div>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="./static/medal.js"></script>
</div>
</div>
</div>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<div class="container">
</div>
<!-- JavaScript: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ"
crossorigin="anonymous"></script>
</div>
<main class="flex-fill"></main>
<footer class="footer">
<div class="container-fluid opacity-50" style="background-color:rgb(0, 0, 0)">
<div style="color:rgb(255, 255, 255); text-align:center"><b>CREATED BY:</b> <a href="https://github.com/brbbrb" style="color:rgb(81, 166, 177)">Bradley Barker</a> • <a href="https://github.com/Connelito" style="color:rgb(253, 178, 96)">Darryl Connelly II</a> • <a href="https://github.com/uchenna23"style="color:rgb(114, 180, 139)">Uchenna Nwagbara</a> • <a href="https://github.com/Yingying-Li-Data"style="color:rgb(242, 97, 94)">Yingying Li</a></div>
</div>
</footer>
</body>
</html>