Регистрация
This commit is contained in:
parent
99a2fc5123
commit
5344195674
4 changed files with 210 additions and 9 deletions
11
Frontend/Pages/control-panel.html
Normal file
11
Frontend/Pages/control-panel.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
34
Frontend/Pages/register.html
Normal file
34
Frontend/Pages/register.html
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Регистрация - SpectralVPN</title>
|
||||
<link rel="stylesheet" href="../Styles/register.css">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<form id="registerForm" novalidate>
|
||||
<h1>Регистрация</h1>
|
||||
<label for="email">Электронная почта</label>
|
||||
<input type="email" id="email" class="input" placeholder="example@domain.com" required autocomplete="email">
|
||||
<div class="error" id="emailError"></div>
|
||||
<label for="password">Пароль</label>
|
||||
<input type="password" id="password" class="input" placeholder="Минимум 8 символов" required minlength="8" autocomplete="new-password">
|
||||
<div class="error" id="passwordError"></div>
|
||||
<label for="password_reply">Повторите пароль</label>
|
||||
<input type="password" id="password_reply" class="input" placeholder="Повторите пароль" required autocomplete="new-password">
|
||||
<div class="error" id="passwordReplyError"></div>
|
||||
<div class="checkbox-container">
|
||||
<input type="checkbox" id="terms" class="checkbox" required>
|
||||
<label for="terms">Я прочитал и согласен с <a href="offer.html" target="_blank">пользовательским соглашением</a> и <a href="privacy.html" target="_blank">политикой конфиденциальности</a>.</label>
|
||||
</div>
|
||||
<div class="error" id="termsError"></div>
|
||||
<div class="checkbox-container">
|
||||
<input type="checkbox" id="newsletter" class="checkbox">
|
||||
<label for="newsletter">Я хочу получать новости об SpectralVPN на свою электронную почту.</label>
|
||||
</div>
|
||||
<button type="submit">Зарегистрироваться</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -6,7 +6,9 @@
|
|||
--border: #333355;
|
||||
}
|
||||
|
||||
*{ box-sizing: border-box; margin:0; padding:0; }
|
||||
*{
|
||||
box-sizing: border-box; margin:0; padding:0;
|
||||
}
|
||||
|
||||
body{
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
|
|
@ -32,12 +34,25 @@ header{
|
|||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
h1{ font-size: 2.2rem; color: var(--accent); margin:0; }
|
||||
h2{ font-size: 1.5rem; color: var(--accent); margin-top: 2rem; border-left: 4px solid var(--accent); padding-left: 12px; }
|
||||
h3{ font-size: 1.2rem; color: #c0c0ff; margin-top: 1.5rem; }
|
||||
h1{
|
||||
font-size: 2.2rem; color: var(--accent); margin:0;
|
||||
}
|
||||
|
||||
p, li{ font-size: 1rem; margin: 0.8rem 0; }
|
||||
ul, ol{ padding-left: 20px; }
|
||||
h2{
|
||||
font-size: 1.5rem; color: var(--accent); margin-top: 2rem; border-left: 4px solid var(--accent); padding-left: 12px;
|
||||
}
|
||||
|
||||
h3{
|
||||
font-size: 1.2rem; color: #c0c0ff; margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
p, li{
|
||||
font-size: 1rem; margin: 0.8rem 0;
|
||||
}
|
||||
|
||||
ul, ol{
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
code{
|
||||
background: #2a2a3a;
|
||||
|
|
@ -74,10 +89,18 @@ code{
|
|||
font-weight: 600;
|
||||
transition: 0.3s;
|
||||
}
|
||||
.btn:hover{ background: #5a45b0; transform: translateY(-2px); }
|
||||
|
||||
a{ color: var(--accent); text-decoration: none; }
|
||||
a:hover{ text-decoration: underline; }
|
||||
.btn:hover{
|
||||
background: #5a45b0; transform: translateY(-2px);
|
||||
}
|
||||
|
||||
a{
|
||||
color: var(--accent); text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover{
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.container { margin: 20px; padding: 20px; }
|
||||
|
|
|
|||
133
Frontend/Styles/register.css
Normal file
133
Frontend/Styles/register.css
Normal file
|
|
@ -0,0 +1,133 @@
|
|||
:root{
|
||||
--accent: cyan;
|
||||
--bg-dark: rgb(8, 8, 8);
|
||||
--card-bg: rgb(22, 22, 22);
|
||||
--text: #e0e0e0;
|
||||
--border: var(--accent);
|
||||
}
|
||||
|
||||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: 'Inter', sans-serif;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
body{
|
||||
background-color: var(--bg-dark);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
form{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 15px;
|
||||
padding: 30px 25px;
|
||||
width: 100%;
|
||||
max-width: 380px;
|
||||
}
|
||||
|
||||
h1{
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
color: var(--accent);
|
||||
font-weight: 700;
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
label{
|
||||
margin-top: 16px;
|
||||
margin-bottom: 6px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.input{
|
||||
padding: 12px 14px;
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(0, 255, 255, 0.3);
|
||||
border-radius: 10px;
|
||||
color: white;
|
||||
font-size: 1rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.input:focus{
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.input::placeholder{
|
||||
color: rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
|
||||
.checkbox-container{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-top: 16px;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.checkbox-container input[type="checkbox"]{
|
||||
accent-color: var(--accent);
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin: 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.checkbox-container a{
|
||||
color: var(--accent);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
button{
|
||||
margin-top: 24px;
|
||||
padding: 14px;
|
||||
background-color: black;
|
||||
color: var(--accent);
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: 10px;
|
||||
font-weight: 600;
|
||||
font-size: 1.1rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
button:hover{
|
||||
background-color: var(--accent);
|
||||
color: black;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
button:active{
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 6px rgba(0, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.error{
|
||||
color: #ff6b6b;
|
||||
font-size: 0.85rem;
|
||||
margin-top: 6px;
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
form{
|
||||
padding: 25px 20px;
|
||||
}
|
||||
|
||||
h1{
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue