-
Notifications
You must be signed in to change notification settings - Fork 9
/
trip.html
202 lines (202 loc) · 6.57 KB
/
trip.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Assistan+Display:wght@400;600&family=Playfair+Display:wght@400;600&display=swap"
/>
<link rel="stylesheet" href="./assets/css/style.css" />
<title>Travel app</title>
</head>
<body>
<header class="header">
<div class="header__inner">
<a data-test-id="header-logo" href="./index.html" class="header__logo">
Travel App
</a>
<nav data-test-id="header-nav" class="header__nav">
<ul class="nav-header__list">
<li class="nav-header__item" title="Bookings">
<a
data-test-id="header-bookings-link"
href="./bookings.html"
class="nav-header__inner"
>
<span class="visually-hidden">Bookings</span>
<img src="./assets/images/briefcase.svg" alt="bookings" />
</a>
</li>
<li class="nav-header__item" title="Profile">
<div
data-test-id="header-profile-nav"
class="nav-header__inner profile-nav"
tabindex="0"
>
<span class="visually-hidden">Profile</span>
<img src="./assets/images/user.svg" alt="profile" />
<ul
data-test-id="header-profile-nav-list"
class="profile-nav__list"
>
<li
data-test-id="header-profile-nav-username"
class="profile-nav__item"
>
John Doe
</li>
<li class="profile-nav__item">
<button
data-test-id="header-profile-nav-sign-out"
class="profile-nav__sign-out button"
>
Sign Out
</button>
</li>
</ul>
</div>
</li>
</ul>
</nav>
</div>
</header>
<main class="trip-page">
<h1 class="visually-hidden">Travel App</h1>
<div class="trip">
<img
data-test-id="trip-details-image"
src="./assets/images/iceland.jpg"
class="trip__img"
alt="trip photo"
/>
<div class="trip__content">
<div class="trip-info">
<h3 data-test-id="trip-details-title" class="trip-info__title">
Iceland
</h3>
<div class="trip-info__content">
<span
data-test-id="trip-details-duration"
class="trip-info__duration"
>
<strong>15</strong> days
</span>
<span data-test-id="trip-details-level" class="trip-info__level">
easy
</span>
</div>
</div>
<div
data-test-id="trip-details-description"
class="trip__description"
>
An island is a body of land surrounded by water. Continents are also
surrounded by water, but because they are so big, they are not
considered islands. Australia, the smallest continent, is more than
three times the size of Greenland, the largest island. There are
countless islands in the ocean, lakes, and rivers around the world.
They vary greatly in size, climate, and the kinds of organisms that
inhabit them.
</div>
<div class="trip-price">
<span>Price</span>
<strong
data-test-id="trip-details-price-value"
class="trip-price__value"
>
$7000
</strong>
</div>
<button
data-test-id="trip-details-button"
class="trip__button button"
>
Book a trip
</button>
</div>
</div>
</main>
<footer class="footer">
<span class="footer__text">
© 2024, from
<a class="footer__link" href="https://binary-studio.com">
binary studio
</a>
with
<img class="footer__icon" src="./assets/images/heart.svg" alt="heart" />
</span>
</footer>
<div hidden>
<div class="modal">
<div data-test-id="book-trip-popup" class="book-trip-popup">
<button
data-test-id="book-trip-popup-close"
class="book-trip-popup__close"
>
×
</button>
<form class="book-trip-popup__form" autocomplete="off">
<div class="trip-info">
<h3 data-test-id="book-trip-popup-title" class="trip-info__title">
Iceland
</h3>
<div class="trip-info__content">
<span
data-test-id="book-trip-popup-duration"
class="trip-info__duration"
>
<strong>15</strong> days
</span>
<span
data-test-id="book-trip-popup-level"
class="trip-info__level"
>
easy
</span>
</div>
</div>
<label class="input">
<span class="input__heading">Date</span>
<input
data-test-id="book-trip-popup-date"
name="date"
type="date"
required
/>
</label>
<label class="input">
<span class="input__heading">Number of guests</span>
<input
data-test-id="book-trip-popup-guests"
name="guests"
type="number"
min="1"
max="10"
value="1"
required
/>
</label>
<span class="book-trip-popup__total">
Total:
<output
data-test-id="book-trip-popup-total-value"
class="book-trip-popup__total-value"
>
$4000
</output>
</span>
<button
data-test-id="book-trip-popup-submit"
class="button"
type="submit"
>
Book a trip
</button>
</form>
</div>
</div>
</div>
</body>
</html>