diff --git a/client/src/pages/horoscope.tsx b/client/src/pages/horoscope.tsx index 336a546..c7eaff4 100644 --- a/client/src/pages/horoscope.tsx +++ b/client/src/pages/horoscope.tsx @@ -62,7 +62,7 @@ function SignGrid({ onSelect, selectedIndex, aiHoroscopes }: { onSelect: (i: num Ihr Sternzeichen wählen -
+
{SIGNS.map((sign, i) => { const ec = ELEMENT_COLORS[sign.element]; const aiH = aiHoroscopes.find(h => h.signIndex === i); @@ -84,17 +84,17 @@ function SignGrid({ onSelect, selectedIndex, aiHoroscopes }: { onSelect: (i: num src={(horoscope as any).imageUrl} alt={`Sternzeichen ${sign.name}`} loading="lazy" - className="w-full h-24 object-cover rounded-lg mb-3" + className="w-full h-40 md:h-44 object-cover rounded-lg mb-3" /> )}
{sign.symbol}
- {sign.name} - {sign.date} + {sign.name} + {sign.date}
-

{horoscope.general.substring(0, 100)}...

+

{horoscope.general.substring(0, 180)}...

Lesen
@@ -116,6 +116,7 @@ function SignDetail({ signIndex, onNavigate, aiHoroscopes }: { signIndex: number const dailyColor = getDailyColor(signIndex); const detailRef = useRef(null); const isAI = !!aiH; + const imgFor = (i: number) => aiHoroscopes.find((h) => h.signIndex === i)?.imageUrl || null; const prevIndex = (signIndex - 1 + SIGNS.length) % SIGNS.length; const nextIndex = (signIndex + 1) % SIGNS.length; @@ -309,6 +310,14 @@ function SignDetail({ signIndex, onNavigate, aiHoroscopes }: { signIndex: number className={`${sEc.bg} hover:opacity-80 border ${sEc.border} rounded-lg p-3 transition-all text-left`} data-testid={`button-sign-other-${s.name.toLowerCase()}`} > + {imgFor(origIdx) && ( + {`Tageshoroskop + )}
{s.symbol} {s.name} @@ -379,20 +388,9 @@ export default function HoroscopePage() {
-
- - - -

- - Horoskop -

-
-

- Entdecken Sie, was die Sterne für Sie bereithalten — Ihr persönliches Tageshoroskop für alle zwölf Sternzeichen. -

+

+ Horoskop — Tageshoroskop für alle zwölf Sternzeichen +

{aiLoading && (
@@ -408,13 +406,7 @@ export default function HoroscopePage() {
{selected !== null ? ( - ) : ( -
- -

Wählen Sie oben Ihr Sternzeichen

-

für Ihr persönliches Tages-, Wochen- und Monatshoroskop

-
- )} + ) : null}