Рабочий фронтенд

This commit is contained in:
2021-06-03 02:01:45 +03:00
parent c3b3f6763e
commit 8bce702a9c
15 changed files with 27341 additions and 67 deletions

View File

@@ -1,30 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Registration</title>
</head>
<body>
<h1>Register</h1>
<form action="http://localhost:3000/register" method="POST">
<span class="input_row">Username: <input name="login" type="text"></span>
<span class="input_row">Password: <input name="pass" type="password"></span>
<input type="hidden" class="g-recaptcha-response" name="g-recaptcha-response">
<input type="submit" value="Register">
</form>
<h1>Login</h1>
<form action="http://localhost:3000/login" method="POST">
<span class="input_row">Username: <input name="login" type="text"></span>
<span class="input_row">Password: <input name="pass" type="password"></span>
<input type="hidden" class="g-recaptcha-response" name="g-recaptcha-response">
<input type="submit" value="Login">
</form>
<script src="https://www.google.com/recaptcha/api.js?render=6LcTXIsaAAAAAGWE4913KuaqU1tTT9uyqmvPADcn"></script>
<script src="index.js"></script>
</body>
</html>

View File

@@ -1,7 +0,0 @@
grecaptcha.ready(function () {
grecaptcha.execute('6LcTXIsaAAAAAGWE4913KuaqU1tTT9uyqmvPADcn', { action: 'demo' })
.then(function (token) {
document.getElementsByClassName('g-recaptcha-response')[0].value = token;
document.getElementsByClassName('g-recaptcha-response')[1].value = token;
});
});

View File

@@ -1,16 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Personal page</title>
</head>
<body>
<h1>Personal page</h1>
<form action="http://localhost:3000/logout" method="GET">
<input type="submit" value="Logout">
</form>
</body>
</html>

View File

@@ -1,14 +0,0 @@
* {
text-align: center;
font-family: 'Courier New', Courier, monospace;
}
span.input_row {
display: flex;
justify-content: space-between;
}
form {
width: 30%;
margin: auto;
}