все в мастер тащим, решать надо или нет потом будем

This commit is contained in:
Vladislav 2025-03-29 23:29:34 +03:00
parent 00bdcf781f
commit 51e0019fd6
2 changed files with 0 additions and 104 deletions

View File

@ -1,36 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login and Register Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="form-container">
<h1>Login Form</h1>
<form action="/submit" method="post">
<label for="username">Username:</label><br>
<input type="text" id="username" name="username" required><br><br>
<label for="password">Password:</label><br>
<input type="password" id="password" name="password" required><br><br>
<button type="submit" name="action" value="Login">Login</button>
</form>
</div>
<div class="form-container">
<h1>Register Form</h1>
<form action="/submit" method="post">
<label for="new_username">Username:</label><br>
<input type="text" id="new_username" name="new_username" required><br><br>
<label for="new_password">Password:</label><br>
<input type="password" id="new_password" name="new_password" required><br><br>
<button type="submit" name="action" value="Register">Register</button>
</form>
</div>
</body>
</html>

View File

@ -1,68 +0,0 @@
/* Общие стили */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 20px;
display: flex;
flex-direction: column; /* Располагаем контейнеры вертикально */
justify-content: center;
align-items: center;
min-height: 100vh;
}
/* Контейнер для форм */
.form-container { /* Изменили селектор на класс .form-container */
width: 100%;
max-width: 400px;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
/* Заголовки */
h1 {
text-align: center;
color: #333;
margin-bottom: 20px;
}
/* Метки (labels) */
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #555;
}
/* Поля ввода (input) */
input[type="text"],
input[type="password"] {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
/* Кнопки */
button {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
width: 100%;
font-size: 16px;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #45a049;
}