Compare commits
19
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
085fccf217 | ||
|
|
c6690096aa | ||
|
|
f8cba9cfcf | ||
|
|
14ba71eb64 | ||
|
|
c3c51b9ab0 | ||
|
|
87bdd772c0 | ||
|
|
dc8164f898 | ||
|
|
a01d72a716 | ||
|
|
7977792071 | ||
|
|
ce749915ed | ||
|
|
eb02821a93 | ||
|
|
4da3c0741a | ||
|
|
c34fdd250c | ||
|
|
234f4dd97d | ||
|
|
2acc906140 | ||
|
|
1efc9b2448 | ||
|
|
b8ea3975ae | ||
|
|
f97009124f | ||
|
|
6ea8a28464 |
No files matched your search
BIN
Binary file not shown.
|
After Width: | Height: | Size: 134 KiB |
@@ -0,0 +1,54 @@
|
|||||||
|
:root {
|
||||||
|
--black: #000;
|
||||||
|
--white: #fff;
|
||||||
|
--gray-bg: #f4f4f4;
|
||||||
|
--border: 1px solid #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
body { font-family: Arial, sans-serif; margin: 0; padding: 0; }
|
||||||
|
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
|
||||||
|
|
||||||
|
/* Navbar & Filter */
|
||||||
|
.navbar { display: flex; justify-content: space-between; padding: 20px 5%; border-bottom: var(--border); }
|
||||||
|
.category-group { display: flex; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
|
||||||
|
.category-item { cursor: pointer; text-align: center; font-size: 11px; font-weight: bold; }
|
||||||
|
.square { width: 50px; height: 50px; border: var(--border); margin-bottom: 5px; }
|
||||||
|
.category-item.active .square { background: var(--black); }
|
||||||
|
|
||||||
|
/* Event Cards */
|
||||||
|
.event-list { display: flex; flex-direction: column; gap: 20px; }
|
||||||
|
.event-card {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 200px 1fr 150px 150px 50px;
|
||||||
|
border: var(--border);
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.event-image { height: 150px; background-size: cover; background-position: center; border-right: var(--border); }
|
||||||
|
.event-content, .event-info, .event-cta { padding: 15px; }
|
||||||
|
.tag { border: var(--border); padding: 3px 10px; border-radius: 15px; font-size: 10px; margin-right: 5px; }
|
||||||
|
.btn-primary { background: var(--black); color: var(--white); border: none; padding: 10px; width: 100%; cursor: pointer; font-weight: bold; }
|
||||||
|
|
||||||
|
/* Empty State Style */
|
||||||
|
.empty-state {
|
||||||
|
text-align: center;
|
||||||
|
padding: 50px 20px;
|
||||||
|
border: 2px dashed #ccc;
|
||||||
|
background: var(--gray-bg);
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
.btn-outline {
|
||||||
|
background: transparent;
|
||||||
|
border: 2px solid var(--black);
|
||||||
|
padding: 12px 25px;
|
||||||
|
font-weight: bold;
|
||||||
|
cursor: pointer;
|
||||||
|
margin-top: 15px;
|
||||||
|
transition: 0.3s;
|
||||||
|
}
|
||||||
|
.btn-outline:hover { background: var(--black); color: var(--white); }
|
||||||
|
|
||||||
|
/* Responsive */
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.event-card { grid-template-columns: 1fr; }
|
||||||
|
.event-image { border-right: none; border-bottom: var(--border); width: 100%; }
|
||||||
|
}
|
||||||
Whitespace-only changes.
@@ -0,0 +1,38 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"title": "Italienische Tavolata",
|
||||||
|
"location": "LUZERN",
|
||||||
|
"date": "19. MÄR. 2026",
|
||||||
|
"time": "18:30 UHR",
|
||||||
|
"category": "DINNER",
|
||||||
|
"cuisine": "ITALIENISCH",
|
||||||
|
"diet": "VEGGIE",
|
||||||
|
"spots": 4,
|
||||||
|
"image": "https://via.placeholder.com/300x200"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"title": "Noche Peruana",
|
||||||
|
"location": "LUZERN",
|
||||||
|
"date": "11. APR. 2026",
|
||||||
|
"time": "19:00 UHR",
|
||||||
|
"category": "DINNER",
|
||||||
|
"cuisine": "PERUANISCH",
|
||||||
|
"diet": "FLEISCH",
|
||||||
|
"spots": 2,
|
||||||
|
"image": "https://via.placeholder.com/300x200"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"title": "Japanese Delight",
|
||||||
|
"location": "ZÜRICH",
|
||||||
|
"date": "02. MAI. 2026",
|
||||||
|
"time": "12:30 UHR",
|
||||||
|
"category": "LUNCH",
|
||||||
|
"cuisine": "JAPANISCH",
|
||||||
|
"diet": "FISCH",
|
||||||
|
"spots": 8,
|
||||||
|
"image": "https://via.placeholder.com/300x200"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -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>Event-Detail</title>
|
||||||
|
<link rel="stylesheet" href="css/event_overview_stylesheet.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<header class="navbar">
|
||||||
|
<div class="logo">SOCIAL COOKING</div>
|
||||||
|
<nav>
|
||||||
|
<a href="index.html">Events</a>
|
||||||
|
<div class="user-profile">M</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="container">
|
||||||
|
<div id="detail-view">
|
||||||
|
<p>Lädt Event-Details...</p>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script src="js/event_overview_script.js"></script>
|
||||||
|
<script src="js/event_detail.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Event-Overview</title>
|
||||||
|
<link rel="stylesheet" href="css/event_overview_stylesheet.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header class="navbar">
|
||||||
|
<div class="logo">SOCIAL COOKING</div>
|
||||||
|
<nav>
|
||||||
|
<span>Events</span>
|
||||||
|
<div class="user-profile">M</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="container">
|
||||||
|
<h1>Invité Events</h1>
|
||||||
|
|
||||||
|
<section class="filter-section">
|
||||||
|
<p class="filter-label">WORAUF HAST DU LUST</p>
|
||||||
|
<div class="category-group">
|
||||||
|
<div class="category-item" data-cat="BRUNCH"><div class="square"></div><span>BRUNCH</span></div>
|
||||||
|
<div class="category-item" data-cat="LUNCH"><div class="square"></div><span>LUNCH</span></div>
|
||||||
|
<div class="category-item" data-cat="DINNER"><div class="square"></div><span>DINNER</span></div>
|
||||||
|
<div class="category-item" data-cat="COFFEE"><div class="square"></div><span>COFFEE</span></div>
|
||||||
|
<div class="category-item active" data-cat="ALLE"><div class="square"></div><span>ALLE</span></div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section id="event-grid" class="event-list"></section>
|
||||||
|
</main>
|
||||||
|
<script src="js/event_overview_script.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
-12
@@ -1,12 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Document</title>
|
|
||||||
<link rel="stylesheet" href="stylesheet.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
const prevBtn = document.querySelector('.arrow--prev');
|
||||||
|
const nextBtn = document.querySelector('.arrow--next');
|
||||||
|
const items = Array.from(document.querySelectorAll('.gallery__item'));
|
||||||
|
let activeIndex = 0;
|
||||||
|
|
||||||
|
function updateGallery() {
|
||||||
|
items.forEach((item, i) => {
|
||||||
|
item.style.opacity = i === activeIndex ? '1' : '0.35';
|
||||||
|
item.style.transform = i === activeIndex ? 'scale(1)' : 'scale(0.95)';
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function showNext() {
|
||||||
|
activeIndex = (activeIndex + 1) % items.length;
|
||||||
|
updateGallery();
|
||||||
|
}
|
||||||
|
|
||||||
|
function showPrev() {
|
||||||
|
activeIndex = (activeIndex - 1 + items.length) % items.length;
|
||||||
|
updateGallery();
|
||||||
|
}
|
||||||
|
|
||||||
|
nextBtn.addEventListener('click', showNext);
|
||||||
|
prevBtn.addEventListener('click', showPrev);
|
||||||
|
|
||||||
|
// keyboard support
|
||||||
|
document.addEventListener('keydown', (event) => {
|
||||||
|
if (event.key === 'ArrowRight') {
|
||||||
|
showNext();
|
||||||
|
}
|
||||||
|
if (event.key === 'ArrowLeft') {
|
||||||
|
showPrev();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
updateGallery();
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
document.addEventListener('DOMContentLoaded', async () => {
|
||||||
|
const detailContainer = document.getElementById('detail-view');
|
||||||
|
|
||||||
|
// 1. ID aus der URL lesen (z.B. detail.html?id=1)
|
||||||
|
const params = new URLSearchParams(window.location.search);
|
||||||
|
const eventId = parseInt(params.get('id'));
|
||||||
|
|
||||||
|
if (!eventId) {
|
||||||
|
window.location.href = 'event_overview.html';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 2. Daten laden und das richtige Event suchen
|
||||||
|
try {
|
||||||
|
const response = await fetch('data/events.json');
|
||||||
|
const allEvents = await response.json();
|
||||||
|
const event = allEvents.find(e => e.id === eventId);
|
||||||
|
|
||||||
|
if (event) {
|
||||||
|
renderDetailPage(event);
|
||||||
|
} else {
|
||||||
|
detailContainer.innerHTML = "<h1>Event wurde nicht gefunden.</h1><a href='event_overview.html'>Zurück zur Übersicht</a>";
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Fehler beim Laden der Details:", error);
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderDetailPage(event) {
|
||||||
|
//Layout Deatilseite der Events mit Rücklink zur Übersicht, Eventtitel, Infos und Bild
|
||||||
|
detailContainer.innerHTML = `
|
||||||
|
<div class="detail-header">
|
||||||
|
<a href="event_overview.html" style="text-decoration:none; color:black; font-size:24px;">←</a>
|
||||||
|
<h1>${event.title}</h1>
|
||||||
|
</div>
|
||||||
|
<div class="detail-grid">
|
||||||
|
<div class="info-section">
|
||||||
|
<p>📍 ${event.location} | 📅 ${event.date} | 👤 Max. ${event.spots} Personen</p>
|
||||||
|
<hr>
|
||||||
|
<p>Hier kommen die detaillierten Infos zu ${event.title} hin...</p>
|
||||||
|
</div>
|
||||||
|
<div class="image-section">
|
||||||
|
<img src="${event.image}" alt="${event.title}" style="width:100%;">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
});
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
const eventGrid = document.getElementById('event-grid');
|
||||||
|
const filterButtons = document.querySelectorAll('.category-item');
|
||||||
|
let allEvents = [];
|
||||||
|
|
||||||
|
// 1. Daten laden aus JSOn file
|
||||||
|
async function fetchEvents() {
|
||||||
|
try {
|
||||||
|
// Pfad zu JSON File angepasst an lokale Ordnerstruktur
|
||||||
|
const response = await fetch('data/events.json');
|
||||||
|
allEvents = await response.json();
|
||||||
|
renderEvents(allEvents);
|
||||||
|
|
||||||
|
// Beim Laden prüfen, ob ein Filter gespeichert war
|
||||||
|
const savedFilter = sessionStorage.getItem('activeFilter') || 'ALLE';
|
||||||
|
applyFilter(savedFilter);
|
||||||
|
|
||||||
|
//checked ob Fehler beim Laden oder Parsen der Daten auftreten
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Fehler:", error);
|
||||||
|
eventGrid.innerHTML = "<p>Events konnten nicht geladen werden.</p>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Funktion um Filter anzuwenden und gleichzeitig UI zu aktualisieren
|
||||||
|
function applyFilter(category) {
|
||||||
|
|
||||||
|
// UI: Aktiven Button stylen
|
||||||
|
filterButtons.forEach(btn => {
|
||||||
|
if (btn.getAttribute('data-cat') === category) {
|
||||||
|
btn.classList.add('active');
|
||||||
|
} else {
|
||||||
|
btn.classList.remove('active');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Daten filtern
|
||||||
|
const filtered = category === 'ALLE'
|
||||||
|
? allEvents
|
||||||
|
: allEvents.filter(e => e.category === category);
|
||||||
|
|
||||||
|
renderEvents(filtered);
|
||||||
|
|
||||||
|
//Filter im Browser merken
|
||||||
|
sessionStorage.setItem('activeFilter', category);
|
||||||
|
|
||||||
|
}
|
||||||
|
// 2. Events rendern + "Empty State" Logik
|
||||||
|
function renderEvents(events) {
|
||||||
|
eventGrid.innerHTML = '';
|
||||||
|
|
||||||
|
// PRÜFUNG: Wenn keine Events vorhanden sind zeigt folgende Nachricht
|
||||||
|
if (events.length === 0) {
|
||||||
|
eventGrid.innerHTML = `
|
||||||
|
<div class="empty-state">
|
||||||
|
<h3>Schade! Aktuell gibt es hier keine Events.</h3>
|
||||||
|
<p>Möchtest du vielleicht selbst Gastgeber sein?</p>
|
||||||
|
<button class="btn-outline" onclick="alert('Hier gehts zum Formular!')">Eigenes Event erstellen</button>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Wenn Events da sind, Karten bauen
|
||||||
|
events.forEach(event => {
|
||||||
|
const card = document.createElement('article');
|
||||||
|
card.className = 'event-card';
|
||||||
|
|
||||||
|
//Klick auf die gesamte Karte leitet zur Detailseite weiter
|
||||||
|
card.style.cursor = "pointer";
|
||||||
|
card.onclick = () => {
|
||||||
|
window.location.href = `event_detail.html?id=${event.id}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
//internes HTML im Js zur Styling der Event-Karte (HIER CHECKEN OB SO OK NACH CLEAN CODE)
|
||||||
|
card.innerHTML = `
|
||||||
|
<div class="event-image" style="background-image: url('${event.image}')"></div>
|
||||||
|
<div class="event-content">
|
||||||
|
<small>📍 ${event.location}</small>
|
||||||
|
<h2 style="margin: 5px 0;">${event.title}</h2>
|
||||||
|
<div>
|
||||||
|
<span class="tag">${event.cuisine}</span>
|
||||||
|
<span class="tag">${event.category}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="event-info">
|
||||||
|
<strong>${event.date}</strong><br>
|
||||||
|
<span>🕒 ${event.time}</span>
|
||||||
|
</div>
|
||||||
|
<div class="event-cta">
|
||||||
|
<div style="font-size: 12px; margin-bottom: 8px;">🥗 ${event.diet}</div>
|
||||||
|
<button class="btn-primary">Anmelden</button>
|
||||||
|
<p style="font-size: 10px; margin-top: 8px;">${event.spots} PLÄTZE FREI</p>
|
||||||
|
</div>
|
||||||
|
<div style="text-align: center;">❤️</div>
|
||||||
|
`;
|
||||||
|
eventGrid.appendChild(card);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 3. Filter-Logik basic anhand der Kategorien im JSON File
|
||||||
|
filterButtons.forEach(button => {
|
||||||
|
button.addEventListener('click', () => {
|
||||||
|
const selectedCat = button.getAttribute('data-cat');
|
||||||
|
applyFilter(selectedCat);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
fetchEvents();
|
||||||
|
});
|
||||||
Whitespace-only changes.
+573
@@ -0,0 +1,573 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Kontaktseite - Invité</title>
|
||||||
|
<link rel="stylesheet" href="stylesheet.css">
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 100vh;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header Styles */
|
||||||
|
.header {
|
||||||
|
background-color: white;
|
||||||
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
||||||
|
padding: 15px 30px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-logo {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #0084ff;
|
||||||
|
text-decoration: none;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: 15px;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn {
|
||||||
|
padding: 10px 20px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
text-decoration: none;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn-secondary {
|
||||||
|
background-color: transparent;
|
||||||
|
color: #0084ff;
|
||||||
|
border: 2px solid #0084ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn-secondary:hover {
|
||||||
|
background-color: #0084ff;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn-primary {
|
||||||
|
background-color: #0084ff;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn-primary:hover {
|
||||||
|
background-color: #0073e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Main content wrapper */
|
||||||
|
.main-content {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex: 1;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
background-color: white;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||||
|
max-width: 1000px;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
gap: 20px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-section {
|
||||||
|
flex: 1;
|
||||||
|
background-color: #e8f4f8;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-section img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-section {
|
||||||
|
flex: 1;
|
||||||
|
padding: 40px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.container {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-section {
|
||||||
|
min-height: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-buttons {
|
||||||
|
width: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-box {
|
||||||
|
background-color: #e8f4f8;
|
||||||
|
border-left: 4px solid #0084ff;
|
||||||
|
padding: 15px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #333;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
color: #333;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="text"],
|
||||||
|
input[type="email"],
|
||||||
|
input[type="password"] {
|
||||||
|
width: 100%;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: border-color 0.3s ease;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="text"]:focus,
|
||||||
|
input[type="email"]:focus,
|
||||||
|
input[type="password"]:focus {
|
||||||
|
outline: none;
|
||||||
|
border-color: #0084ff;
|
||||||
|
box-shadow: 0 0 5px rgba(0, 132, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
width: 100%;
|
||||||
|
padding: 12px;
|
||||||
|
background-color: #0084ff;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background-color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
background-color: #0073e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:active {
|
||||||
|
background-color: #0063cc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-hint {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
color: #666;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-hint a {
|
||||||
|
color: #0084ff;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: bold;
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-hint a:hover {
|
||||||
|
color: #0073e6;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message {
|
||||||
|
color: #d32f2f;
|
||||||
|
font-size: 13px;
|
||||||
|
margin-top: 5px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group.has-error input {
|
||||||
|
border-color: #d32f2f;
|
||||||
|
box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group.has-error .error-message {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Modal Styles */
|
||||||
|
.modal {
|
||||||
|
display: none;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 1000;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: rgba(0, 0, 0, 0.4);
|
||||||
|
animation: fadeIn 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal.show {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content {
|
||||||
|
background-color: white;
|
||||||
|
padding: 40px;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
||||||
|
max-width: 500px;
|
||||||
|
width: 90%;
|
||||||
|
text-align: center;
|
||||||
|
animation: slideIn 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideIn {
|
||||||
|
from {
|
||||||
|
transform: translateY(-50px);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header h2 {
|
||||||
|
color: #0084ff;
|
||||||
|
font-size: 24px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-btn {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
font-size: 28px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #999;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-btn:hover {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-body {
|
||||||
|
color: #333;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.6;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer button {
|
||||||
|
padding: 10px 30px;
|
||||||
|
font-size: 14px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background-color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer .btn-primary {
|
||||||
|
background-color: #0084ff;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer .btn-primary:hover {
|
||||||
|
background-color: #0073e6;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- Header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="header-logo">Invité</div>
|
||||||
|
<div class="header-buttons">
|
||||||
|
<button class="header-btn header-btn-secondary">Event finden</button>
|
||||||
|
<a href="login.html" class="header-btn header-btn-primary">Login</a>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Main Content -->
|
||||||
|
<div class="main-content">
|
||||||
|
<div class="container">
|
||||||
|
<div class="image-section">
|
||||||
|
<img src="cooking.jpg" alt="Social Cooking">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-section">
|
||||||
|
<h1>Erstelle deinen Account</h1>
|
||||||
|
|
||||||
|
<div class="info-box">
|
||||||
|
<strong>Hinweis:</strong> Sichtbar auf der Plattform ist nur der Vorname, erst einer Anmeldung zum Event ist der Nachname für die Teilnehmenden sichtbar.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<form id="signupForm">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="vorname">Vorname *</label>
|
||||||
|
<input type="text" id="vorname" name="vorname" required placeholder="Dein Vorname">
|
||||||
|
<div class="error-message" id="vornameError">Bitte gib deinen Vornamen ein.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="nachname">Nachname *</label>
|
||||||
|
<input type="text" id="nachname" name="nachname" required placeholder="Dein Nachname">
|
||||||
|
<div class="error-message" id="nachnameError">Bitte gib deinen Nachnamen ein.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="email">E-Mail Adresse *</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="Mindestens 8 Zeichen">
|
||||||
|
<div class="error-message" id="passwortError">Dein Passwort muss mindestens 8 Zeichen lang sein.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button type="submit">Konto erstellen</button>
|
||||||
|
|
||||||
|
<div class="login-hint">
|
||||||
|
Du hast bereits einen Account? <a href="login.html">Hier geht's zum Log-in</a>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- Schließt main-content -->
|
||||||
|
|
||||||
|
<!-- Welcome Modal -->
|
||||||
|
<div id="welcomeModal" class="modal">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button class="close-btn" onclick="closeWelcomeModal()">×</button>
|
||||||
|
<h2>🎉 Willkommen bei Invité!</h2>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
Hier findest du die Übersicht zu den aktuellsten Events.
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button class="btn-primary" onclick="closeWelcomeModal()">Weiter zu den Events</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const signupForm = document.getElementById('signupForm');
|
||||||
|
const vornameInput = document.getElementById('vorname');
|
||||||
|
const nachnameInput = document.getElementById('nachname');
|
||||||
|
const emailInput = document.getElementById('email');
|
||||||
|
const passwortInput = document.getElementById('passwort');
|
||||||
|
const welcomeModal = document.getElementById('welcomeModal');
|
||||||
|
|
||||||
|
// Funktion zum Öffnen des Welcome Modals
|
||||||
|
function openWelcomeModal() {
|
||||||
|
welcomeModal.classList.add('show');
|
||||||
|
document.body.style.overflow = 'hidden';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Funktion zum Schließen des Welcome Modals
|
||||||
|
function closeWelcomeModal() {
|
||||||
|
welcomeModal.classList.remove('show');
|
||||||
|
document.body.style.overflow = 'auto';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Validierungsfunktion
|
||||||
|
function validateForm(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
let isValid = true;
|
||||||
|
|
||||||
|
// Vorname-Validierung
|
||||||
|
const vornameValue = vornameInput.value.trim();
|
||||||
|
const vornameGroup = vornameInput.parentElement;
|
||||||
|
|
||||||
|
if (!vornameValue) {
|
||||||
|
vornameGroup.classList.add('has-error');
|
||||||
|
isValid = false;
|
||||||
|
} else {
|
||||||
|
vornameGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Nachname-Validierung
|
||||||
|
const nachnameValue = nachnameInput.value.trim();
|
||||||
|
const nachnameGroup = nachnameInput.parentElement;
|
||||||
|
|
||||||
|
if (!nachnameValue) {
|
||||||
|
nachnameGroup.classList.add('has-error');
|
||||||
|
isValid = false;
|
||||||
|
} else {
|
||||||
|
nachnameGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Email-Validierung
|
||||||
|
const emailValue = emailInput.value.trim();
|
||||||
|
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
||||||
|
const emailGroup = emailInput.parentElement;
|
||||||
|
|
||||||
|
if (!emailValue) {
|
||||||
|
emailGroup.classList.add('has-error');
|
||||||
|
document.getElementById('emailError').textContent = 'Bitte gib deine E-Mail Adresse ein.';
|
||||||
|
isValid = false;
|
||||||
|
} else if (!emailRegex.test(emailValue)) {
|
||||||
|
emailGroup.classList.add('has-error');
|
||||||
|
document.getElementById('emailError').textContent = 'Bitte gib eine gültige E-Mail Adresse ein.';
|
||||||
|
isValid = false;
|
||||||
|
} else {
|
||||||
|
emailGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Passwort-Validierung
|
||||||
|
const passwortValue = passwortInput.value;
|
||||||
|
const passwortGroup = passwortInput.parentElement;
|
||||||
|
|
||||||
|
if (!passwortValue) {
|
||||||
|
passwortGroup.classList.add('has-error');
|
||||||
|
document.getElementById('passwortError').textContent = 'Bitte gib ein Passwort ein.';
|
||||||
|
isValid = false;
|
||||||
|
} else if (passwortValue.length < 8) {
|
||||||
|
passwortGroup.classList.add('has-error');
|
||||||
|
document.getElementById('passwortError').textContent = 'Dein Passwort muss mindestens 8 Zeichen lang sein.';
|
||||||
|
isValid = false;
|
||||||
|
} else {
|
||||||
|
passwortGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Wenn alle Validierungen bestanden, Modal anzeigen
|
||||||
|
if (isValid) {
|
||||||
|
openWelcomeModal();
|
||||||
|
// Hier würde später die Registrierung zum Backend gesendet
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fehlerbehandlung bei Input-Änderung (entfernt Fehler wenn Benutzer korrigiert)
|
||||||
|
vornameInput.addEventListener('input', function() {
|
||||||
|
const vornameGroup = this.parentElement;
|
||||||
|
if (this.value.trim()) {
|
||||||
|
vornameGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
nachnameInput.addEventListener('input', function() {
|
||||||
|
const nachnameGroup = this.parentElement;
|
||||||
|
if (this.value.trim()) {
|
||||||
|
nachnameGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
emailInput.addEventListener('input', function() {
|
||||||
|
const emailGroup = this.parentElement;
|
||||||
|
if (this.value.trim()) {
|
||||||
|
emailGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
passwortInput.addEventListener('input', function() {
|
||||||
|
const passwortGroup = this.parentElement;
|
||||||
|
if (this.value) {
|
||||||
|
passwortGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Modal schließen wenn außerhalb geklickt wird
|
||||||
|
welcomeModal.addEventListener('click', function(event) {
|
||||||
|
if (event.target === welcomeModal) {
|
||||||
|
closeWelcomeModal();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Form Submit Event
|
||||||
|
signupForm.addEventListener('submit', validateForm);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Social Cooking Wireframe</title>
|
||||||
|
<link rel="stylesheet" href="stylesheet.css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="page-wrapper">
|
||||||
|
<header class="header">
|
||||||
|
<div class="header__brand">LOGO</div>
|
||||||
|
|
||||||
|
<div class="header__actions">
|
||||||
|
<nav class="nav">
|
||||||
|
<a class="nav__link btn btn--outline" href="#">Event finden</a>
|
||||||
|
</nav>
|
||||||
|
<button class="btn btn--outline" type="button">Login</button>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="main-content">
|
||||||
|
<section class="hero">
|
||||||
|
<div class="hero__left">
|
||||||
|
<h1 class="hero__title">Zu Tisch mit Fremden – bereit für die nächste kulinarische Begegnung?</h1>
|
||||||
|
<p class="hero__description">Dein Ort um neue Leute kennen zu lernen! Erstelle eigene Events und lade Gäste zu dir nach Hause ein.</p>
|
||||||
|
<button class="btn btn--primary" type="button">Anmelden</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="hero__right">
|
||||||
|
<div class="image-card">
|
||||||
|
<div class="image-card__placeholder"></div>
|
||||||
|
<div class="social-badge">
|
||||||
|
<span class="social-badge__dot"></span>
|
||||||
|
<span class="social-badge__dot"></span>
|
||||||
|
<span class="social-badge__dot"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="gallery">
|
||||||
|
<div class="gallery__controls">
|
||||||
|
<button class="arrow"><</button>
|
||||||
|
<button class="arrow">></button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="gallery__track">
|
||||||
|
<article class="gallery__item">
|
||||||
|
<div class="placeholder"></div>
|
||||||
|
</article>
|
||||||
|
<article class="gallery__item">
|
||||||
|
<div class="placeholder"></div>
|
||||||
|
</article>
|
||||||
|
<article class="gallery__item">
|
||||||
|
<div class="placeholder"></div>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="gallery__info">
|
||||||
|
<div class="profile-badge"></div>
|
||||||
|
<div class="gallery__handle">@social_cooking</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
+358
@@ -0,0 +1,358 @@
|
|||||||
|
<!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>
|
||||||
|
<link rel="stylesheet" href="stylesheet.css">
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 100vh;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header Styles */
|
||||||
|
.header {
|
||||||
|
background-color: white;
|
||||||
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
||||||
|
padding: 15px 30px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-logo {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #0084ff;
|
||||||
|
text-decoration: none;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: 15px;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn {
|
||||||
|
padding: 10px 20px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
text-decoration: none;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn-secondary {
|
||||||
|
background-color: transparent;
|
||||||
|
color: #0084ff;
|
||||||
|
border: 2px solid #0084ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn-secondary:hover {
|
||||||
|
background-color: #0084ff;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn-primary {
|
||||||
|
background-color: #0084ff;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn-primary:hover {
|
||||||
|
background-color: #0073e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Main content wrapper */
|
||||||
|
.main-content {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex: 1;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
background-color: white;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||||
|
max-width: 1000px;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
gap: 20px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-section {
|
||||||
|
flex: 1;
|
||||||
|
background-color: #e8f4f8;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-section img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-section {
|
||||||
|
flex: 1;
|
||||||
|
padding: 40px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.container {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-section {
|
||||||
|
min-height: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-buttons {
|
||||||
|
width: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-btn {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
color: #333;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="email"],
|
||||||
|
input[type="password"] {
|
||||||
|
width: 100%;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: border-color 0.3s ease;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="email"]:focus,
|
||||||
|
input[type="password"]:focus {
|
||||||
|
outline: none;
|
||||||
|
border-color: #0084ff;
|
||||||
|
box-shadow: 0 0 5px rgba(0, 132, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
width: 100%;
|
||||||
|
padding: 12px;
|
||||||
|
background-color: #0084ff;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background-color 0.3s ease;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
background-color: #0073e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:active {
|
||||||
|
background-color: #0063cc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.signup-hint {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
color: #666;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.signup-hint a {
|
||||||
|
color: #0084ff;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: bold;
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.signup-hint a:hover {
|
||||||
|
color: #0073e6;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message {
|
||||||
|
color: #d32f2f;
|
||||||
|
font-size: 13px;
|
||||||
|
margin-top: 5px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group.has-error input {
|
||||||
|
border-color: #d32f2f;
|
||||||
|
box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group.has-error .error-message {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- Header -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="header-logo">Invité</div>
|
||||||
|
<div class="header-buttons">
|
||||||
|
<button class="header-btn header-btn-secondary">Event finden</button>
|
||||||
|
<a href="kontakt.html" class="header-btn header-btn-primary">Anmeldung</a>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Main Content -->
|
||||||
|
<div class="main-content">
|
||||||
|
<div class="container">
|
||||||
|
<div class="image-section">
|
||||||
|
<img src="cooking.jpg" alt="Social Cooking">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-section">
|
||||||
|
<h1>Willkommen zurück</h1>
|
||||||
|
|
||||||
|
<form id="loginForm">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="email">Deine E-Mail Adresse *</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">Dein 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">Login</button>
|
||||||
|
|
||||||
|
<div class="signup-hint">
|
||||||
|
Du hast noch keinen Account? <a href="kontakt.html">Hier geht es zur Anmeldung</a>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- Schließt main-content -->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const loginForm = document.getElementById('loginForm');
|
||||||
|
const emailInput = document.getElementById('email');
|
||||||
|
const passwortInput = document.getElementById('passwort');
|
||||||
|
const emailError = document.getElementById('emailError');
|
||||||
|
const passwortError = document.getElementById('passwortError');
|
||||||
|
|
||||||
|
// Validierungsfunktion
|
||||||
|
function validateForm(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
let isValid = true;
|
||||||
|
|
||||||
|
// Email-Validierung
|
||||||
|
const emailValue = emailInput.value.trim();
|
||||||
|
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
||||||
|
const emailGroup = emailInput.parentElement;
|
||||||
|
|
||||||
|
if (!emailValue) {
|
||||||
|
emailGroup.classList.add('has-error');
|
||||||
|
emailError.textContent = 'Bitte gib deine E-Mail Adresse ein.';
|
||||||
|
isValid = false;
|
||||||
|
} else if (!emailRegex.test(emailValue)) {
|
||||||
|
emailGroup.classList.add('has-error');
|
||||||
|
emailError.textContent = 'Bitte gib eine gültige E-Mail Adresse ein.';
|
||||||
|
isValid = false;
|
||||||
|
} else {
|
||||||
|
emailGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Passwort-Validierung
|
||||||
|
const passwortValue = passwortInput.value;
|
||||||
|
const passwortGroup = passwortInput.parentElement;
|
||||||
|
|
||||||
|
if (!passwortValue) {
|
||||||
|
passwortGroup.classList.add('has-error');
|
||||||
|
passwortError.textContent = 'Bitte gib dein Passwort ein.';
|
||||||
|
isValid = false;
|
||||||
|
} else if (passwortValue.length < 6) {
|
||||||
|
passwortGroup.classList.add('has-error');
|
||||||
|
passwortError.textContent = 'Dein Passwort ist zu kurz. Bitte überprüfe dein Passwort.';
|
||||||
|
isValid = false;
|
||||||
|
} else {
|
||||||
|
passwortGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Wenn alle Validierungen bestanden, Form absenden (hier kannst du später Backend Integration vornehmen)
|
||||||
|
if (isValid) {
|
||||||
|
alert('Login erfolgreich! (Dies ist eine Demo)');
|
||||||
|
// Hier würde später die Anmeldung zum Backend gesendet
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fehlerbehandlung bei Input-Änderung (entfernt Fehler wenn Benutzer korrigiert)
|
||||||
|
emailInput.addEventListener('input', function() {
|
||||||
|
const emailGroup = this.parentElement;
|
||||||
|
if (this.value.trim()) {
|
||||||
|
emailGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
passwortInput.addEventListener('input', function() {
|
||||||
|
const passwortGroup = this.parentElement;
|
||||||
|
if (this.value) {
|
||||||
|
passwortGroup.classList.remove('has-error');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Form Submit Event
|
||||||
|
loginForm.addEventListener('submit', validateForm);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
* { box-sizing: border-box; }
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--black: #000000;
|
||||||
|
--white: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-family: 'Inter', sans-serif;
|
||||||
|
background: #f5f5f5; /* Light grey background to see the white page-wrapper */
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-wrapper {
|
||||||
|
max-width: 1440px;
|
||||||
|
margin: 0 auto;
|
||||||
|
background: var(--white);
|
||||||
|
padding: 40px;
|
||||||
|
border: 1px solid var(--black);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Layout logic */
|
||||||
|
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
|
||||||
|
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
|
||||||
|
.gallery__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
|
||||||
|
|
||||||
|
/* The "X" Box Logic - IMPORTANT */
|
||||||
|
.image-card__placeholder, .placeholder {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
min-height: 250px; /* Ensures the box has height */
|
||||||
|
position: relative; /* REQUIRED for the X lines to stay inside */
|
||||||
|
border: 1px solid var(--black);
|
||||||
|
background: var(--white);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Creating the diagonal lines */
|
||||||
|
.image-card__placeholder::before, .image-card__placeholder::after,
|
||||||
|
.placeholder::before, .placeholder::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0; left: 0; right: 0; bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-card__placeholder::before, .placeholder::before {
|
||||||
|
background: linear-gradient(to top left, transparent 49.5%, var(--black) 49.5%, var(--black) 50.5%, transparent 50.5%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-card__placeholder::after, .placeholder::after {
|
||||||
|
background: linear-gradient(to top right, transparent 49.5%, var(--black) 49.5%, var(--black) 50.5%, transparent 50.5%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Badges and Buttons */
|
||||||
|
.social-badge {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10px; right: 10px;
|
||||||
|
background: var(--white);
|
||||||
|
border: 1px solid var(--black);
|
||||||
|
padding: 5px;
|
||||||
|
display: flex; gap: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-badge__dot { width: 12px; height: 12px; background: var(--black); border-radius: 50%; }
|
||||||
|
|
||||||
|
.profile-badge {
|
||||||
|
width: 60px; height: 60px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid var(--black);
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user