-
Notifications
You must be signed in to change notification settings - Fork 0
/
index copy.html
218 lines (197 loc) · 8.88 KB
/
index copy.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Destinations</title>
<link rel="stylesheet" href="static/css/style.css">
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/8.1.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.2/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.2/firebase-firestore.js"></script>
<!-- Modules -->
<script src="./node_modules/jquery/dist/jquery.js"></script>
<script src="./node_modules/handlebars/dist/handlebars.js"></script>
<script src="./node_modules/sammy/lib/sammy.js"></script>
<script src="./node_modules/sammy/lib/plugins/sammy.handlebars.js"></script>
<!-- Scripts -->
<script src="./scripts/config.js"></script>
<script src="./scripts/services.js"></script>
<script src="./scripts/app.js" type="module"></script>
</head>
<body>
<!-- Notifications -->
<div>
<div class="notification loadingBox">
Loading …
</div>
<div class="notification infoBox">
Info
</div>
<div class="notification errorBox">
Error: destination name can't be empty!
</div>
</div>
<div id="container">
<!-- Header -->
<nav>
<div class="left-container">
<ul>
<li><a href="">Home</a></li>
<li><a href="">Destinations</a></li>
<li><a href="">Add +</a></li>
<li><a href="">Login</a></li>
<li><a href="">Register</a></li>
</ul>
</div>
<div class="right-container">
<span>Welcome, {name} |</span>
<a href="" class="log-out">Logout</a>
</div>
</nav>
<!-- Register -->
<section id="viewRegister">
<h2>Create your account:</h2>
<form id="formRegister">
<label for="email">Email:</label>
<input type="text" id="email" name="email" placeholder="Email">
<label for="password">Password:</label>
<input type="password" id="password" name="password" placeholder="Password">
<label for="rePassword">Repeat Password:</label>
<input type="password" id="rePassword" name="rePassword" placeholder="Repeat Password">
<input type="submit" class="register" value="Register">
</form>
</section>
<!-- Login -->
<section id="viewLogin">
<h2>Login to your account:</h2>
<form id="formLogin">
<label for="email">Email:</label>
<input type="text" id="email" name="email" placeholder="Enter your Email">
<label for="password">Password:</label>
<input type="password" id="password" name="password" placeholder="Enter your Password">
<input type="submit" class="login" value="Login">
</form>
</section>
<!-- Home -->
<section id="viewCatalog" class="background-img">
<div class="added-destinations">
<a href="" class="added-destination">
<img src="https://image.freepik.com/free-vector/showplace-illustration-with-all-famous-buildings-linear-banner_1416-984.jpg"
alt="" class="picture-added-destination">
<h3>Berlin</h3>
<span>to Berlin </span><span>2020-12-22</span>
</a>
<a href="" class="added-destination">
<img src="https://image.freepik.com/free-photo/buildings-tall-tower_181624-20757.jpg" alt=""
class="picture-added-destination">
<h3>Canada</h3>
<span>to Toronto </span><span>2021-09-02</span>
</a>
<a href="" class="added-destination">
<img src="https://image.freepik.com/free-photo/walking-hooker-valley-track-with-view-mount-cook-new-zealand_181624-17124.jpg"
alt="" class="picture-added-destination">
<h3>New Zealand</h3>
<span>to Auckland </span><span>2021-11-15</span>
</a>
</div>
<div class="guest">
No destinations possible! Please sign in...
</div>
</section>
<!-- Create -->
<section id="viewAdddestination">
<h2>Add new destination</h2>
<form id="formAdddestination">
<label for="destination">Destination name:</label>
<input type="text" id="destination" name="destination" placeholder="Destination name">
<label for="city">City:</label>
<input type="text" id="city" name="city" placeholder="City">
<label for="duration">Duration:</label>
<input type="number" id="duration" name="duration" placeholder="Duration">
<label for="departureDate">Departure Date:</label>
<input type="date" id="departureDate" name="departureDate">
<label for="imgUrl">Image:</label>
<input type="text" id="imgUrl" name="imgUrl" placeholder="https://">
<input type="submit" class="create" value="Add">
</form>
</section>
<!-- Details -->
<section id="viewdestinationDetails">
<div class="destination-area">
<div class="destination-area-left">
<img src="https://image.freepik.com/free-photo/walking-hooker-valley-track-with-view-mount-cook-new-zealand_181624-17124.jpg"
alt="">
</div>
<div class="destination-area-right">
<h3>New Zealand</h3>
<div>to Auckland</div>
<div class="data-and-time">
15 November 2021
<a href="" class="edit-destination-detail"></a>
</div>
<div>
15 days
</div>
</div>
</div>
</section>
<!-- Edit -->
<section id="viewEditdestination">
<h2>Edit existing destination</h2>
<form id="formAdddestination">
<label for="destination">Destination name:</label>
<input type="text" id="destination" name="destination" value="New Zealand">
<label for="city">City:</label>
<input type="text" id="city" name="city" value="Auckland">
<label for="duration">Duration:</label>
<input type="number" id="duration" name="duration" value="15">
<label for="departureDate">Departure Date:</label>
<input type="date" id="departureDate" name="departureDate" value="2021-11-15">
<label for="imgUrl">Image:</label>
<input type="text" id="imgUrl" name="imgUrl"
value="https://image.freepik.com/free-photo/walking-hooker-valley-track-with-view-mount-cook-new-zealand_181624-17124.jpg">
<input type="submit" class="create" value="Edit">
</form>
</section>
<!-- Details Dashboard -->
<section id="viewMydestinations">
<h3>Your destinations</h3>
<div class="destination-ticket">
<div class="destination-left">
<img src="https://image.freepik.com/free-photo/walking-hooker-valley-track-with-view-mount-cook-new-zealand_181624-17124.jpg"
alt="">
</div>
<div class="destination-right">
<div>
<h3>New Zealand</h3><span>2020-11-15</span>
</div>
<div>
to Auckland
</div>
<p>15 days </p>
<a href="" class="remove">REMOVE</a>
<a href="" class="details">Details</a>
</div>
</div>
<div class="destination-ticket">
<div class="destination-left">
<img src="https://image.freepik.com/free-photo/buildings-tall-tower_181624-20757.jpg" alt="">
</div>
<div class="destination-right">
<div>
<h3>Canada</h3><span>2021-09-02</span>
</div>
<div>
to Toronto
</div>
<p>13 days </p>
<a href="" class="remove">REMOVE</a>
<a href="" class="details">Details</a>
</div>
</div>
</section>
<!-- Footer -->
<footer>@SoftUni Destinations 2020</footer>
</div>
</body>
</html>