-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
271 lines (210 loc) · 10.9 KB
/
index.html
File metadata and controls
271 lines (210 loc) · 10.9 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
<!doctype html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<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=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<title>Скобанев А.И. Тестовое задание</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css" />
<script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>
<style type="text/css">
html * {
font-family: 'Poppins',
sans-serif; font-size: 16px;
}
</style>
</head>
<body>
<div class="relative bg-[url('img/topbg.png')] h-screen bg-center bg-no-repeat bg-cover">
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-w-[1280px] w-full container px-2">
<div class="flex flex-col justify-center gap-3">
<span class="text-white text-center lg:text-left text-[20px] sm:text-[22px] lg:text-[24px] font-[500]">OPEN EVERYDAY 6AM - 9PM</span>
<span class="text-white leading-snug md:leading-normal text-center lg:text-left text-[38px] sm:text-[46px] lg:text-[64px] font-[700]">A bad day with lunch is better than a good day without it.</span>
<div class="flex flex-col md:flex-row justify-between items-center gap-5">
<button onclick="openModal()" class="hover:bg-[#00416a] h-[100px] w-[270px] bg-[#3A4574] text-white">Reserve a table</button>
<div class="flex flex-row gap-5">
<span class="rounded-full font-[600] text-white border border-2 border-white w-[48px] h-[48px] flex items-center justify-center">Fb</span>
<span class="rounded-full font-[600] text-white border border-2 border-white w-[48px] h-[48px] flex items-center justify-center">Lg</span>
<span class="rounded-full font-[600] text-white border border-2 border-white w-[48px] h-[48px] flex items-center justify-center">Tw</span>
<span class="rounded-full font-[600] text-white border border-2 border-white w-[48px] h-[48px] flex items-center justify-center">Yt</span>
</div>
</div>
</div>
</div>
<div class="absolute top-0 left-1/2 -translate-x-1/2 max-w-[1280px] w-full px-2">
<div class="w-full min-h-10 lg:hidden">
<div class="flex flex-row gap-3">
<div onclick="openMenu()" class="w-14 flex justify-center items-center p-2">
<img src="img/burger.svg" class="w-full">
</div>
<div class="grow flex justify-center items-center">
<img src="img/logo_top.svg" class="w-[200px]">
</div>
</div>
</div>
<div class="hidden z-10 lg:flex flex-row justify-between items-center mt-5">
<div class="logo">
<img src="img/logo_top.svg">
</div>
<nav class="text-white">
<ul class="flex flex-row items-center gap-5">
<li class="hover:underline underline-offset-4">À la carte</li>
<li class="hover:underline underline-offset-4">Wijnkaart</li>
<li class="hover:underline underline-offset-4">Lunchmenu</li>
<li class="hover:underline underline-offset-4">Contact</li>
</ul>
</nav>
<div class="flex flex-row items-center gap-2">
<img src="img/6.svg" class="h-[24px] w-[24px]">
<span class="text-white">+32 9 282 57 25</span>
</div>
</div>
</div>
</div>
<div class="container mx-auto max-w-[1280px] w-full py-10 px-2">
<div class="flex flex-col lg:flex-row gap-5 lg:gap-0">
<div class="w-full lg:w-2/5">
<div class="flex flex-col">
<div class="flex flex-col py-5 border-b-2 gap-2">
<span class="font-[600] text-[24px]">Woensdag 12/01</span>
<div class="flex flex-row gap-3 w-full items-center">
<span class="font-[400] text-[18px]">Salade met Serrano</span>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<span class="font-[400] text-[18px]">Steak Tartaar</span>
</div>
</div>
<div class="flex flex-col py-5 border-b-2 gap-2">
<span class="font-[600] text-[24px]">Donderdag 13/01</span>
<div class="flex flex-row gap-3 w-full items-center">
<span class="font-[400] text-[18px]">Toast Roquefort</span>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<span class="font-[400] text-[18px]">Penne met Kip en Prei</span>
</div>
</div>
<div class="flex flex-col py-5 border-b-2 gap-2">
<span class="font-[600] text-[24px]">Vrijdag 14/01</span>
<div class="flex flex-row gap-3 w-full items-center">
<span class="font-[400] text-[18px]">Verrassing van de Chef</span>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<span class="font-[400] text-[18px]">Penne met Kip en Prei</span>
</div>
</div>
<div class="flex flex-col py-5 border-b-2 gap-2">
<span class="font-[600] text-[24px]">Vrijdag 15/01</span>
<div class="flex flex-row gap-3 w-full items-center">
<span class="font-[400] text-[18px]">Verrassing van de Chef</span>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<span class="font-[400] text-[18px]">Penne met Kip en Prei</span>
</div>
</div>
<div class="flex flex-col py-5 border-b-2 gap-2">
<span class="font-[600] text-[24px]">Vrijdag 16/01</span>
<div class="flex flex-row gap-3 w-full items-center">
<span class="font-[400] text-[18px]">Verrassing van de Chef</span>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<div class="h-[5px] w-[5px] bg-[#D3B47F] rounded-full"></div>
<span class="font-[400] text-[18px]">Penne met Kip en Prei</span>
</div>
</div>
</div>
</div>
<div class="w-full lg:w-3/5 h-auto px-[50px]">
<img src="img/2.png" class="w-full" >
</div>
</div>
</div>
<div class="bg-[#3A4574] py-10 md:py-24 text-white">
<div class="container mx-auto max-w-[1280px] w-full">
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide flex flex-col items-center gap-5">
<img src="img/5.svg" class="w-[60px] md:w-[83px]">
<span class="font-[600] text-[24px] text-center md:text-[36px] text-[#D3B47F]">Goede service, lekker eten, toffe ambiance</span>
<span class="font-[400] text-[16px] text-white text-center px-7 md:px-24 lg:px-48 leading-8">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren.</span>
<span class="font-[600] text-[18px] md:text-[24px] text-[#D3B47F]">ALAIN HEYNDRICKX</span>
</div>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
</div>
</div>
<div class="fixed hidden max-w-[500px] w-full top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 p-5" id="modalWindow">
<div class="bg-white max-h-max p-5" >
<div class="flex flex-col items-center gap-3">
<span class="font-[600] text-xl">Modal Window</span>
<span class="">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren.</span>
<button onclick="closeModal()" class="hover:bg-[#00416a] py-5 px-10 bg-[#3A4574] text-white mt-3">Close</button>
</div>
</div>
</div>
<div class="fixed hidden w-full h-screen top-0 left-0" id="modalMenu">
<div class="bg-white h-screen p-5" >
<div class="flex flex-col justify-between gap-3 w-full h-full">
<div onclick="closeMenu()" class="flex justify-end">
<img src="img/close.svg" class="w-8 h-8">
</div>
<nav class="flex flex-col mt-2 h-full w-full items-start">
<ul class="w-full">
<li class="py-3 px-2 w-full border-b-2">À la carte</li>
<li class="py-3 px-2 w-full border-b-2">Wijnkaart</li>
<li class="py-3 px-2 w-full border-b-2">Lunchmenu</li>
<li class="py-3 px-2 w-full border-b-2">Contact</li>
</ul>
</nav>
<div class="flex flex-col items-center gap-3">
<div class="flex flex-row justify-center items-center gap-2">
<img src="img/6.svg" class="h-[28px] w-[28px]">
<span class="text-[22px]">+32 9 282 57 25</span>
</div>
<div class="flex flex-row justify-center gap-5">
<span class="rounded-full font-[600] border border-2 border-black w-[48px] h-[48px] flex items-center justify-center">Fb</span>
<span class="rounded-full font-[600] border border-2 border-black w-[48px] h-[48px] flex items-center justify-center">Lg</span>
<span class="rounded-full font-[600] border border-2 border-black w-[48px] h-[48px] flex items-center justify-center">Tw</span>
<span class="rounded-full font-[600] border border-2 border-black w-[48px] h-[48px] flex items-center justify-center">Yt</span>
</div>
</div>
</div>
</div>
</div>
<script>
document.addEventListener( 'DOMContentLoaded', function( e ) {
let swiper = new Swiper( '.swiper', {
autoplay: { delay: 3000 },
loop: true,
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
} )
const modalWindow = document.getElementById( 'modalWindow' )
const modalMenu = document.getElementById( 'modalMenu' )
openModal = () => {
modalWindow.style.display = 'block'
}
closeModal = () => {
modalWindow.style.display = 'none'
}
openMenu = () => {
modalMenu.style.display = 'block'
}
closeMenu = () => {
modalMenu.style.display = 'none'
}
});
</script>
</body>
</html>