From 5dbe7a99b95c375cdec7a53f886ffd03eb144a96 Mon Sep 17 00:00:00 2001 From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com> Date: Thu, 28 May 2026 21:55:55 +0200 Subject: [PATCH] search-results.php + css --- content/search-results.php | 50 +++++++++++++++++ css/search-results.css | 108 +++++++++++++++++++++++++++++++++++++ index.php | 1 + 3 files changed, 159 insertions(+) create mode 100644 content/search-results.php create mode 100644 css/search-results.css diff --git a/content/search-results.php b/content/search-results.php new file mode 100644 index 0000000..9817411 --- /dev/null +++ b/content/search-results.php @@ -0,0 +1,50 @@ + +
+ + +
+

Suchergebnisse

+

3 Treffer für Ihre Suchanfrage

+
+ + +
+ + +
+
+

+ Anleitung zur Webentwicklung +

+

Von: Max Mustermann

+
+
+
+ + +
+
+

+ CSS Flexbox verständlich erklärt +

+

Von: Anna Schmidt

+
+
+
+ + +
+
+

+ HTML5-Grundlagen für Einsteiger +

+

Von: Lisa Meier

+
+
+
+ +
+
diff --git a/css/search-results.css b/css/search-results.css new file mode 100644 index 0000000..67118fb --- /dev/null +++ b/css/search-results.css @@ -0,0 +1,108 @@ +/* +CSS für die Suchergebnis-Seite + */ +.s-res-container { + box-sizing: border-box; + max-width: 800px; + margin: 2rem auto; + padding: 0 1rem; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; + color: #212529; + line-height: 1.5; +} + +.s-res-container * { + box-sizing: border-box; +} + +.s-res-header { + margin-bottom: 2rem; + border-bottom: 2px solid #dee2e6; + padding-bottom: 1rem; +} + +.s-res-main-title { + font-size: 2rem; + color: #1a202c; + margin: 0 0 0.5rem 0; + font-weight: 700; +} + +.s-res-meta { + color: #6c757d; + font-size: 0.95rem; + margin: 0; +} + +/* Ergebnisliste */ +.s-res-list { + display: flex; + flex-direction: column; + gap: 1rem; +} + +/* Einzelner Beitrag */ +.s-res-item { + background-color: #ffffff; + border: 1px solid #e2e8f0; + border-radius: 8px; + padding: 1.25rem; + display: flex; + justify-content: space-between; + align-items: center; + transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; +} + +.s-res-item:hover { + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); + border-color: #cbd5e1; +} + +/* Inhalt des Beitrags */ +.s-res-content { + flex: 1; +} + +.s-res-item-title { + font-size: 1.25rem; + margin: 0 0 0.25rem 0; + font-weight: 600; +} + +/* Links */ +.s-res-link { + color: #3182ce; + text-decoration: none; + transition: color 0.2s ease; +} + +.s-res-link:hover { + text-decoration: underline; + color: #2b6cb0; +} + +/* Autorenzeile */ +.s-res-author { + font-size: 0.875rem; + color: #4a5568; + margin: 0; +} + +.s-res-author-name { + font-weight: 600; + color: #2d3748; +} + +/* Interaktions-Pfeil */ +.s-res-arrow { + font-size: 1.5rem; + color: #a0aec0; + padding-left: 1rem; + transition: color 0.2s ease, transform 0.2s ease; +} + +.s-res-item:hover .s-res-arrow { + color: #3182ce; + transform: translateX(3px); +} diff --git a/index.php b/index.php index 98209de..112e4a1 100644 --- a/index.php +++ b/index.php @@ -14,6 +14,7 @@ + EduForge