From ae42dc597a140b6b47d7bc0cc5c491a8237fb12b Mon Sep 17 00:00:00 2001 From: fsst Date: Wed, 4 Mar 2026 16:19:33 +0100 Subject: [PATCH] Review monitoring V1.1 (o) --- assets/css/productpage.css | 106 +++++++++++++++++++++++++++++++++++++ productpage.php | 25 +++++++-- 2 files changed, 126 insertions(+), 5 deletions(-) diff --git a/assets/css/productpage.css b/assets/css/productpage.css index 3ee697d..25cce84 100644 --- a/assets/css/productpage.css +++ b/assets/css/productpage.css @@ -428,4 +428,110 @@ padding: 1.5rem; font-size: 0.88rem; } +} + + +/* ========================================================== + PRODUCT REVIEWS + ========================================================== */ + +.reviews { + max-width: 1200px; + margin: 3rem auto 5rem; + padding: 0 1.5rem; + display: flex; + flex-direction: column; + gap: 1rem; + animation: fadeInUp 0.6s ease 0.4s both; +} + +.reviews-title { + color: white; + font-size: 22px; + font-weight: 600; + margin-bottom: 0.5rem; +} + +/* Review Card */ +.review-card { + background: #1c2533; /* leicht dunkler als shop */ + border: 1px solid #2a374a; + border-radius: 14px; + padding: 1.2rem 1.5rem; + transition: all var(--transition-smooth); + position: relative; + overflow: hidden; +} + +/* leichter Akzent rechts statt links */ +.review-card::after { + content: ""; + position: absolute; + right: 0; + top: 0; + bottom: 0; + width: 3px; + background: linear-gradient(180deg, var(--color-accent), var(--color-primary)); + opacity: 0; + transition: opacity var(--transition-smooth); +} + +.review-card:hover { + background: #223047; + transform: translateY(-3px); + box-shadow: 0 8px 18px rgba(0,0,0,0.25); +} + +.review-card:hover::after { + opacity: 1; +} + +/* Header */ +.review-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 0.6rem; +} + +.review-user { + font-weight: 600; + color: white; + font-size: 15px; +} + +/* Sterne */ +.review-rating { + display: flex; + gap: 4px; +} + +.star { + font-size: 16px; + color: #475569; + transition: transform 0.2s ease; +} + +.star.filled { + color: #fbbf24; +} + +.review-card:hover .star.filled { + transform: scale(1.15); +} + +/* Kommentar */ +.review-comment { + color: #cbd5e1; + font-size: 14px; + line-height: 1.6; +} + +/* Keine Reviews */ +.no-review { + background: #1f2a3a; + border: 1px solid #2f3c52; + border-radius: 12px; + padding: 1rem 1.5rem; + color: #94a3b8; } \ No newline at end of file diff --git a/productpage.php b/productpage.php index ff7f009..7153ee7 100644 --- a/productpage.php +++ b/productpage.php @@ -290,20 +290,36 @@ $productId = isset($_GET['id']) ? (int)$_GET['id'] : 0;
+

Bewertungen

+ -
- - +
+
+
+ +
+ +
+ + + +
+
+ +
+ +
+ -
+

Es gibt noch keine Bewertungen.

@@ -311,6 +327,5 @@ $productId = isset($_GET['id']) ? (int)$_GET['id'] : 0;
- \ No newline at end of file