mirror of https://gitlab.com/litecord/litecord.git
Merge branch 'patch/polish_register_html' into 'master'
polish invite_register.html See merge request luna/litecord!4
This commit is contained in:
commit
479151cdfa
|
|
@ -1,31 +1,84 @@
|
||||||
html, body {
|
html,
|
||||||
|
body {
|
||||||
background-color: #23272a;
|
background-color: #23272a;
|
||||||
color: white;
|
color: white;
|
||||||
font-family: sans-serif;
|
font: 16px/1 sans-serif;
|
||||||
|
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-flow: column nowrap;
|
flex-flow: column nowrap;
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
@media (max-width: 500px) {
|
|
||||||
html,
|
|
||||||
body {
|
|
||||||
display: inherit !important;
|
|
||||||
padding: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
* { box-sizing: border-box; }
|
*,
|
||||||
.rounded-thing {
|
*:before,
|
||||||
border-radius: 5px;
|
*:after {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
#register {
|
||||||
|
width: 30rem;
|
||||||
|
border-radius: 0.5rem;
|
||||||
background-color: #2c2f33;
|
background-color: #2c2f33;
|
||||||
padding: 10px;
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#register h1 {
|
||||||
|
margin: 0 0 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group {
|
||||||
|
margin: 2rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group label {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group input {
|
||||||
|
font: inherit;
|
||||||
|
color: inherit;
|
||||||
|
|
||||||
|
border: none;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
padding: 0.5rem;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
background-color: rgba(255, 255, 255, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group input:focus {
|
||||||
|
outline: none;
|
||||||
|
box-shadow: 0 0 0 0.15rem #7289da;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[name='invcode'] {
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type='submit'] {
|
||||||
|
font: inherit;
|
||||||
|
color: inherit;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
border: none;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #7289da;
|
||||||
|
padding: 0.75rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
#register {
|
||||||
|
width: 100% !important;
|
||||||
|
background: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
input { padding: 5px; }
|
|
||||||
input[type=submit] { padding: 5px; }
|
|
||||||
input[type=submit]:hover { background-color: #7298da; padding: 5px; }
|
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,37 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
<title>litecord: register</title>
|
<title>litecord: register</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link href="css/invite_register.css" rel="stylesheet">
|
<link href="css/invite_register.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div style="padding: 10px;"/>
|
<main id="register">
|
||||||
<main class="rounded-thing">
|
<h1>register</h1>
|
||||||
<h1>register</h1>
|
<form method="post" action="/api/v6/auth/register_inv">
|
||||||
<form method="post" action="/api/v6/auth/register_inv">
|
<div class="form-group">
|
||||||
<input type="text" name="username" placeholder="your username"/>
|
<label for="username">username <small>(only alphanumeric or underscore, no spaces)</small></label>
|
||||||
<br/>
|
<input type="text" name="username" maxlength=19 minlength=2 pattern="^[a-zA-Z0-9_]+$" placeholder="luna" required>
|
||||||
<input type="text" name="email" placeholder="your email"/>
|
</div>
|
||||||
<br/>
|
|
||||||
<input type="password" name="password" placeholder="your password"/>
|
|
||||||
<br/>
|
|
||||||
<input type="text" name="invcode" placeholder="invite code"/>
|
|
||||||
|
|
||||||
<p/><input type="submit" value="register">
|
<div class="form-group">
|
||||||
</form>
|
<label for="email">email</label>
|
||||||
|
<input type="email" name="email" pattern="^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$" placeholder="luna@blockchain.mail" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="password">password</label>
|
||||||
|
<input type="password" name="password" minlength=5 required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="invcode">invite code</label>
|
||||||
|
<input type="text" name="invcode" placeholder="4MLsEr" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input type="submit" value="register">
|
||||||
|
</form>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue