Icons: Emoji/Unicode → Phosphor in 8 Dateien + 16 neue Sprite-Icons — SW by-v415
Sprite: arrow-up/down, bug, check-circle, ear, fish, flask, flower,
medal, question, scissors, tent, ticket, tooth, trend-up/down
poison.js: TYPEN (❓🎣☠️⚗️⚠️) → question/fish/skull/flask/warning
events.js: TYPEN (🎪🏆🎓🐕🛍️🥇📌) → ticket/trophy/graduation-cap/dog/shopping-bag/medal/push-pin
dog-profile.js: Pflege-Emojis (✂️💅🦷👂👁🐾🦟🌸❤️🐶) → Phosphor
trainingsplaene.js: (🐶🐕🦮) → dog mit SVG-Icon
health.js: ▲▼→ → trend-up/trend-down/arrow-right
uebungen.js: ↑↓→★ → trend-up/trend-down/arrow-right/star
admin.js: ✓✗ → check/x in HTML-Templates
moderation.js: ✓✗ → check/x Buttons
This commit is contained in:
parent
f6586c88ee
commit
fd76eddfb9
11 changed files with 81 additions and 43 deletions
|
|
@ -347,10 +347,13 @@ window.Page_dog_profile = (() => {
|
|||
if (!data?.tipps?.length) return;
|
||||
|
||||
const t = data.tipp_des_tages;
|
||||
const _ph = n => `<svg class="ph-icon" aria-hidden="true"><use href="/icons/phosphor.svg#${n}"></use></svg>`;
|
||||
const kat_icons = {
|
||||
'Fell':'✂️','Krallen':'💅','Zähne':'🦷','Ohren':'👂',
|
||||
'Augen':'👁','Pfoten':'🐾','Parasiten':'🦟',
|
||||
'Saisonal':'🌸','Gesundheitsvorsorge':'❤️','Welpen-Pflege':'🐶',
|
||||
'Fell': _ph('scissors'), 'Krallen': _ph('scissors'),
|
||||
'Zähne': _ph('tooth'), 'Ohren': _ph('ear'),
|
||||
'Augen': _ph('eye'), 'Pfoten': _ph('paw-print'),
|
||||
'Parasiten': _ph('bug'), 'Saisonal': _ph('flower'),
|
||||
'Gesundheitsvorsorge':_ph('heart'), 'Welpen-Pflege': _ph('dog'),
|
||||
};
|
||||
|
||||
const pflegeArtBadge = data.fell_pflege_art === 'schneiden'
|
||||
|
|
@ -381,7 +384,7 @@ window.Page_dog_profile = (() => {
|
|||
${t.saisonal_aktuell ? '🌸 Aktuell & Saisonal' : '💡 Tipp des Tages'}
|
||||
</div>
|
||||
<div style="font-weight:600;font-size:var(--text-sm);margin-bottom:4px">
|
||||
${kat_icons[t.kategorie]||'🐾'} ${_esc(t.titel)}
|
||||
${kat_icons[t.kategorie]||_ph('paw-print')} ${_esc(t.titel)}
|
||||
</div>
|
||||
<div style="font-size:12px;color:var(--c-text-secondary);margin-bottom:8px;
|
||||
line-height:1.5">${_esc(t.beschreibung||'')}</div>
|
||||
|
|
@ -415,7 +418,7 @@ window.Page_dog_profile = (() => {
|
|||
<div style="margin-bottom:var(--space-3)">
|
||||
<div style="font-size:11px;font-weight:700;color:var(--c-text-muted);
|
||||
text-transform:uppercase;margin-bottom:8px;display:flex;align-items:center">
|
||||
${kat_icons[kat]||'🐾'} ${_esc(kat)}${katBadge}</div>
|
||||
${kat_icons[kat]||_ph('paw-print')} ${_esc(kat)}${katBadge}</div>
|
||||
${katTipps.map(tip => `
|
||||
<details style="background:var(--c-surface-2);border-radius:8px;
|
||||
padding:10px;margin-bottom:6px">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue