-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
299 lines (266 loc) · 9.08 KB
/
index.html
File metadata and controls
299 lines (266 loc) · 9.08 KB
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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<!DOCTYPE html>
<html>
<title>
Проєкт
</title>
<body>
<style>
/* Стилізація хедера */
header {
background-color: #f7f6f4;
padding: 10px 0;
border-bottom: 4px solid #076cac;
width: 100%;
box-sizing: border-box;
display: flex; /* Додаємо Flexbox */
align-items: center; /* Вертикальне вирівнювання */
justify-content: space-between; /* Розподіл простору між елементами */
}
/* Логотип */
.logo {
width: 100px;
}
/* Навігаційне меню */
nav ul {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
align-items: center;
}
nav ul li {
margin-right: 25px;
}
nav ul li a {
font-family: Arial, sans-serif;
font-size: 16px;
font-weight: bold;
color: #000000;
text-decoration: none;
}
nav ul li a:hover {
text-decoration: underline;
}
/* Стилізація кнопки входу */
.login-button {
padding: 10px 20px;
background-color: #076cac;
border: none;
border-radius: 5px;
color: white;
font-size: 16px;
font-weight: bold;
cursor: pointer;
margin-right: 70px; /* Зміна на margin-left */
}
.login-button:hover {
background-color: #054771;
}
/* Стилі для кнопки меню */
.menu-button {
display: none; /* Приховуємо кнопку за замовчуванням */
background-color: #076cac;
color: white;
padding: 10px 20px;
font-size: 16px;
font-weight: bold;
border: none;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
margin-left: 70px;
}
/* Випадаюче меню */
.down-content {
opacity: 0;
visibility: hidden;
position: absolute;
background-color: #DCDCDC;
min-width: 155px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
border-radius: 8px;
z-index: 1;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.down-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
border-bottom: 1px solid #ccc;
transition: background-color 0.2s ease;
}
.down-content a:hover {
background-color:#A9A9A9;
}
.down:hover .down-content {
opacity: 1;
visibility: visible;
}
.down:hover .menu-button {
background-color: #054771;
}
/* Контейнер для основного контенту */
.content-container {
width: 100%;
max-width: 1400px;
margin: 20px auto;
padding: 0 20px;
box-sizing: border-box;
}
/* Грід-контейнер для карток */
.product-grid {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3 картки в ряд */
gap: 20px;
}
/* Стилізація картки продукту */
.product-card {
border: 1px solid #ccc;
padding: 20px;
border-radius: 10px;
background-color: #fff;
text-align: center;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* Зображення в картці */
.product-card img {
width: 100%;
height: 200px; /* Фіксована висота зображення */
object-fit: cover; /* Збереження пропорцій */
border-radius: 10px;
margin-bottom: 15px;
}
/* Заголовок картки */
.product-card h3 {
font-family: 'Arial', sans-serif;
font-size: 24px;
font-weight: bold;
color: #333;
display: flex;
align-items: center;
justify-content: center;
min-height: 10px;
}
/* Опис картки */
.product-card p {
font-family: 'Arial', sans-serif;
font-size: 16px;
color: #555;
line-height: 1.6;
min-height: 60px;
display: flex;
align-items: center;
justify-content: center;
}
/* Ціна продукту */
.product-card .price {
font-size: 20px;
font-weight: bold;
color: #076cac;
margin-bottom: 10px;
}
/* Кнопка купівлі */
.buy-button {
padding: 10px 20px;
background-color: #076cac;
border: none;
border-radius: 5px;
color: white;
font-size: 16px;
font-weight: bold;
cursor: pointer;
}
.buy-button:hover {
background-color: #054771;
}
/* Медіа-запит для пристроїв шириною менше 960px */
@media (max-width: 960px) {
.product-grid {
grid-template-columns: 1fr 1fr; /* 2 картки в ряд */
}
}
/* Медіа-запит для пристроїв шириною менше 768px */
@media (max-width: 768px) {
nav ul {
display: none;
}
.product-grid {
grid-template-columns: 1fr; /* 1 картка в ряд */
}
.menu-button {
display: inline-block; /* Відображаємо кнопку меню на мобільних пристроях */
}
}
</style>
</head>
<body>
<header>
<img src="icon.jpg" alt="Логотип" class="logo" style="height: 70px;">
<nav>
<ul>
<li><a href="#home">Головна</a></li>
<li><a href="#about">Про нас</a></li>
<li><a href="#contact">Контакти</a></li>
<li><a href="#questions">Запитання</a></li>
</ul>
</nav>
<div class="down">
<button class="menu-button">Меню</button>
<div class="down-content">
<a href="#home">Головна</a>
<a href="#about">Про нас</a>
<a href="#contact">Контакти</a>
<a href="#questions">Запитання</a>
</div>
</div>
<button class="login-button">Увійти</button>
</header>
<main class="content-container">
<section id="hotels" class="product-grid">
<article class="product-card">
<img src="hotel.jpg" alt="Hotel Image">
<h3>Boutique Hotel Portofino</h3>
<p>
Бутік-готель Portofino розташований на узбережжі Чорного моря.
До послуг гостей басейн, приватний пляж і ресторан.
</p>
<p class="price">$299.99</p>
<button class="buy-button">Купити</button>
</article>
<article class="product-card">
<img src="hotel2.jpg" alt="Hotel Image">
<h3>Luxury Resort Villa</h3>
<p>
Готель на віллі з басейном і видом на море.
Ідеальний для відпочинку сімей та пар.
</p>
<p class="price">$399.99</p>
<button class="buy-button">Купити</button>
</article>
<article class="product-card">
<img src="hotel3.jpg" alt="Hotel Image">
<h3>Seaside Paradise</h3>
<p>
Готель на першій лінії моря з сучасними номерами
та багатим сервісом для кожного гостя.
</p>
<p class="price">$199.99</p>
<button class="buy-button">Купити</button>
</article>
<article class="product-card">
<img src="hotel4.jpg" alt="Hotel Image">
<h3>Cozy Beach Hotel</h3>
<p>
Невеликий затишний готель біля пляжу, що пропонує комфорт
і спокійний відпочинок біля моря.
</p>
<p class="price">$149.99</p>
<button class="buy-button">Купити</button>
</article>
</section>
</main>
</body>
</html>