Separated Account Login and Profile Display
This commit is contained in:
parent
aa4ad62493
commit
755af71912
4 changed files with 151 additions and 125 deletions
|
|
@ -29,24 +29,6 @@
|
|||
<h2 class="center">Loading...</h2>
|
||||
</div>
|
||||
|
||||
<div id="login-error" class="error-container" style="display: none;">
|
||||
<h2 id="error-text">ERROR</h2>
|
||||
</div>
|
||||
|
||||
<form id="login" style="display: none;">
|
||||
<h3 class="center">Please log in before viewing account information</h3>
|
||||
<div class="form-group">
|
||||
<label for="username">SFID / Username:</label>
|
||||
<input class="login-input" type="text" id="username" name="username" required />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">Password:</label>
|
||||
<input class="login-input" type="password" id="password" name="password" required />
|
||||
</div>
|
||||
<button class="form-button" type="submit">Login</button>
|
||||
<p class="form-note">Please ask an SPFN Developer in the <a href="https://discord.gg/grMSxZf">discord server</a> for assistance with password resets</p>
|
||||
</form>
|
||||
|
||||
<div id="user-info" class="info" style="display: none;">
|
||||
<div id="user-display" class="info-container" style="width: 180px; align-items: center;">
|
||||
<img src="/res/img/mii-placeholder.png" id="mii-img" style="width: 100%">
|
||||
|
|
|
|||
52
account/login/index.html
Normal file
52
account/login/index.html
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Log In | SPFN</title>
|
||||
<link rel="icon" type="image/png" href="/res/img/spfn.png">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div style="display: flex;">
|
||||
<img style="width: 96px; padding: 0px; margin: 0 auto" src="/res/img/spfn.png">
|
||||
<h2 style="font-size: 32px; margin: auto; padding: 12px">Account</h2>
|
||||
</div>
|
||||
<nav>
|
||||
<ul class="nav-links">
|
||||
<a href="/"><button class="header-button">Home</button></a>
|
||||
<a href="/guides"><button class="header-button">Guides</button></a>
|
||||
<a href="/account"><button class="header-button active">Account</button></a>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<div id="login-error" class="error-container" style="display: none;">
|
||||
<h2 id="error-text">ERROR</h2>
|
||||
</div>
|
||||
|
||||
<form id="login">
|
||||
<h3 class="center">Please log in to access your account.</h3>
|
||||
<div class="form-group">
|
||||
<label for="username">SFID / Username:</label>
|
||||
<input class="login-input" type="text" id="username" name="username" required />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">Password:</label>
|
||||
<input class="login-input" type="password" id="password" name="password" required />
|
||||
</div>
|
||||
<button class="form-button" type="submit">Login</button>
|
||||
<p class="form-note">Please ask an SPFN Developer in the <a href="https://discord.gg/grMSxZf">discord server</a> for assistance with password resets</p>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript" src="/js/login.js"></script>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p class="center">Need assistance? <a href="https://discord.gg/grMSxZf" target="_blank">Join the Discord</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
Loading…
Add table
Add a link
Reference in a new issue