diff --git a/CSS/Element/card.css b/CSS/Element/card.css index 8a99c8b..839a580 100644 --- a/CSS/Element/card.css +++ b/CSS/Element/card.css @@ -1,73 +1,111 @@ -.welcome-container { - background-color: var(--brand-background); - padding: 40px 20px; - min-height: 100vh; +/* === Grundlayout === */ +body { + margin: 0; font-family: var(--font-family-main); + background-color: var(--brand-background); + color: var(--brand-white); +} + +/* === Header-Bereich === */ +.welcome-header { + text-align: center; + margin: 60px 20px 40px 20px; } .welcome-heading { - color: var (--brand-primary); - font-size: var(--font-size-title-h2); - margin-bottom: 40px; + font-size: 50px; + font-weight: 500; + color: var(--brand-primary); /* Orange-Ton */ + margin-bottom: 20px; } +.welcome-subheading { + font-size: 28px; + font-weight: bold; + color: white; + text-align: left; + max-width: 1000px; + margin: 0 auto; + padding-left: 230px; +} + +/* === Kurs-Grid === */ .course-grid { display: flex; flex-wrap: wrap; - gap: 30px; justify-content: space-between; - max-width: 100%; + gap: 30px; + margin: 0 auto; } +/* === Kurs-Karte === */ .course-card { - flex: 0 0 calc(33.333% - 20px); + flex: 0 0 calc(33.333% - 20px); /* Drei nebeneinander */ background: var(--brand-white); border-radius: 12px; overflow: hidden; - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); min-height: 300px; display: flex; flex-direction: column; + margin-top: 30px; } +/* Optional: Kurs-Bildbereich */ .course-image { - background-color: var(--brand-white); /* Platzhalter, später durch Kursbild ersetzen */ - height: 200px; + background-color: #ddd; /* Platzhalter – kannst du durch echte Bilder ersetzen */ + height: 180px; + width: 100%; } +/* === Kurs-Inhalt === */ .course-content { - background-color: var(--brand-primary); + background-color: var(--brand-primary); /* Orange */ color: var(--brand-white); padding: 20px; - font-size: var(--font-size-text); + font-size: 16px; display: flex; justify-content: space-between; - align-items: center; - font-family: var(--font-family-main); + align-items: flex-start; + gap: 10px; } .course-left, .course-right { display: flex; flex-direction: column; - font-size: var(--font-size-small); + font-size: 14px; + line-height: 1.4; } .course-left div:first-child, .course-right div:first-child { font-weight: bold; - font-size: var(--font-size-text); + font-size: 16px; } .course-right { text-align: right; } -.course-card { - display: flex; - flex-direction: column; +/* === Responsive Anpassung === */ +@media screen and (max-width: 1024px) { + .course-card { + flex: 0 0 calc(50% - 20px); + } } -.course-image { - flex: 1; +@media screen and (max-width: 640px) { + .course-card { + flex: 0 0 100%; + } + + .welcome-heading { + font-size: 36px; + } + + .welcome-subheading { + font-size: 20px; + text-align: center; + } } diff --git a/CSS/style_columns.css b/CSS/style_columns.css index 57026a6..4541368 100644 --- a/CSS/style_columns.css +++ b/CSS/style_columns.css @@ -10,6 +10,7 @@ .container{ max-width: 90%; padding: 24px 42px 24px 42px; + margin: 0 auto; } .row { diff --git a/Views/Welcome/showWelcome.phtml b/Views/Welcome/showWelcome.phtml index c23000b..78c2255 100644 --- a/Views/Welcome/showWelcome.phtml +++ b/Views/Welcome/showWelcome.phtml @@ -1,29 +1,60 @@ - + -
+
+
+
+

KURSE & ERLEBNISSE JEDER ART

+

Alle Kurse in deiner Nähe – auf einen Blick

+
+ 5, + 'titel' => 'Marketing Pro', + 'adresse' => 'Bulu ulu Straße 17', + 'preis' => '59,99€', + 'ort' => '33333 Frankfurt', + 'leiter' => 'Max Mustermann' + ], + [ + 'bewertung' => 4, + 'titel' => 'Design Basics', + 'adresse' => 'Musterstraße 10', + 'preis' => '39,99€', + 'ort' => '10115 Berlin', + 'leiter' => 'Lisa Beispiel' + ], + [ + 'bewertung' => 5, + 'titel' => 'Excel Masterclass', + 'adresse' => 'Tabellenweg 5', + 'preis' => '49,99€', + 'ort' => '20457 Hamburg', + 'leiter' => 'Thomas Tabelle' + ] + ]; -

Kurse

- -
- - -
-
-
-
-
5 ★   Marketing Pro
-
Bulu ulu Straße 17
-
-
-
59,99€
-
33333 Frankfurt
+ foreach ($kurse as $kurs): ?> +
+
+
+
+
+
+
Kursleiter:
+
+
+
+
+
+
-
- - +
- -
- - + + + \ No newline at end of file