Merge branch 'Develop' into 'main'
Develop See merge request 3-sa/WebServer!1
This commit is contained in:
commit
00bdcf781f
@ -4,30 +4,33 @@
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<button type="submit" name="action" value="Login">Login</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
|
||||
<button type="submit" name="action" value="Register">Register</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
68
frontend/styles.css
Normal file
68
frontend/styles.css
Normal file
@ -0,0 +1,68 @@
|
||||
/* Общие стили */
|
||||
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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user