-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (98 loc) · 3.15 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NEWS</title>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
padding: 0;
background-color: rgb(36, 36, 36);
color: white;
}
img {
width: 80%;
}
header {
background-color: rgba(21, 21, 21, 0.434);
height: 55px;
font-family: 'Montserrat', sans-serif;
color: white;
margin-top: 0;
display: flex;
align-items: center;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.zgl {
margin-left: 10px;
}
hr {
margin: 20px 0;
}
.bbbb {
padding: 10px;
color: white;
border-radius: 10px;
text-decoration: none;
background-color: rgb(117, 31, 209);
margin-left: auto;
margin-right: 10px;
}
.hui {
padding: 6px;
color: white;
border-radius: 10px;
text-decoration: none;
background-color: rgb(117, 31, 209);
margin-left: 10px;
}
div {
margin-left: 10px;
color: rgb(117, 31, 209);
}
input {
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
background-color: #f8f8f8;
font-size: 16px;
transition: border-color 0.3s ease, background-color 0.3s ease;
}
</style>
</head>
<body>
<header>
<h1 class="zgl">NEWS</h1>
<a class="bbbb" href="vhod.html">Вход</a>
</header>
<br><br><br><br><br><br>
<center>
<img src="каналы.png" alt="">
<h1>Добро пожаловать!</h1>
<a class="hui" href="#" id="watchNews">Смотреть новости</a><br><br>
<a class="hui" href="vhod.html">Войти в аккаунт</a><br><br>
<a class="hui" href="index.html" id="registerButton">Удалить аккаунт</a>
</center>
<script>
document.getElementById('watchNews').addEventListener('click', function(event) {
event.preventDefault();
if (localStorage.getItem('registered') === '1') {
window.location.href = 'news.html';
} else {
window.location.href = 'error.html';
}
});
document.getElementById('registerButton').addEventListener('click', function() {
localStorage.setItem('registered', '0');
});
</script>
</body>
</html>