mirror of
https://github.com/Matewoo/pdf-writer.git
synced 2026-11-18 18:42:50 +01:00
new login page in app design
This commit is contained in:
+49
-11
@@ -3,54 +3,85 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Login</title>
|
<title>Speiseplan Login</title>
|
||||||
|
<meta name="google" content="notranslate">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
<style>
|
<style>
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
body {
|
body {
|
||||||
font-family: 'Fira Sans', sans-serif;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: #f0f0f0;
|
|
||||||
}
|
}
|
||||||
.login-container {
|
.login-container {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 20px;
|
padding: 30px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||||
|
max-width: 400px;
|
||||||
|
width: 100%;
|
||||||
|
max-height: 90vh;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
.login-container h1 {
|
.login-container h1 {
|
||||||
|
color: #a81411;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
.login-container input {
|
.login-container input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10px;
|
padding: 12px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 15px;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
font-family: 'Fira Sans', sans-serif;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.login-container button {
|
.login-container button {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10px;
|
padding: 12px;
|
||||||
background-color: #a81411;
|
background-color: #a81411;
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
font-family: 'Fira Sans', sans-serif;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 16px;
|
||||||
|
transition: background-color 0.3s;
|
||||||
}
|
}
|
||||||
.login-container button:hover {
|
.login-container button:hover {
|
||||||
background-color: #8e1210;
|
background-color: #8e1210;
|
||||||
}
|
}
|
||||||
|
.telc-logo {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.telc-logo img {
|
||||||
|
max-width: 150px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="login-container">
|
<div class="login-container">
|
||||||
<h1>Login</h1>
|
<div class="telc-logo">
|
||||||
|
<img src="/resources/img/telc-logo.png" alt="telc Logo" onerror="this.style.display='none'">
|
||||||
|
</div>
|
||||||
|
<h1>Speiseplan Login</h1>
|
||||||
<input type="text" id="username" placeholder="Benutzername">
|
<input type="text" id="username" placeholder="Benutzername">
|
||||||
<input type="password" id="password" placeholder="Passwort">
|
<input type="password" id="password" placeholder="Passwort">
|
||||||
<button onclick="login()">Login</button>
|
<button onclick="login()">Anmelden</button>
|
||||||
<p id="error-message" style="color: red; display: none;">Login fehlgeschlagen. Bitte versuchen Sie es erneut.</p>
|
<p id="error-message" style="color: #a81411; text-align: center; display: none; margin-top: 15px; font-weight: 500;">
|
||||||
|
Login fehlgeschlagen. Bitte versuchen Sie es erneut.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
function login() {
|
function login() {
|
||||||
@@ -77,6 +108,13 @@
|
|||||||
document.getElementById('error-message').style.display = 'block';
|
document.getElementById('error-message').style.display = 'block';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tastaturereignis für Enter-Taste hinzufügen
|
||||||
|
document.getElementById('password').addEventListener('keyup', function(event) {
|
||||||
|
if (event.key === 'Enter') {
|
||||||
|
login();
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user