Sprint 15: Suche, Ausweis, Teilen, Widget
- Volltext-Suche im Tagebuch (LIKE über Titel/Text/Tags, Debounce 350ms)
- Digitaler Heimtierausweis als druckbare HTML-Seite (/ausweis/{dog_id})
Enthält Impfungen, Medikamente, Allergien, Tierärzte, Chip-Nr.
- Hund teilen: Einladungslink-System (dog_shares-Tabelle, /teilen/{token})
Geteilte Hunde erscheinen in der Hundeliste, Tagebuch/Gesundheit lesbar
- Widget-Seite /#widget: zufälliges Tagebuchbild + nächste Erinnerung
Als PWA-Shortcut im Manifest verankert
- SW-Cache by-v144, APP_VER 117
This commit is contained in:
parent
d5f09cd16b
commit
34f29f9d0a
16 changed files with 917 additions and 35 deletions
|
|
@ -239,6 +239,90 @@
|
|||
.health-transponder-label { color: var(--c-text-muted); }
|
||||
.health-transponder-edit { margin-left: auto; }
|
||||
|
||||
/* Diary: Suchleiste */
|
||||
.diary-search-wrap {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.diary-search-icon {
|
||||
position: absolute;
|
||||
left: var(--space-3);
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--c-text-muted);
|
||||
pointer-events: none;
|
||||
}
|
||||
.diary-search-input {
|
||||
width: 100%;
|
||||
padding: var(--space-2) var(--space-3) var(--space-2) 2.2rem;
|
||||
border: 1.5px solid var(--c-border);
|
||||
border-radius: var(--radius-md);
|
||||
font-size: var(--text-sm);
|
||||
font-family: var(--font-sans);
|
||||
background: var(--c-bg);
|
||||
color: var(--c-text);
|
||||
outline: none;
|
||||
transition: border-color var(--transition-fast);
|
||||
}
|
||||
.diary-search-input:focus { border-color: var(--c-primary); }
|
||||
|
||||
/* Widget-Karte */
|
||||
.widget-card {
|
||||
background: var(--c-surface);
|
||||
border-radius: var(--radius-xl);
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
.widget-dog-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
.widget-dog-av {
|
||||
width: 48px; height: 48px; border-radius: 50%;
|
||||
object-fit: cover; border: 2px solid var(--c-primary-light);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.widget-dog-av--placeholder {
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--c-surface-2); font-size: 1.5rem;
|
||||
}
|
||||
.widget-reminder {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--c-primary-subtle);
|
||||
color: var(--c-primary-dark);
|
||||
border-top: 1px solid var(--c-border-light);
|
||||
}
|
||||
.widget-reminder--overdue { background: var(--c-danger-subtle); color: var(--c-danger); }
|
||||
.widget-reminder--ok { background: var(--c-success-subtle); color: var(--c-success); }
|
||||
.widget-photo-wrap {
|
||||
position: relative;
|
||||
aspect-ratio: 4/3;
|
||||
overflow: hidden;
|
||||
border-top: 1px solid var(--c-border-light);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--c-surface-2);
|
||||
}
|
||||
.widget-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
.widget-photo-placeholder { flex-direction: column; gap: var(--space-2); }
|
||||
.widget-photo-caption {
|
||||
position: absolute;
|
||||
bottom: 0; left: 0; right: 0;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
background: linear-gradient(transparent, rgba(0,0,0,.55));
|
||||
color: #fff;
|
||||
font-size: var(--text-sm);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
}
|
||||
.widget-photo-date { font-size: var(--text-xs); opacity: .8; }
|
||||
|
||||
/* Import: Format-Auswahl-Karten */
|
||||
.import-format-card {
|
||||
display: flex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue