- Added a new profile page (my_profil.html) for users to manage their events and personal information. - Introduced a new CSS file (my_profil.css) for styling the profile page. - Created a JavaScript file (my_profil.js) to handle profile data retrieval, event registration management, and form submission. - Updated navigation logic (navigation.js) to dynamically display login/signup or event management links based on user authentication status. - Enhanced event creation and detail pages to support user-specific actions (registration/unregistration). - Improved login and signup processes to handle user data more robustly, including fallback user creation. - Refactored event overview to show user-specific events and registrations. - Added error handling and validation for user input in profile management.
64 lines
2.4 KiB
HTML
64 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Login - Social Cooking</title>
|
|
|
|
<!-- Stylesheet für diese Seite-->
|
|
<link rel="stylesheet" href="css/login_signup.css">
|
|
<!-- Globales Stylesheet -->
|
|
<link rel="stylesheet" href="css/stylesheet_global.css">
|
|
<script src="js/navigation.js" defer></script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
<!-- Top Navigation mit Seitenlinks -->
|
|
<header class="top-nav-wrap">
|
|
<div class="top-nav">
|
|
<a class="brand" href="index.html" aria-label="Zur Startseite">
|
|
<img src="assets/logo_invite.svg" alt="Invite Logo">
|
|
</a>
|
|
<nav class="nav-tab-links" aria-label="Hauptnavigation">
|
|
<a class="button-small auth-nav-button auth-nav-button--active" href="login.html" aria-label="Login" aria-current="page">Login</a>
|
|
<a class="button-small auth-nav-button auth-nav-button--default" href="signup.html" aria-label="Signup">Signup</a>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Main Content -->
|
|
<div class="main-content">
|
|
<div class="container">
|
|
<div class="image-section">
|
|
<img src="assets/cooking.jpg" alt="Social Cooking">
|
|
</div>
|
|
|
|
<div class="form-section">
|
|
<h1>Login</h1>
|
|
|
|
<form id="loginForm">
|
|
<div class="form-group">
|
|
<label for="email">E-Mail</label>
|
|
<input type="email" id="email" name="email" required placeholder="deine.email@example.com">
|
|
<div class="error-message" id="emailError">Bitte gib eine gültige E-Mail Adresse ein.</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="passwort">Passwort</label>
|
|
<input type="password" id="passwort" name="passwort" required placeholder="Gib dein Passwort ein">
|
|
<div class="error-message" id="passwortError">Bitte gib dein Passwort ein.</div>
|
|
</div>
|
|
|
|
<button type="submit" class="button">Login</button>
|
|
|
|
<div class="signup-hint">
|
|
Du hast noch keinen Account? <a href="signup.html">Hier geht es zur Anmeldung.</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div> <!-- Schliesst main-content -->
|
|
<script src="js/login.js"></script>
|
|
</body>
|
|
</html> |