This commit is contained in:
2026-02-14 21:30:57 +01:00
parent e12ad0ad7e
commit 6dee5a73f5
13 changed files with 135 additions and 10 deletions

0
front/css/setup.png → front/css/background.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

86
front/css/login.css Normal file
View File

@@ -0,0 +1,86 @@
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
display: grid;
place-items: center;
height: 100vh;
overflow: hidden;
background-image: url("/css/background.png");
}
.page-content {
padding: 10px;
width: 350px;
height: 625px;
text-align: center;
box-shadow: 0 2px 100px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
border-radius: 30pt;
background: rgba(255, 255, 255, 0.3);
backdrop-filter: rgba(255, 255, 255, 0.3);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
display: grid;
place-items: center;
transition: all 0.3s ease-in-out;
}
.page {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 10px;
transition: all 0.3s ease-in-out;
}
.header {
position: relative;
top: 10px;
bottom: 10px;
}
h1 {
font-size: 30pt;
}
h2 {
font-size: 20pt;
}
input {
border: 1px solid #e0e0e0;
width: 200px;
height: 30px;
border-radius: 10pt;
padding: 5px;
background: rgba(255, 255, 255, 0.3);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}
input:focus {
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10pxr);
outline: none;
}
button {
margin-bottom: 10px;
width: 100px;
height: 30px;
background-color: #000000;
color: #ffffff;
display: grid;
place-items: center;
text-align: center;
border: none;
border-radius: 20pt;
transition: all 0.3s ease-in-out;
}
button:hover {
transform: scale(1.1);
}
button:active {
transform: scale(0.8);
}

4
front/css/setup.css Normal file → Executable file
View File

@@ -4,7 +4,7 @@ body {
place-items: center;
height: 100vh;
overflow: hidden;
background-image: url("/css/setup.png");
background-image: url("/css/background.png");
}
.page-content {
@@ -15,7 +15,7 @@ body {
box-shadow: 0 2px 100px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
border-radius: 30pt;
background: rgba(255, 255, 255, 0.3);
backdrop-filtbackground: rgba(255, 255, 255, 0.3);
backdrop-filter: rgba(255, 255, 255, 0.3);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
display: grid;

9
front/index.php Normal file → Executable file
View File

@@ -20,8 +20,9 @@ if (!$mcServ->checkConf()) {
}
if (!$mcServ->checkLogin()) {
header("Location: /admin");
exit;
/*header("Location: /login.php");
exit;*/
}else{
echo "true";
}
echo "angemeldet";
}
?>

29
front/login.php Normal file → Executable file
View File

@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mcServ // Login</title>
<link rel="stylesheet" type="text/css" href="css/login.css">
</head>
<body>
<div class="page-content" id="block">
<div class="header">
<h1>mcServControl</h1>
<h2>Login</h2>
</div>
<div class="content">
<form action="/api/setup/setup.php" method="post">
<div id="admin_user" class="page">
<a href="/resetpasswd.php">Forget Passwort</a>
<input type="text" name="username" placeholder="Username" id="user" required><br><br>
<input type="password" name="passwd" placeholder="Password" id="passwd" required><br><br>
<button type="submit">Login</button>
</div>
</form>
</div>
</div>
</body>
</html>

0
front/setup.html Normal file → Executable file
View File

0
front/test.php Normal file → Executable file
View File