-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzavdanya1.html
More file actions
70 lines (64 loc) · 1.48 KB
/
zavdanya1.html
File metadata and controls
70 lines (64 loc) · 1.48 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
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8">
<title>Картинка з текстом (Flex)</title>
<style>
@font-face {
font-family: 'Playwrite Danmark Loopet';
src: url('PlaywriteDanmarkLoopet.woff2') format('woff2');
}
* {
box-sizing: border-box;
}
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #111;
font-family: Arial, sans-serif;
}
.wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
.image-container {
width: 600px;
height: 400px;
position: relative;
overflow: hidden;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
border-radius: 12px;
}
.image-container img {
width: 100%;
height: 100%;
object-fit: cover;
}
.overlay-text {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
font-family: 'Playwrite Danmark Loopet', cursive;
font-size: 32px;
color: white;
background-color: rgba(0, 0, 0, 0.5);
padding: 10px 20px;
border-radius: 10px;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="image-container">
<img src="photo_5280873942581637356_y.jpg" alt="Фото ресторану">
<div class="overlay-text">Welcome to Flavor Haven</div>
</div>
</div>
</body>
</html>