the files
This commit is contained in:
@@ -0,0 +1,224 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Campus Admin</title>
|
||||
<link rel="icon" href="/admin-assets/AnimatedIcon.png" type="image/png">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
<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=Rubik:wght@400;500;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--purple: #791B8D;
|
||||
--magenta: #BF2966;
|
||||
--orange: #F95D24;
|
||||
--gold: #FA9912;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; padding: 0; height: 100%; }
|
||||
body {
|
||||
font-family: 'Rubik', system-ui, sans-serif;
|
||||
color: #fff;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40px 20px;
|
||||
/* Base gradient echoes the sunset ramp used in the UIGradient recolor patch:
|
||||
purple top-left -> magenta -> orange -> gold bottom-right. Sits under the
|
||||
tiled AnimatedIcon watermark so the whole page reads as "Campus" without
|
||||
any single hero image dominating. */
|
||||
background:
|
||||
url('/admin-assets/Background.png') no-repeat center center fixed,
|
||||
linear-gradient(135deg, var(--purple) 0%, var(--magenta) 40%, var(--orange) 75%, var(--gold) 100%);
|
||||
background-size: cover;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
/* AnimatedIcon tile pattern, rotated + inset so its corners never show, slowly
|
||||
drifts across the page. body::before so no admin-page HTML has to change to
|
||||
include it - it just sits behind everything at 12% opacity. */
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: -40vmax;
|
||||
background-image: url('/admin-assets/AnimatedIcon.png');
|
||||
background-repeat: repeat;
|
||||
background-size: 150px 150px;
|
||||
transform: rotate(-8deg);
|
||||
opacity: 0.12;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
animation: driftPattern 60s linear infinite;
|
||||
}
|
||||
@keyframes driftPattern {
|
||||
from { background-position: 0 0; }
|
||||
to { background-position: 300px 300px; }
|
||||
}
|
||||
.hero {
|
||||
display: block;
|
||||
max-width: 320px;
|
||||
width: 60vw;
|
||||
margin: 0 auto 24px auto;
|
||||
filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
|
||||
}
|
||||
.login-card {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
background: rgba(20, 12, 30, 0.72);
|
||||
backdrop-filter: blur(14px);
|
||||
-webkit-backdrop-filter: blur(14px);
|
||||
border: 1px solid rgba(255,255,255,0.14);
|
||||
border-radius: 18px;
|
||||
padding: 36px 34px 30px;
|
||||
box-shadow: 0 24px 60px rgba(0,0,0,0.45);
|
||||
}
|
||||
h2 {
|
||||
font-family: 'Rubik', sans-serif;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
margin: 0 0 22px;
|
||||
font-size: 26px;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
.input-group { margin-bottom: 16px; }
|
||||
label {
|
||||
display: block;
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
margin-bottom: 6px;
|
||||
opacity: 0.85;
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
input {
|
||||
width: 100%;
|
||||
padding: 12px 14px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(255,255,255,0.18);
|
||||
background: rgba(255,255,255,0.08);
|
||||
color: #fff;
|
||||
font-family: inherit;
|
||||
font-size: 15px;
|
||||
transition: border-color .15s, background .15s;
|
||||
}
|
||||
input:focus {
|
||||
outline: none;
|
||||
border-color: var(--orange);
|
||||
background: rgba(255,255,255,0.12);
|
||||
}
|
||||
input::placeholder { color: rgba(255,255,255,0.4); }
|
||||
.login-btn {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 13px;
|
||||
margin-top: 6px;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
/* Same purple->orange sweep as the ramp - reads as "the primary action" without
|
||||
fighting the background. */
|
||||
background: linear-gradient(90deg, var(--purple), var(--orange));
|
||||
color: #fff;
|
||||
font-family: inherit;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
letter-spacing: 0.4px;
|
||||
cursor: pointer;
|
||||
transition: transform .1s, box-shadow .15s;
|
||||
box-shadow: 0 6px 16px rgba(249,93,36,0.35);
|
||||
}
|
||||
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(249,93,36,0.45); }
|
||||
.login-btn:active { transform: translateY(0); }
|
||||
.divider {
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
letter-spacing: 2px;
|
||||
opacity: 0.55;
|
||||
margin: 22px 0 14px;
|
||||
position: relative;
|
||||
}
|
||||
.divider::before, .divider::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 38%;
|
||||
height: 1px;
|
||||
background: rgba(255,255,255,0.18);
|
||||
}
|
||||
.divider::before { left: 0; }
|
||||
.divider::after { right: 0; }
|
||||
.discord-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
background: #5865F2;
|
||||
color: #fff;
|
||||
font-family: inherit;
|
||||
font-weight: 500;
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
transition: background .15s;
|
||||
}
|
||||
.discord-btn:hover { background: #4752c4; }
|
||||
.error-message {
|
||||
text-align: center;
|
||||
margin-top: 14px;
|
||||
font-size: 13px;
|
||||
color: #ffcccc;
|
||||
min-height: 1em;
|
||||
}
|
||||
.footer {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
opacity: 0.55;
|
||||
margin-top: 14px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<img class="hero" src="/admin-assets/Cutout.png" alt="Campus"
|
||||
onerror="this.style.display='none'">
|
||||
|
||||
<div class="login-card">
|
||||
<h2>Campus Admin</h2>
|
||||
|
||||
<form action="/api/web/admin/login" method="post">
|
||||
<div class="input-group">
|
||||
<label for="username">Username</label>
|
||||
<input id="username" type="text" name="username" autocomplete="username" required>
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<label for="password">Password</label>
|
||||
<input id="password" type="password" name="password" autocomplete="current-password" required>
|
||||
</div>
|
||||
|
||||
<button class="login-btn" type="submit">Log in</button>
|
||||
</form>
|
||||
|
||||
<div class="divider">OR</div>
|
||||
|
||||
<form action="/api/auth/discord" method="get">
|
||||
<button class="discord-btn" type="submit">
|
||||
<i class="fab fa-discord"></i>
|
||||
Log in with Discord
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="error-message" id="error-message"></div>
|
||||
</div>
|
||||
<div class="footer">Campus · private server</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user