-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
112 lines (98 loc) · 4.63 KB
/
index.html
File metadata and controls
112 lines (98 loc) · 4.63 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Format Team</title>
<link rel="stylesheet" href="styles.css">
<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=Montserrat:wght@100..900&display=swap" rel="stylesheet">
<style>
body,
html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden; /* Скрывает прокрутку, если она не нужна */
}
.background {
background-image: url('https://i.imgur.com/koMGRK6.jpeg');
background-size: cover;
background-position: center; /* Центрирует изображение */
background-repeat: no-repeat;
height: 100%;
width: 100%;
position: relative; /* Для позиционирования иконок */
}
.button {
position: absolute;
width: 230px;
height: 80px;
background: rgba(74, 74, 74, 0.2);
border: 3px solid black;
border-radius: 10px;
cursor: pointer;
display: flex; /* Для центрирования текста */
align-items: center; /* Вертикальное центрирование */
justify-content: center; /* Горизонтальное центрирование */
color: white; /* Цвет текста по умолчанию */
font-size: 32px; /* Размер текста по умолчанию */
font-family: 'Montserrat';
opacity: 0; /* Элементы невидимы изначально */
transform: translateY(20px); /* Начальная позиция для анимации */
transition: opacity 1s ease, transform 1s ease; /* Плавный переход для прозрачности и трансформации */
}
.button.show {
opacity: 1; /* Делает кнопки видимыми */
transform: translateY(0); /* Возвращает кнопки на место */
}
.button1 {
top: 90%;
right: 45%;
}
.button3 {
top: 90%;
right: 60%;
}
.button4 {
top: 90%;
right: 30%;
}
img {
position: absolute; /* Устанавливаем абсолютное позиционирование для логотипа */
top: -100px; /* Отступ сверху */
left: -90px; /* Отступ слева */
width: 632px; /* Ширина логотипа */
height: 400px; /* Высота логотипа */
opacity: 0; /* Логотип невиден изначально */
transform: translateY(-20px); /* Начальная позиция для анимации */
transition: opacity 1s ease, transform 1s ease; /* Плавный переход для прозрачности и трансформации */
}
img.show {
opacity: 1; /* Делает логотип видимым */
transform: translateY(0); /* Возвращает логотип на место */
}
</style>
</head>
<body>
<div class="background">
<span class="button button1" onclick="window.location.href='https://example.com'">Project's</span>
<span class="button button3" onclick="window.location.href='https://format404.github.io/formatinfo/'">Info</span>
<span class="button button4" onclick="window.location.href='https://pay.cloudtips.ru/p/1e3880f5'">Donate</span>
<img src="https://i.imgur.com/93tbNqD.png" alt="Логотип">
</div>
<script>
window.onload = function () {
setTimeout(function () {
const buttons = document.querySelectorAll('.button');
const logo = document.querySelector('img');
buttons.forEach(button => {
button.classList.add('show');
});
logo.classList.add('show'); // Показываем логотип
}, 300); // Задержка в 500 мс (0.5 секунды)
}
</script>
</body>
</html>