-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshare-and-search.html
261 lines (257 loc) · 9.66 KB
/
share-and-search.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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html lang="en">
<head>
<title>Car Sharing Supreme</title>
<link rel="stylesheet" href="./css/share-and-search.css" />
<script src="./js/share-and-search.js"></script>
</head>
<body>
<!-- Navbar -->
<nav class="navbar">
<a class="navbar-brand" href="./">CSS</a>
<a href="./">Home</a>
<a class="active" href="./share-and-search.html">Share and Search</a>
<a href="./sign-in.html">Sign In</a>
<a href="./terms-and-conditions.html">Terms and Conditions</a>
</nav>
<!-- Navbar -->
<main class="search-container">
<h1>Search for trips</h1>
<div class="form-and-map-container">
<section class="form-results-container">
<!-- Start / end form -->
<section class="form">
<h2 style="margin-top: 0">Trip details</h2>
<form>
<!-- Origin input -->
<div class="floating-label">
<input
type="text"
id="origin"
class="input-field"
placeholder="Eindhoven"
required
/>
<label for="origin">Origin</label>
</div>
<!-- Destination input -->
<div class="floating-label">
<input
type="text"
id="destination"
class="input-field"
placeholder="Delft"
required
/>
<label for="destination">Destination</label>
</div>
<button type="submit" class="submit-btn">Search</button>
</form>
</section>
<!-- Start / end form -->
<!-- Result list -->
<section class="results">
<h2>Results</h2>
<div class="accordion">
<button onclick="myFunction('accordion1')">
<p>Klaas Pistolet (2km)</p>
<div></div>
</button>
<div id="accordion1" class="content hidden">
<p>
Klaas Pistolet is sharing his ride to
<span class="important destination">Den Haag</span>.
</p>
<p>
This user is leaving from
<a
href="https://www.google.com/maps/search/Schimmelt 50, 5611 ZX Eindhoven"
target="_blank"
rel="noopener noreferrer"
class="important origin ext-link"
>Schimmelt 50, 5611 ZX Eindhoven</a
>.
</p>
<p>
<span class="important capacity">2 out of 5</span> other
people are already joining him.
</p>
<p>
Departure:
<span class="important departure">10:00h 15 jan 2023</span>.
</p>
</div>
<button onclick="myFunction('accordion2')">
<p>John Pistol (5km)</p>
<div></div>
</button>
<div id="accordion2" class="content hidden">
<p>
John Pistol is sharing his ride to
<span class="important destination">Den Haag</span>.
</p>
<p>
This user is leaving from
<a
href="https://www.google.com/maps/search/Ouverture 228, 5629 PX Eindhoven"
target="_blank"
rel="noopener noreferrer"
class="important origin ext-link"
>Ouverture 228, 5629 PX Eindhoven</a
>.
</p>
<p>
<span class="important capacity">1 out of 2</span> other
people are already joining him.
</p>
<p>
Departure:
<span class="important departure">08:00h 15 jan 2023</span>.
</p>
</div>
<button onclick="myFunction('accordion3')">
<p>Klaas Pistolet (2km)</p>
<div></div>
</button>
<div id="accordion3" class="content hidden">
<p>
Klaas Pistolet is sharing his ride to
<span class="important destination">Den Haag</span>.
</p>
<p>
This user is leaving from
<a
href="https://www.google.com/maps/search/Schimmelt 50, 5611 ZX Eindhoven"
target="_blank"
rel="noopener noreferrer"
class="important origin ext-link"
>Schimmelt 50, 5611 ZX Eindhoven</a
>.
</p>
<p>
<span class="important capacity">2 out of 5</span> other
people are already joining him.
</p>
<p>
Departure:
<span class="important departure">10:00h 15 jan 2023</span>.
</p>
</div>
<button onclick="myFunction('accordion4')">
<p>John Pistol (5km)</p>
<div></div>
</button>
<div id="accordion4" class="content hidden">
<p>
John Pistol is sharing his ride to
<span class="important destination">Den Haag</span>.
</p>
<p>
This user is leaving from
<a
href="https://www.google.com/maps/search/Ouverture 228, 5629 PX Eindhoven"
target="_blank"
rel="noopener noreferrer"
class="important origin ext-link"
>Ouverture 228, 5629 PX Eindhoven</a
>.
</p>
<p>
<span class="important capacity">1 out of 2</span> other
people are already joining him.
</p>
<p>
Departure:
<span class="important departure">08:00h 15 jan 2023</span>.
</p>
</div>
<button onclick="myFunction('accordion5')">
<p>Klaas Pistolet (2km)</p>
<div></div>
</button>
<div id="accordion5" class="content hidden">
<p>
Klaas Pistolet is sharing his ride to
<span class="important destination">Den Haag</span>.
</p>
<p>
This user is leaving from
<a
href="https://www.google.com/maps/search/Schimmelt 50, 5611 ZX Eindhoven"
target="_blank"
rel="noopener noreferrer"
class="important origin ext-link"
>Schimmelt 50, 5611 ZX Eindhoven</a
>.
</p>
<p>
<span class="important capacity">2 out of 5</span> other
people are already joining him.
</p>
<p>
Departure:
<span class="important departure">10:00h 15 jan 2023</span>.
</p>
</div>
<button onclick="myFunction('accordion6')">
<p>John Pistol (5km)</p>
<div></div>
</button>
<div id="accordion6" class="content hidden">
<p>
John Pistol is sharing his ride to
<span class="important destination">Den Haag</span>.
</p>
<p>
This user is leaving from
<a
href="https://www.google.com/maps/search/Ouverture 228, 5629 PX Eindhoven"
target="_blank"
rel="noopener noreferrer"
class="important origin ext-link"
>Ouverture 228, 5629 PX Eindhoven</a
>.
</p>
<p>
<span class="important capacity">1 out of 2</span> other
people are already joining him.
</p>
<p>
Departure:
<span class="important departure">08:00h 15 jan 2023</span>.
</p>
</div>
</div>
</section>
<!-- Result list -->
</section>
<!-- Map -->
<section class="map-container">
<iframe
src="https://www.google.com/maps/embed?pb=!1m28!1m12!1m3!1d316398.8216594251!2d4.638412118410801!3d51.717197800651796!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m13!3e6!4m5!1s0x47c6d91b5579c39f%3A0xf39ad2648164b998!2sEindhoven!3m2!1d51.423142299999995!2d5.4622896999999995!4m5!1s0x47c5b5c3515f58fd%3A0x89b05ca3c54bd43d!2sDelft!3m2!1d52.011576899999994!2d4.3570677!5e0!3m2!1sen!2snl!4v1673349602483!5m2!1sen!2snl"
allowfullscreen=""
loading="lazy"
referrerpolicy="no-referrer-when-downgrade"
></iframe>
</section>
</div>
</main>
<!-- Footer -->
<footer>
<!-- Github -->
<div class="github">
<!-- Kasper -->
<a href="https://github.com/kaspervanm"></a>
<!-- Evan -->
<a href="https://github.com/evanpacini"></a>
</div>
<!-- Github -->
<!-- Copyright -->
<div class="copyright">
© 2022 Espersoft Inc. All rights reserved
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
</body>
</html>