Treuebonus-Funkeln im gleichen besonderen Stil wie Abo, aber eigene Farbe
Treuebonus-Kiste im Konto-Dashboard bekam bisher das normale kleine ✨ wie Bestellungen/Sendungen/Wunschliste. Jetzt nutzt sie denselben großen, kräftig pulsierenden 🌟-Stern wie die Abo-Kiste (4 Sprachen). Die CSS-Regel dafür gilt jetzt für beide Kisten gemeinsam und färbt den Glanz automatisch in der jeweils eigenen --nav-color ein (Abo = Gold, Treuebonus = Grün) statt eines fest codierten Goldtons — Stil bleibt identisch, nur die Farbe unterscheidet die beiden klar. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
b888e682d8
commit
5c1ebfac60
@@ -125,7 +125,7 @@ const angekommeneBestellungen = beispielBestellungen.filter((b) => b.status ===
|
|||||||
<span class="account-nav-label">{t.accountDash.statWishlist}</span>
|
<span class="account-nav-label">{t.accountDash.statWishlist}</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="account-nav-item account-nav-loyalty" data-tab="treuebonus">
|
<button type="button" class="account-nav-item account-nav-loyalty" data-tab="treuebonus">
|
||||||
<span class="account-nav-sparkle" aria-hidden="true">✨</span>
|
<span class="account-nav-sparkle" aria-hidden="true">🌟</span>
|
||||||
<span class="account-nav-icon" aria-hidden="true">🎁</span>
|
<span class="account-nav-icon" aria-hidden="true">🎁</span>
|
||||||
<span class="account-nav-value" id="loyalty-nav-value">–</span>
|
<span class="account-nav-value" id="loyalty-nav-value">–</span>
|
||||||
<span class="account-nav-label">{t.accountDash.statLoyalty}</span>
|
<span class="account-nav-label">{t.accountDash.statLoyalty}</span>
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ const angekommeneBestellungen = beispielBestellungen.filter((b) => b.status ===
|
|||||||
<span class="account-nav-label">{t.accountDash.statWishlist}</span>
|
<span class="account-nav-label">{t.accountDash.statWishlist}</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="account-nav-item account-nav-loyalty" data-tab="treuebonus">
|
<button type="button" class="account-nav-item account-nav-loyalty" data-tab="treuebonus">
|
||||||
<span class="account-nav-sparkle" aria-hidden="true">✨</span>
|
<span class="account-nav-sparkle" aria-hidden="true">🌟</span>
|
||||||
<span class="account-nav-icon" aria-hidden="true">🎁</span>
|
<span class="account-nav-icon" aria-hidden="true">🎁</span>
|
||||||
<span class="account-nav-value" id="loyalty-nav-value">–</span>
|
<span class="account-nav-value" id="loyalty-nav-value">–</span>
|
||||||
<span class="account-nav-label">{t.accountDash.statLoyalty}</span>
|
<span class="account-nav-label">{t.accountDash.statLoyalty}</span>
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ const angekommeneBestellungen = beispielBestellungen.filter((b) => b.status ===
|
|||||||
<span class="account-nav-label">{t.accountDash.statWishlist}</span>
|
<span class="account-nav-label">{t.accountDash.statWishlist}</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="account-nav-item account-nav-loyalty" data-tab="treuebonus">
|
<button type="button" class="account-nav-item account-nav-loyalty" data-tab="treuebonus">
|
||||||
<span class="account-nav-sparkle" aria-hidden="true">✨</span>
|
<span class="account-nav-sparkle" aria-hidden="true">🌟</span>
|
||||||
<span class="account-nav-icon" aria-hidden="true">🎁</span>
|
<span class="account-nav-icon" aria-hidden="true">🎁</span>
|
||||||
<span class="account-nav-value" id="loyalty-nav-value">–</span>
|
<span class="account-nav-value" id="loyalty-nav-value">–</span>
|
||||||
<span class="account-nav-label">{t.accountDash.statLoyalty}</span>
|
<span class="account-nav-label">{t.accountDash.statLoyalty}</span>
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ const angekommeneBestellungen = beispielBestellungen.filter((b) => b.status ===
|
|||||||
<span class="account-nav-label">{t.accountDash.statWishlist}</span>
|
<span class="account-nav-label">{t.accountDash.statWishlist}</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="account-nav-item account-nav-loyalty" data-tab="treuebonus">
|
<button type="button" class="account-nav-item account-nav-loyalty" data-tab="treuebonus">
|
||||||
<span class="account-nav-sparkle" aria-hidden="true">✨</span>
|
<span class="account-nav-sparkle" aria-hidden="true">🌟</span>
|
||||||
<span class="account-nav-icon" aria-hidden="true">🎁</span>
|
<span class="account-nav-icon" aria-hidden="true">🎁</span>
|
||||||
<span class="account-nav-value" id="loyalty-nav-value">–</span>
|
<span class="account-nav-value" id="loyalty-nav-value">–</span>
|
||||||
<span class="account-nav-label">{t.accountDash.statLoyalty}</span>
|
<span class="account-nav-label">{t.accountDash.statLoyalty}</span>
|
||||||
|
|||||||
@@ -1568,14 +1568,17 @@ a:focus-visible, button:focus-visible {
|
|||||||
"seine eigene" Farbe trägt, statt überall gleich neutral-gelb zu wirken. */
|
"seine eigene" Farbe trägt, statt überall gleich neutral-gelb zu wirken. */
|
||||||
filter: drop-shadow(0 0 4px color-mix(in srgb, var(--nav-color, var(--c-accent)) 75%, transparent));
|
filter: drop-shadow(0 0 4px color-mix(in srgb, var(--nav-color, var(--c-accent)) 75%, transparent));
|
||||||
}
|
}
|
||||||
/* Das Abo-Funkeln soll sich zusätzlich klar von den anderen abheben — eigener Gold-Stern statt
|
/* Abo UND Treuebonus sollen sich klar von den restlichen Kisten abheben — derselbe große,
|
||||||
des normalen Sternchens, größer und kräftiger/schneller leuchtend, passend zum "Premium"-
|
kräftig leuchtende Stern (🌟 statt ✨) mit derselben "Premium"-Bewegung, ABER jede Kiste
|
||||||
Charakter des Abos (soll auf den ersten Blick als "hier ist was Besonderes" auffallen). */
|
färbt ihren eigenen Stern automatisch in ihrer eigenen --nav-color ein (Abo = Gold, Treue-
|
||||||
.account-nav-abo .account-nav-sparkle {
|
bonus = Grün) statt eines hartkodierten Farbtons — so bleibt der STIL identisch/"besonders",
|
||||||
font-size: 1.1rem;
|
nur die Farbe unterscheidet die beiden klar voneinander, ganz ohne Duplizierung der Regel. */
|
||||||
|
.account-nav-abo .account-nav-sparkle,
|
||||||
|
.account-nav-loyalty .account-nav-sparkle {
|
||||||
|
font-size: 1.15rem;
|
||||||
animation-name: abo-nav-sparkle-twinkle;
|
animation-name: abo-nav-sparkle-twinkle;
|
||||||
animation-duration: 1.8s;
|
animation-duration: 1.8s;
|
||||||
filter: drop-shadow(0 0 7px color-mix(in srgb, #e3b23c 85%, transparent)) drop-shadow(0 0 2px #fff);
|
filter: drop-shadow(0 0 7px color-mix(in srgb, var(--nav-color, #e3b23c) 85%, transparent)) drop-shadow(0 0 2px #fff);
|
||||||
}
|
}
|
||||||
@keyframes abo-nav-sparkle-twinkle {
|
@keyframes abo-nav-sparkle-twinkle {
|
||||||
0%, 100% { opacity: 0.55; transform: scale(0.85) rotate(-10deg); }
|
0%, 100% { opacity: 0.55; transform: scale(0.85) rotate(-10deg); }
|
||||||
|
|||||||
Reference in New Issue
Block a user