Compare commits

..

17 Commits

Author SHA1 Message Date
caroschulte02-alt d440b98774 First Implementation 2026-05-13 01:32:52 +02:00
caroschulte02-alt f1feb4677e First Implementation 2026-05-13 01:31:50 +02:00
caroschulte02-alt e7bc5a5709 First Implementation 2026-05-13 01:30:41 +02:00
caroschulte02-alt dfb5076032 First Implementation 2026-05-13 01:29:17 +02:00
caroschulte02-alt 68b6ecdfc3 First Implementation 2026-05-13 01:27:55 +02:00
caroschulte02-alt a3fe501282 First Implementation 2026-05-13 01:26:09 +02:00
caroschulte02-alt 1a80d3576f First Implementation 2026-05-13 01:19:20 +02:00
caroschulte02-alt 60b6449ecd First Implementation 2026-05-13 01:16:05 +02:00
caroschulte02-alt 45924e6cfb First Implementation 2026-05-13 01:12:25 +02:00
caroschulte02-alt cd1512eadf First Implementation 2026-05-13 01:09:44 +02:00
caroschulte02-alt 71fc4c8184 First Implementation 2026-05-13 01:07:02 +02:00
caroschulte02-alt a32b59825e First Implementation 2026-05-13 01:03:48 +02:00
caroschulte02-alt 590ff7d916 First Implementation 2026-05-13 01:01:53 +02:00
caroschulte02-alt 51093d4995 First Implementation 2026-05-13 00:59:45 +02:00
caroschulte02-alt c6e7cdf95c First Implementation 2026-05-13 00:56:04 +02:00
caroschulte02-alt d2a4c14c88 First Implementation 2026-05-13 00:54:22 +02:00
caroschulte02-alt 9d5a76973b First Implementation 2026-05-12 21:56:26 +02:00
25 changed files with 417 additions and 425 deletions
-41
View File
@@ -1,41 +0,0 @@
<!--
Seite: 404 Seite nicht gefunden
Funktion: Wenn eine Seite nicht gefunden wurde oder noch fehlt,dann wird hierauf verwiesen.
-->
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="description" content="EduForge">
<meta name="author" content="Niklas Ortmann">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="images/logos/logo_icon.ico">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/navbar.css">
<link rel="stylesheet" href="css/footer.css">
<title>EduForge</title>
</head>
<body>
<main>
<?php
include_once 'includes/navbar.php';
?>
<h1>404 - Seite nicht vorhanden</h1>
<p>
Später im Projekt sollen über index.php?pfad=... der Inhalt der index.php dynamisch gesetzt werden.
Alle Content-Links der Navbar führen zunächst hier her.
</p>
</main>
<?php
include_once 'includes/footer.php';
?>
</body>
</html>
-3
View File
@@ -8,6 +8,3 @@ Abgabe zu Aufgabenblatt 1
Hinweise: Hinweise:
index.html wurde zu einer index.php umbenannt. index.html wurde zu einer index.php umbenannt.
webhook.php bitte ignorieren. Diese dient nur als zukünftige Automatisierung des Repo-Pulls (s. https://docs.gitea.com/usage/webhooks) webhook.php bitte ignorieren. Diese dient nur als zukünftige Automatisierung des Repo-Pulls (s. https://docs.gitea.com/usage/webhooks)
Beim Verwenden der Navbar-Links bitte Folgendes beachten: nur die Links Physik, Mathe, Informatik fürhen auf eine andere Seite.
Die anderen Links sind erstmal Platzhalter, dessen dynamischer Inhalt später mit PHP in die index.php eingefügt wird.
+1 -1
View File
@@ -18,7 +18,7 @@
<nav style="background:#808080; height: 60px;"> <nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;"> <div style="float:left; text-align: center;">
<a href="../index.php"> <a href="../index.php">
<img src="../images/logos/logo.png" alt="" style="height: 44px;"> <img src="../images/logo.png" alt="" style="height: 44px;">
</a> </a>
| |
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a> <a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
+1 -1
View File
@@ -18,7 +18,7 @@
<nav style="background:#808080; height: 60px;"> <nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;"> <div style="float:left; text-align: center;">
<a href="../index.php"> <a href="../index.php">
<img src="../images/logos/logo.png" alt="" style="height: 44px;"> <img src="../images/logo.png" alt="" style="height: 44px;">
</a> </a>
| |
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a> <a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
+1 -1
View File
@@ -18,7 +18,7 @@
<nav style="background:#808080; height: 60px;"> <nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;"> <div style="float:left; text-align: center;">
<a href="../index.php"> <a href="../index.php">
<img src="../images/logos/logo.png" alt="" style="height: 44px;"> <img src="../images/logo.png" alt="" style="height: 44px;">
</a> </a>
| |
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a> <a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
+2 -2
View File
@@ -18,7 +18,7 @@
<nav style="background:#808080; height: 60px;"> <nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;"> <div style="float:left; text-align: center;">
<a href="../index.php"> <a href="../index.php">
<img src="../images/logos/logo.png" alt="" style="height: 44px;"> <img src="../images/logo.png" alt="" style="height: 44px;">
</a> </a>
| |
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a> <a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
@@ -44,7 +44,7 @@
<main> <main>
<div style="width: 50%"> <div style="width: 50%">
<div style="width: 130px;"> <div style="width: 130px;">
<img src="../images/logos/logo.png" alt="" width="120" height="72"> <img src="../images/logo.png" alt="" width="120" height="72">
</div> </div>
<h1 style="width: 60%; text-align: center">Bitte anmelden</h1><br> <h1 style="width: 60%; text-align: center">Bitte anmelden</h1><br>
+2 -2
View File
@@ -18,7 +18,7 @@
<nav style="background:#808080; height: 60px;"> <nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;"> <div style="float:left; text-align: center;">
<a href="../index.php"> <a href="../index.php">
<img src="../images/logos/logo.png" alt="" style="height: 44px;"> <img src="../images/logo.png" alt="" style="height: 44px;">
</a> </a>
| |
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a> <a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
@@ -44,7 +44,7 @@
<main> <main>
<div style="width: 50%"> <div style="width: 50%">
<div style="width: 130px;"> <div style="width: 130px;">
<img src="../images/logos/logo.png" alt="" width="120" height="72"> <img src="../images/logo.png" alt="" width="120" height="72">
</div> </div>
<h1 style="width: 50%; text-align: center">Jetzt Registrieren!</h1><br> <h1 style="width: 50%; text-align: center">Jetzt Registrieren!</h1><br>
+48
View File
@@ -2,6 +2,45 @@
Seite: Informatik Seite: Informatik
Inhalt: Eine Übersicht über alle Beiträge zum Fach Inhalt: Eine Übersicht über alle Beiträge zum Fach
--> -->
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="description" content="EduForge">
<meta name="author" content="Niklas Ortmann">
<link rel="stylesheet" href="../css/main.css" />
<title>EduForge</title>
</head>
<body>
<nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;">
<a href="../index.php">
<img src="../images/logo.png" alt="" style="height: 44px;">
</a>
|
<a href = "informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
<a href = "mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
<a href = "physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
<a href = "profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
</div>
<div style="float:right; text-align: center;">
<?php
include_once '../includes/search.php';
?>
|
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
</div>
</nav>
<main> <main>
<h1>Informatik</h1> <h1>Informatik</h1>
@@ -19,3 +58,12 @@
<a href="../articles/datenschutz.php">Datenschutz vs. Datensicherheit</a> <a href="../articles/datenschutz.php">Datenschutz vs. Datensicherheit</a>
</div> </div>
</main> </main>
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
<a href="../legal/impressum.php">Impressum</a>
<a href="../legal/datenschutz.php">Datenschutz</a>
<a href="../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
</footer>
</body>
</html>
+49
View File
@@ -2,7 +2,47 @@
Seite: Mathe Seite: Mathe
Inhalt: Eine Übersicht über alle Beiträge zum Fach Inhalt: Eine Übersicht über alle Beiträge zum Fach
--> -->
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="description" content="EduForge">
<meta name="author" content="Niklas Ortmann">
<link rel="stylesheet" href="../css/main.css" />
<title>EduForge</title>
</head>
<body>
<nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;">
<a href="../index.php">
<img src="../images/logo.png" alt="" style="height: 44px;">
</a>
|
<a href = "informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
<a href = "mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
<a href = "physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
<a href = "profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
</div>
<div style="float:right; text-align: center;">
<?php
include_once '../includes/search.php';
?>
|
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
</div>
</nav>
<main> <main>
<h1>Mathe</h1> <h1>Mathe</h1>
<p> <p>
@@ -19,3 +59,12 @@
<a href="../articles/pythagoras.php">Satz des Pythagoras</a> <a href="../articles/pythagoras.php">Satz des Pythagoras</a>
</div> </div>
</main> </main>
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
<a href="../legal/impressum.php">Impressum</a>
<a href="../legal/datenschutz.php">Datenschutz</a>
<a href="../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
</footer>
</body>
</html>
+48
View File
@@ -2,6 +2,45 @@
Seite: Physik Seite: Physik
Inhalt: Eine Übersicht über alle Beiträge zum Fach Inhalt: Eine Übersicht über alle Beiträge zum Fach
--> -->
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="description" content="EduForge">
<meta name="author" content="Niklas Ortmann">
<link rel="stylesheet" href="../css/main.css" />
<title>EduForge</title>
</head>
<body>
<nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;">
<a href="../index.php">
<img src="../images/logo.png" alt="" style="height: 44px;">
</a>
|
<a href = "informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
<a href = "mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
<a href = "physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
<a href = "profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
</div>
<div style="float:right; text-align: center;">
<?php
include_once '../includes/search.php';
?>
|
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
</div>
</nav>
<main> <main>
<h1>Physik</h1> <h1>Physik</h1>
@@ -21,3 +60,12 @@
</div> </div>
</main> </main>
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
<a href="../legal/impressum.php">Impressum</a>
<a href="../legal/datenschutz.php">Datenschutz</a>
<a href="../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
</footer>
</body>
</html>
+51 -2
View File
@@ -2,12 +2,52 @@
Seite: Profil Seite: Profil
Inhalt: Das eigene Profil, wenn man angemeldet ist. Dort hat man die Möglichkeit seine Angaben zu ändern. Inhalt: Das eigene Profil, wenn man angemeldet ist. Dort hat man die Möglichkeit seine Angaben zu ändern.
--> -->
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="description" content="EduForge">
<meta name="author" content="Niklas Ortmann">
<link rel="stylesheet" href="../css/main.css" />
<title>EduForge</title>
</head>
<body>
<nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;">
<a href="../index.php">
<img src="../images/logo.png" alt="" style="height: 44px;">
</a>
|
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
<a href = "../content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
<a href = "../content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
<a href = "../content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
</div>
<div style="float:right; text-align: center;">
<?php
include_once '../includes/search.php';
?>
|
<a href = "../auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
<a href = "../auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
</div>
</nav>
<main> <main>
<hr>
<hr>
<div> <div>
<div> <div>
<h1>Benutzerdaten ändern</h1> <h1>Benutzerdaten ändern</h1>
<a href="/users"><img src="../images/logos/logo.png" alt="" width="120" height="72"></a> <a href="/users"><img src="../images/logo.png" alt="" width="120" height="72"></a>
</div> </div>
<div> <div>
<div> <div>
@@ -33,3 +73,12 @@
</div> </div>
</div> </div>
</main> </main>
<footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
<a href="../legal/impressum.php">Impressum</a>
<a href="../legal/datenschutz.php">Datenschutz</a>
<a href="../legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
</footer>
</body>
</html>
-21
View File
@@ -1,21 +0,0 @@
/* FooterGrundlayout */
footer {
position: fixed;
bottom: 0;
width: 100%;
background: #333d43;
text-align: center;
padding: 10px 0;
}
footer a {
color: white;
text-decoration: none;
margin: 0 12px;
transition: color 0.2s ease; /* Farbwechsel */
}
footer a:hover,
footer a:focus {
color: #0066cc;
}
+177 -5
View File
@@ -1,7 +1,179 @@
body { * {
background-color: coral; box-sizing: border-box;
} }
a, button, input, select, textarea { /* =========================
font-family: Arial, Helvetica, sans-serif; Farben
} ========================= */
:root {
--bg: #eef2f7;
--white: #ffffff;
--nav: #1e293b;
--nav-hover: #334155;
--primary: #2563eb;
--primary-hover: #1d4ed8;
--text: #1e293b;
--text-light: #64748b;
--border: #dbe4ee;
}
/* =========================
Body
========================= */
body {
font-family: "Segoe UI", Arial, sans-serif;
background-color: var(--bg);
color: var(--text);
}
/* =========================
Header
========================= */
header {
background-color: var(--nav);
}
/* =========================
Logo / Bild
========================= */
header img {
object-fit: cover;
background-color: white;
border-radius: 14px;
}
/* =========================
Navigation
========================= */
nav {
background-color: var(--nav);
}
nav a {
text-decoration: none;
color: #f1f5f9;
font-weight: 600;
border-radius: 10px;
transition: 0.3s ease;
}
nav a:hover {
background-color: var(--nav-hover);
color: white;
}
/* =========================
Suchfeld
========================= */
input[type="text"],
input[type="search"] {
border: 1px solid var(--border);
background-color: white;
font-size: 1rem;
border-radius: 12px;
}
input:focus {
border-color: var(--primary);
}
/* =========================
Buttons
========================= */
button {
background-color: var(--primary);
color: white;
border: none;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
border-radius: 12px;
transition: 0.25s ease;
}
/* Hover Bewegung */
button:hover {
background-color: var(--primary-hover);
transform: translateY(-2px);
}
/* Klick-Effekt */
button:active {
transform: translateY(0px);
}
/* =========================
Hauptinhalt
========================= */
main {
background-color: var(--white);
border-radius: 24px;
}
/* =========================
Überschriften
========================= */
h1 {
color: var(--primary);
font-size: 3.5rem;
}
h2 {
color: var(--primary);
}
/* =========================
Texte
========================= */
p {
color: var(--text-light);
line-height: 1.8;
font-size: 1.08rem;
}
/* =========================
Links
========================= */
a {
color: var(--primary);
transition: 0.3s ease;
}
a:hover {
color: var(--primary-hover);
}
/* =========================
Footer
========================= */
footer {
background-color: var(--white);
}
footer a {
text-decoration: none;
color: var(--text-light);
font-weight: 500;
}
footer a:hover {
color: var(--primary);
}
-246
View File
@@ -1,246 +0,0 @@
/*
CSS für die navbar
*/
.nav {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #333d43;
padding: 0 1rem;
}
.nav__left,
.nav__right {
display: flex;
align-items: center;
}
.nav__logo img {
height: 3rem;
}
.nav__center {
display: flex;
align-items: center;
}
.nav__item {
position: relative;
margin: 0 0.5rem;
}
.nav__dropdown-toggle {
background: none;
border: none;
cursor: pointer;
font-weight: 600;
padding: 0.5rem 1rem;
color: #fff;
text-decoration: none;
}
.nav__dropdown-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
background: #f9f9f9;
min-width: 12rem;
box-shadow: 0 2px 5px rgba(0,0,0,.15);
padding: 0.5rem 0;
}
.nav__dropdown-menu a {
padding: 0.5rem 1rem; /* Abstand um den Text */
color: #333;
text-decoration: none;
font-weight: 600;
}
.nav__link {
display: inline-block;
font-weight: 600;
background: none;
border: none;
cursor: pointer;
padding: 0.5rem 1rem;
color: #fff;
text-decoration: none;
}
.nav__button {
display: inline-block;
background: #fff;
border: none;
border-radius: 4px;
padding: 0.5rem 1rem;
cursor: pointer;
color: #333;
text-decoration: none;
font-weight: 600;
margin-left: 0.5rem;
}
.nav__search {
display: flex;
align-items: center;
border-radius: 4px; /* Abgerundete Ecken */
background: #fff;
margin: 0 0.5rem;
}
.nav__search-button {
display: inline-block;
background: #fff;
border: none;
border-radius: 4px;
padding: 0.4rem 0.6rem;
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
margin-left: 4px;
}
.nav__dropdown:hover .nav__dropdown-menu {
display: block;
}
.nav__checkbox {
display: none;
}
/* Responsive Anpassung unter 1210px */
@media (max-width: 1210px) {
.nav {
flex-wrap: wrap; /* zweite Nav-Zeile*/
padding: 0.5rem 1rem;
}
.nav__left {
order: 1;
flex: 1; /* nimmt den Platz ganz links ein */
}
.nav__right {
order: 2;
flex: 1;
justify-content: flex-end; /* schiebt Buttons nach ganz rechts */
}
.nav__center {
order: 3;
flex-basis: 100%; /* Erzwingt, dass dieses Element eine eigene Zeile einnimmt */
justify-content: center; /*zentriert die Links in der zweiten Zeile */
padding: 0.5rem 0;
border-top: 1px solid rgba(255,255,255,0.1); /* Optionale Trennlinie */
margin-top: 0.5rem;
}
.nav__item {
margin: 0.25rem;
}
}
#mobile-nav {
display: none;
}
/* Responsive Anpassungen unter 660px (für z.B. Smartphones) */
@media (max-width: 660px) {
.nav {
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
padding: 0 1rem;
}
.nav__logo img {
height: 50px;
}
.nav__left {
order: 2;
flex: 1;
justify-content: flex-start;
}
.nav__right {
order: 3;
width: 100%;
display: flex;
margin-top: 0.5em;
}
#mobile-nav {
display: block;
order: 1;
background: #333d43;
border: none;
color: #fff;
font-size: 1.5rem;
padding: 0.5rem 0.1rem;
border-radius: 0.2rem;
cursor: pointer;
}
.nav__search {
display: flex;
width: 100%;
margin: 0;
}
.nav__search-button {
display: inline-block;
background: #fff;
border: none;
border-radius: 4px;
padding: 0.4rem 0.6rem;
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
margin-left: 4px;
}
/* restliche desktop-navbar aus */
.nav__center,
.nav__right .nav__button,
.nav__right .nav__link {
display: none;
}
/* off canvas menu */
.nav__mobile-menu {
display: flex;
flex-direction: column;
position: fixed;
top: 0;
left: -100%; /* kommt von links */
width: 280px;
height: 100vh;
background: #333d43;
z-index: 1000;
transition: left 0.3s ease;
padding: 2rem 1rem;
box-shadow: 2px 0 10px rgba(0,0,0,0.5);
overflow-y: auto;
}
.nav__checkbox:checked ~ .nav__mobile-menu {
left: 0;
}
.nav_mobile-menu.is-active {
left: 0;
}
.nav__mobile-menu a {
color: #fff;
text-decoration: none;
font-size: 1.2rem;
font-weight: 600;
display: block;
padding: 0.5rem 1rem;
border-bottom: 1px solid #333d43;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

-5
View File
@@ -1,5 +0,0 @@
<footer>
<a href="legal/impressum.php">Impressum</a>
<a href="legal/datenschutz.php">Datenschutz</a>
<a href="legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
</footer>
+21 -76
View File
@@ -1,83 +1,28 @@
<!-- <!--
Globales Menü, wird via PHP später in alle Seiten eingebunden Globales Menü, wird via PHP später in alle Seiten eingebunden
--> -->
<nav class="nav"> <nav style="background:#808080; height: 60px;">
<div class="nav__left"> <div style="float:left; text-align: center;">
<a href="index.php" class="nav__logo"> <a href="index.php">
<img src="images/logos/logo_full.png" alt="Logo"> <img src="images/logo.png" alt="" style="height: 44px;">
</a> </a>
</div> |
<a href = "content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
|
<a href = "content/mathe.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Mathe</b></a>
|
<a href = "content/physik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Physik</b></a>
|
<a href = "content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
</div>
<div style="float:right; text-align: center;">
<?php
include_once 'search.php';
?>
|
<a href = "auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
<!-- Mobile navbar mit Burger-Symbol --> <a href = "auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
<input type="checkbox" id="nav-toggle" class="nav__checkbox">
<label for="nav-toggle" id="mobile-nav">
<span></span> <!-- Burger Icon Symbol -->
</label>
<ul id="mobile-nav" class="nav__mobile-menu">
<li><a href="auth/login.php">Anmelden</a></li>
<li><a href="404.php">Mathe</a></li>
<li><a href="404.php">Physik</a></li>
</ul>
<!-- normale Navbar (Desktop) -->
<div class="nav__center">
<div class="nav__item nav__dropdown">
<button class="nav__dropdown-toggle">Sprachen</button>
<div class="nav__dropdown-menu">
<a href="404.php">Deutsch</a>
<a href="404.php">Englisch</a>
<a href="404.php">Französisch</a>
<a href="404.php">Latein</a>
<a href="404.php">Literatur</a>
</div>
</div>
<div class="nav__item nav__dropdown">
<button class="nav__dropdown-toggle">MINT</button>
<div class="nav__dropdown-menu">
<a href="404.php">Mathematik</a>
<a href="404.php">Biologie</a>
<a href="404.php">Chemie</a>
<a href="404.php">Physik</a>
<a href="404.php">Informatik</a>
<a href="404.php">Astronomie</a>
</div>
</div>
<div class="nav__item nav__dropdown">
<button class="nav__dropdown-toggle">Gesellschaft & Werte</button>
<div class="nav__dropdown-menu">
<a href="404.php">Geschichte</a>
<a href="404.php">Erdkunde</a>
<a href="404.php">Sozialkunde</a>
<a href="404.php">Wirtschaftskunde</a>
<a href="404.php">Religion</a>
<a href="404.php">Ethikunterricht</a>
<a href="404.php">Philosophie</a>
<a href="404.php">Psychologie</a>
<a href="404.php">Kunst</a>
<a href="404.php">Musik</a>
<a href="404.php">Theater</a>
</div>
</div>
<div class="nav__item nav__dropdown">
<button class="nav__dropdown-toggle">Technik & Praxis</button>
<div class="nav__dropdown-menu">
<a href="404.php">Technik</a>
<a href="404.php">Werken</a>
<a href="404.php">Hauswirtschaft</a>
<a href="404.php">Sport</a>
</div>
</div>
</div>
<div class="nav__right">
<a href = "content/profile.php" class="nav_item nav__link">Profil</a>
<div class="nav__search">
<?php
include_once 'search.php';
?>
</div>
<a href = "auth/login.php" class="nav__item nav__button">Anmelden</a>
<a href = "auth/register.php" class="nav__item nav__button">Registrieren</a>
</div> </div>
</nav> </nav>
+2 -3
View File
@@ -1,6 +1,5 @@
<!-- <!--
Suchleiste. Wird via PHP später in alle Seiten eingebunden Suchleiste. Wird via PHP später in alle Seiten eingebunden
--> -->
<!--<label for="site-search">Suche</label>--> <input type="search" id="site-search" name="q" placeholder="Suchen...">
<input type="search" id="site-search" name="q" placeholder="Suchen..." class="nav__search"> <button type="submit">Suchen</button>
<button type="submit" class="nav__search-button">Suchen</button>
+6 -8
View File
@@ -9,11 +9,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="description" content="EduForge"> <meta name="description" content="EduForge">
<meta name="author" content="Niklas Ortmann"> <meta name="author" content="Niklas Ortmann">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="css/main.css" />
<link rel="icon" type="image/x-icon" href="images/logos/logo_icon.ico">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/navbar.css">
<link rel="stylesheet" href="css/footer.css">
<title>EduForge</title> <title>EduForge</title>
</head> </head>
@@ -26,9 +22,11 @@
include_once 'content/home.php'; include_once 'content/home.php';
?> ?>
<?php <footer style="position:fixed;bottom:0;width:100%;background:#fff;text-align:center;">
include_once 'includes/footer.php'; <a href="legal/impressum.php">Impressum</a>
?> <a href="legal/datenschutz.php">Datenschutz</a>
<a href="legal/nutzungsbedingungen.php">Nutzungsbedingungen</a>
</footer>
</body> </body>
</html> </html>
+1 -1
View File
@@ -19,7 +19,7 @@
<nav style="background:#808080; height: 60px;"> <nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;"> <div style="float:left; text-align: center;">
<a href="../index.php"> <a href="../index.php">
<img src="../images/logos/logo.png" alt="" style="height: 44px;"> <img src="../images/logo.png" alt="" style="height: 44px;">
</a> </a>
| |
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a> <a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
+1 -1
View File
@@ -19,7 +19,7 @@
<nav style="background:#808080; height: 60px;"> <nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;"> <div style="float:left; text-align: center;">
<a href="../index.php"> <a href="../index.php">
<img src="../images/logos/logo.png" alt="" style="height: 44px;"> <img src="../images/logo.png" alt="" style="height: 44px;">
</a> </a>
| |
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a> <a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>
+1 -1
View File
@@ -18,7 +18,7 @@
<nav style="background:#808080; height: 60px;"> <nav style="background:#808080; height: 60px;">
<div style="float:left; text-align: center;"> <div style="float:left; text-align: center;">
<a href="../index.php"> <a href="../index.php">
<img src="../images/logos/logo.png" alt="" style="height: 44px;"> <img src="../images/logo.png" alt="" style="height: 44px;">
</a> </a>
| |
<a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a> <a href = "../content/informatik.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Informatik</b></a>