dok/views/index.ejs
2026-03-11 15:20:22 +00:00

210 lines
4.0 KiB
Plaintext

<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<title>Dynasty of Knights</title>
<style>
@font-face {
font-family: "Tangerine";
src: url("/fonts/Tangerine-Regular.woff2") format("woff2");
font-weight: normal;
}
@font-face {
font-family: "Tangerine";
src: url("/fonts/Tangerine-Bold.woff2") format("woff2");
font-weight: bold;
}
* {
box-sizing: border-box;
font-family: "Tangerine", serif;
}
body {
margin: 0;
min-height: 100vh;
background-image: url("/images/background_login.png");
background-position: center;
background-size: cover;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
}
/* Nebel über Tal */
.fog {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 40%;
background: linear-gradient(
to top,
rgba(255, 255, 255, 0.15),
rgba(255, 255, 255, 0)
);
pointer-events: none;
}
@keyframes fogmove {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
/* Login Panel */
.launcher {
width: 380px;
padding: 30px;
font-family: "Tangerine", serif;
font-size: 26px;
background: rgba(10, 15, 20, 0.75);
backdrop-filter: blur(10px);
border-radius: 10px;
border: 1px solid rgba(100, 170, 255, 0.4);
box-shadow:
0 0 40px rgba(0, 0, 0, 0.8),
0 0 20px rgba(70, 120, 255, 0.5);
}
/* Inputs */
input,
select,
button,
.register,
.server-status {
width: 100%;
padding: 13px;
margin-bottom: 15px;
font-family: "Tangerine", serif;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 6px;
color: white;
}
/* Login Button */
.login {
width: 100%;
padding: 14px;
background: linear-gradient(45deg, #3da2ff, #7dd3ff);
border: none;
border-radius: 6px;
font-weight: bold;
cursor: pointer;
transition: 0.25s;
}
.login:hover {
transform: scale(1.05);
box-shadow:
0 0 20px #4aa3ff,
0 0 40px #4aa3ff;
}
/* Register */
.register {
display: block;
text-align: center;
margin-top: 10px;
color: #ccc;
text-decoration: none;
}
.register:hover {
color: white;
}
/* Server Status */
.server-status {
margin-top: 18px;
padding: 10px;
background: rgba(0, 0, 0, 0.45);
border-radius: 6px;
font-size: 14px;
}
.online {
color: #3cff5a;
}
.offline {
color: #ff4b4b;
}
</style>
</head>
<body>
<div class="fog"></div>
<div class="launcher">
<select>
<% servers.forEach(server => { %>
<option value="<%= server.id %>">
<%= server.name %>
</option>
<% }) %>
<% extraServers.forEach(server => { %>
<option disabled>
<%= server.name %> (Offline)
</option>
<% }) %>
</select>
<input type="text" placeholder="Username" />
<input type="password" placeholder="Password" />
<button class="login">Login</button>
<a class="register" href="#"> Account registrieren </a>
<div class="server-status">
<% servers.forEach(server => { %>
<%= server.name %>:
<span class="online">Online</span><br>
<% }) %>
<% extraServers.forEach(server => { %>
<%= server.name %>:
<span class="offline">Offline</span><br>
<% }) %>
</div>
</div>
</body>
</html>