Untitled
unknown
html
a year ago
3.4 kB
7
No Index
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login Page</title> <link rel="stylesheet" href="stylelogin.css"> </head> <body> <div class="login-container"> <div class="logo-container"> <img class="logo" src="SLP logo.png" alt="Logo"> </div> <h2>Sunday Late Project</h2> <form class="login-form" action="index.html" method="get"> <input type="text" name="email" placeholder="E-Mail" required> <input type="password" name="password" placeholder="Passwort" required> <input type="submit" value="Einloggen"> <input type="submit" value="Registrieren"> </form> <div class="forgot-password"> <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">Passwort vergessen?</a> <!-- Muss noch implementiert werden (Sprint 2/3)--> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r121/three.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script> <script> /* animierter Hintergrund */ document.addEventListener("DOMContentLoaded", function(event) { var setVanta = () => { if (window.VANTA) window.VANTA.NET({ el: "body", mouseControls: false, touchControls: false, gyroControls: false, minHeight: 200.00, minWidth: 200.00, scale: 1.00, scaleMobile: 1.00, color: 0x495d82, }); }; setVanta(); window.edit_page.Event.subscribe("Page.beforeNewOneFadeIn", setVanta); }); </script> </body> </html> /* the css file looks like this */ : body { margin: 0; padding: 0; font-family: Arial, sans-serif; height: 100vh; display: flex; align-items: center; justify-content: center; } .login-container { background: rgba(255, 255, 255, 0.8); padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); max-width: 400px; width: 100%; text-align: center; } .login-container h2 { margin-bottom: 20px; } .login-form input[type="text"], .login-form input[type="password"] { width: calc(100% - 22px); /* Adjusted width calculation */ padding: 10px; margin: 10px 0; border: 1px solid #5dabff; border-radius: 5px; } .login-form input[type="submit"] { width: calc(100% - 20px); padding: 10px; margin: 10px 0; border: none; border-radius: 5px; background-color: #007bff; color: #fff; cursor: pointer; } .login-form input[type="submit"]:hover { background-color: #0056b3; } .logo-container { margin-bottom: 20px; position: relative; } .logo { max-width: 200px; border-radius: 50%; overflow: hidden; position: relative; z-index: 1; clip-path: circle(50% at center); /* Apply circular clipping directly to the logo */ } .logo img { width: 100%; height: auto; } .forgot-password { margin-top: 6px; text-align: center; /* Align the link to the right */ font-size: 12px; } .forgot-password a { color: #007bff; text-decoration: none; } .forgot-password a:hover { text-decoration: underline; }
Editor is loading...
Leave a Comment