forked from olcxjas-softworks/LarpixClient
First commit
This commit is contained in:
commit
ed3ed8dab7
5 changed files with 733 additions and 0 deletions
245
login/index.html
Normal file
245
login/index.html
Normal file
|
|
@ -0,0 +1,245 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Larpix - Authentication</title>
|
||||
<link rel="stylesheet" href="../style.css">
|
||||
<link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<style>
|
||||
html {
|
||||
font-size: max(17px, calc(100vw / 100));
|
||||
}
|
||||
|
||||
body {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: var(--main-bg-color);
|
||||
display: flex;
|
||||
height: 100dvh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.auth-card {
|
||||
background-color: rgba(255, 255, 255, 0.015);
|
||||
border: var(--border-width) solid var(--light-border-color);
|
||||
border-radius: 1.2rem;
|
||||
width: 100%;
|
||||
max-width: 24rem;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.auth-container {
|
||||
display: flex;
|
||||
width: 200%;
|
||||
transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
}
|
||||
|
||||
.auth-box {
|
||||
width: 50%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 2.5rem 2rem;
|
||||
}
|
||||
|
||||
.show-register {
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.auth-header {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.auth-header h1 {
|
||||
font-size: 2.4rem;
|
||||
font-weight: 800;
|
||||
margin-bottom: 0.3rem;
|
||||
letter-spacing: -0.05rem;
|
||||
}
|
||||
|
||||
.auth-header p {
|
||||
opacity: 0.5;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.1rem;
|
||||
}
|
||||
|
||||
.input-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
|
||||
.input-group label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 800;
|
||||
margin-left: 0.6rem;
|
||||
margin-bottom: -0.2rem;
|
||||
opacity: 0.4;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05rem;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
|
||||
.submit-button {
|
||||
margin: 1.5rem 0 0 0 !important;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
background-color: var(--text-color);
|
||||
color: var(--main-bg-color);
|
||||
font-weight: 800;
|
||||
border: none;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
button:hover {
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
.footer-links {
|
||||
text-align: center;
|
||||
margin-top: 2rem;
|
||||
font-size: 0.9rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.footer-link-toggle {
|
||||
cursor: pointer;
|
||||
opacity: 0.6;
|
||||
transition: opacity 0.2s ease;
|
||||
color: var(--text-color);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.footer-link-toggle:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.footer-link-toggle strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.footer-link-toggle:hover strong {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="auth-card">
|
||||
<div class="auth-container" id="auth-container">
|
||||
|
||||
<div class="auth-box" id="login-box">
|
||||
<div class="auth-header">
|
||||
<h1>Larpix</h1>
|
||||
<p>Sign in to your secure instance.</p>
|
||||
</div>
|
||||
|
||||
<form id="form-login">
|
||||
<div class="input-group">
|
||||
<label for="login-host">Server Host</label>
|
||||
<input type="text" id="login-host" placeholder="example.com" autocomplete="url">
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<label for="login-username">Username</label>
|
||||
<input type="text" id="login-username" placeholder="vince_null" autocomplete="username">
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<label for="login-password">Password</label>
|
||||
<input type="password" id="login-password" placeholder="••••••••" autocomplete="current-password">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="submit-button">
|
||||
Sign In
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="footer-links">
|
||||
<span class="footer-link-toggle" id="to-register">
|
||||
New here? <strong>Create an account</strong>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="auth-box" id="register-box">
|
||||
<div class="auth-header">
|
||||
<h1>Join Larpix</h1>
|
||||
<p>Start your encrypted journey today.</p>
|
||||
</div>
|
||||
|
||||
<form id="form-register">
|
||||
<div class="input-group">
|
||||
<label for="reg-host">Server Host</label>
|
||||
<input type="text" id="reg-host" placeholder="example.com" autocomplete="url">
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<label for="reg-username">Username</label>
|
||||
<input type="text" id="reg-username" placeholder="Choose username" autocomplete="username">
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<label for="reg-password">Password</label>
|
||||
<input type="password" id="reg-password" placeholder="Create password" autocomplete="new-password">
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<label for="reg-confirm">Confirm Password</label>
|
||||
<input type="password" id="reg-confirm" placeholder="Repeat password" autocomplete="new-password">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="submit-button">
|
||||
Sign Up
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="footer-links">
|
||||
<span class="footer-link-toggle" id="to-login">
|
||||
Already a member? <strong>Back to Login</strong>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../main.js"></script>
|
||||
<script>
|
||||
const container = document.getElementById('auth-container');
|
||||
const toRegister = document.getElementById('to-register');
|
||||
const toLogin = document.getElementById('to-login');
|
||||
|
||||
toRegister.addEventListener('click', () => {
|
||||
container.classList.add('show-register');
|
||||
});
|
||||
|
||||
toLogin.addEventListener('click', () => {
|
||||
container.classList.remove('show-register');
|
||||
});
|
||||
|
||||
document.querySelectorAll('form').forEach(form => {
|
||||
form.addEventListener('submit', (e) => {
|
||||
e.preventDefault();
|
||||
const formData = new FormData(form);
|
||||
console.log("Form submitted. Implement auth logic using main.js functions.");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue