From fa0bcf0af85671015d1e945f928599016c412792 Mon Sep 17 00:00:00 2001 From: DST81 Date: Sun, 8 Mar 2026 23:12:45 +0100 Subject: [PATCH] Erste Schritte der Navigation implementiert --- assets/css/custom.css | 158 ++++++++++++++++++++++++++++++++++-------- index.html | 140 ++++++++++++++++++++++++++++++------- 2 files changed, 244 insertions(+), 54 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index 5e6ecc5..8316967 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -1,56 +1,154 @@ body { - background: white; - color: black; + background: #f0f4f8; + color: #1b1b2f; font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; + line-height: 1.6; + margin-bottom: 1rem; + padding: 0; } -p.image { - text-align: center; + +/* Navigation Styles */ +.navbar { + background: linear-gradient(90deg, #1b1b2f, #4a6fa5) } -.container { - display: flex; +.navbar .nav-link { + color: #fff; + transition: color 0.3s; +} +.navbar .nav-link:hover { + color: #ffd166; +} + +/* Main content styles */ +.container-dashboard { flex-wrap: wrap; justify-content: center; - background-color: dodgerblue; -} -.container div { - background-color:#f1f1f1; - margin: 10px; + gap: 20px; padding: 20px; +} +/* Cards/Scores styles */ +.container > div { + background-color:#ffffff; + border-radius: 12px; + box-shadow: 0 4px 15px rgba(0,0,0,0.1); + padding: 25px; font-size: 30px; - color: black; flex: 1 1 100%; text-align: center; + transition: transform 0.3s, box-shadow 0.3s; } +.container > div:hover { + transform: translateY(-5px); + box-shadow: 0 10px 25px rgba(0,0,0,0.2); +} +/* Überschriften und Abstände */ +h1, h2, h3, h4, h5, h6 { + margin-top: 1rem; + margin-bottom: 20px; + color: #1b1b2f; +} +p { + margin-top: 0.5rem; + margin-bottom: 1rem; + color: #333; +} +/* Button Styles */ +button, .btn { + background-color: #4a6fa5; + color: #fff; + border: none; + padding: 10px 20px; + border-radius: 6px; + cursor: pointer; + font-size: 16px; + transition: background-color 0.3s; +} +button:hover, .btn:hover { + background-color: #2b4a7c; +} +#page-wrapper { + display: flex; + min-height: 100vh; + font-family: 'Segoe UI', sans-serif; +} +/* Sidebar Styles */ +#sidebar { + width: 240px; + min-height: 100vh; + background: linear-gradient(180deg, #1b1b2f, #4a6fa5); + color: white; + padding: 25px; +} +.logo { + font-size: 24px; + margin-bottom: 30px; +} +#sidebar .nav-link { + margin: 0.5rem 0; + transition: color 0.3s background-color 0.3s; +} +#main-area { + flex: 1; + background: #f3f4f6; + display: flex; + flex-direction: column; +} +/* Topbar Styles */ +#topbar { + height: 70px; + background: white; + padding: 0px 30px; + display: flex; + justify-content: space-between; + align-items: center; + box-shadow: 0 2px 10px rgba(0,0,0,0.1); +} +#main-content { + background-color: #f0f4f8; + padding: 30px; +} +/* Card Styles */ +.card { + background: white; + border-radius: 12px; + box-shadow: 0 5px 15px rgba(0,0,0,0.08); + padding: 25px; + margin-bottom: 20px; +} +.card h2 { + margin-bottom: 10px; +} -@media (min-width: 768px) { - body { - background-color: steelblue; - color: white; - font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; - } - .container div { +/* Responsive Styles */ +@media (max-width: 768px) { + .container > div { flex: 1 1 calc(50% - 40px); } + #page-wrapper { + flex-direction: column; + } + #sidebar { + width: 100%; + display: flex; + overflow-x: auto; + } } @media (min-width: 1200px) { body { - background-color: darkblue; - color: white; - font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; + font-size: 1.1rem; } - p { + .container div { + flex: 1 1 calc(25% - 40px); + } + p.columns{ column-count: 2; column-gap: 2rem; } - p.dotted { - column-gap: 2rem; - column-rule: 5px dotted black; - outline-style: dotted; - } - .container div { - flex: 1 1 calc(25% - 20px); + #sidebar .nav-link { + flex: 0 0 auto; + margin: 0 15px; } } diff --git a/index.html b/index.html index b091372..c47bfa9 100644 --- a/index.html +++ b/index.html @@ -1,37 +1,129 @@ - - My Web Page + + Lorem Ipsum - Das Spiel + + -

Hello From Main Page

-

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

-

Lorem ipsum Blumen

-
-
Item 1
-
Item 2
-
Item 3
-
Item 4
+ + +
+ + + + +
+ +
+

Dashboard

+ +
+ + +
+
+

Willkommen beim Lorem Ipsum Game

+

Teste deine Fähigkeiten im Umgang mit Lorem Ipsum Texten! Je schneller und genauer du bist, desto höher ist dein Score. Viel Spaß beim Spielen!

+

Wähle eine Option aus der Navigation, um zu starten.

+
+
+
- Go to Main Page - Go to Second Page -
- - - - - - - - - - + - + + + \ No newline at end of file