-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
177 lines (176 loc) · 8.05 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 lang="en">
<head>
<title>Happy Here</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta property="og:title" content="Happy Here" />
<meta property="og:description" content="Helping you search for urban areas and their quality of life scores" />
<meta property="og:url" content="https://anthonyvngo.github.io/Happy-Here/" />
<meta property="og:image" content="https://imgur.com/a/j0OJr87" />
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap" rel="stylesheet">
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<script src="https://kit.fontawesome.com/011024de61.js" crossorigin="anonymous"></script>
</head>
<body>
<header>
<lottie-player id="sun" src="https://assets5.lottiefiles.com/packages/lf20_5i5k8eh3.json" background="transparent"
speed="1" style="width: 300px; height: 300px;" loop autoplay></lottie-player>
<div id="clouds-container">
<lottie-player id="clouds" src="https://assets6.lottiefiles.com/packages/lf20_yc2d0lo5.json"
background="transparent" speed="1" loop autoplay></lottie-player>
</div>
</header>
<main>
<div class="container position-relative">
<!-- Notification Container Start -->
<div class="notification-container hidden">
<p></p>
</div>
<!-- Notifcation Container End -->
<!-- Loading Modal Start -->
<div id="loading-modal" class="hidden">
<div class="lds-default">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<!-- Loading Modal End -->
<!-- Home Page -->
<div class="row justify-content-center align-content-center height-100vh-modded position-relative">
<div id="home-view" class="column-75 height-fit-content">
<h1>Happy Here</h1>
<h2>Search urban areas and see quality of life scores</h2>
<!-- Search Bar on Home Page -->
<form class="row">
<div class="column-full">
<div class="row justify-content-center position-relative">
<input id="search-bar" type="search" list="search-autofill" placeholder="Search city..." required>
<div class="search-bar-icon-container">
<button><i class="fa-solid fa-magnifying-glass search-magnifying"></i></button>
</div>
</div>
</div>
</form>
<div class="back-to-search-container">
<button class="desktop-skipped-btn">Skipped</button>
<button class="desktop-favorited-btn">Favorited</button>
</div>
</div>
<!-- Home Page End-->
<!-- Stats Page Start-->
<div id="city-stats-view" class="column-full height-fit-content hidden">
<h1 id="city-stats-view-city-name"></h1>
<p class="overall-score"></p>
<div class="row justify-content-center">
<div class="stats-column">
<ul id="city-stats-view-city-stats">
</ul>
<div class="row justify-content-center">
<button id="summary-button">City Summary</button>
</div>
</div>
<div id="summary" class="stats-column">
<p></p>
</div>
</div>
<div class="fav-skip-container">
<button class="skip-btn">
<i class="fa-solid fa-xmark"></i>
</button>
<button class="fav-btn">
<i class="fa-solid fa-heart"></i>
</button>
</div>
<div class="back-to-search-container">
<button class="desktop-skipped-btn">Skipped</button>
<button class="desktop-search-btn">Back To Search</button>
<button class="desktop-favorited-btn">Favorited</button>
</div>
</div>
<!-- Stats Page End-->
<!-- Saved List View Start-->
<div id="fav-and-skip-list-view" class="column-full height-fit-content hidden">
<h1 id="list-title"></h1>
<div class="row justify-content-center">
<div class="saved-list-column">
<ul id="fav-and-skip-list">
</ul>
</div>
</div>
<div class="back-to-search-container">
<button class="desktop-skipped-btn">Skipped</button>
<button class="desktop-search-btn">Back To Search</button>
<button class="desktop-favorited-btn">Favorited</button>
</div>
</div>
<!-- Saved List View End-->
<!-- Hills Start-->
<div class="hills-desktop">
<svg viewBox="0 0 375 95" fill="none" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M0 55.9058L15.3061 42.3732C31.8878 28.8406 62.5 1.77543 94.3878 0.271808C125 -2.73544 156.888 19.8189 187.5 37.8624C219.388 55.9058 250 67.9348 281.888 61.9203C312.5 55.9058 344.388 28.8406 359.694 15.308L375 1.77543V95H359.694C344.388 95 312.5 95 281.888 95C250 95 219.388 95 187.5 95C156.888 95 125 95 94.3878 95C62.5 95 31.8878 95 15.3061 95H0V55.9058Z"
fill="#93E4A5" />
<path fill-rule="evenodd" clip-rule="evenodd"
d="M375 77L354.592 67C332.908 57 292.092 36 250 33C207.908 30 167.092 45 125 47C82.9082 48 42.0918 36 20.4082 30L3.57628e-06 25V95H20.4082C42.0918 95 82.9082 95 125 95C167.092 95 207.908 95 250 95C292.092 95 332.908 95 354.592 95H375V77Z"
fill="#E9FFA9" />
</svg>
</div>
<!-- Hills End-->
</div>
<!-- Summary & Invalid Response Modal Start -->
<div class="modal-container hidden">
<div class="modal">
<p></p>
<div class="row justify-content-center">
<i class="fa-solid fa-xmark modal-xmark"></i>
</div>
</div>
</div>
<!-- Summary & Invalid Response Modal End -->
</div>
<!-- Mobile Nav Section Start-->
<div class="row mobile-nav-container position-absolute bottom-0 width-100vw">
<div class="column-full">
<div class="row mobile-list-container height-50">
<button class="column-50 mobile-skipped-btn">Skipped</button>
<button class="column-50 mobile-favorited-btn">Favorited</button>
</div>
<div class="row mobile-btn-container height-50">
<button class="column-thirds mobile-skip-btn">
<i class="fa-solid fa-xmark"></i>
</button>
<button class="column-thirds mobile-search-btn">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
<button class="column-thirds mobile-fav-btn">
<i class="fa-solid fa-heart"></i>
</button>
</div>
</div>
</div>
<!-- Mobile Nav Section End-->
</main>
<script src="js/data.js"></script>
<script src="js/main.js"></script>
</body>
</html>