diff --git a/src/ahc/apps/animals/templates/animals/tabs/_diet.html b/src/ahc/apps/animals/templates/animals/tabs/_diet.html index 6cb8f23..80864a3 100644 --- a/src/ahc/apps/animals/templates/animals/tabs/_diet.html +++ b/src/ahc/apps/animals/templates/animals/tabs/_diet.html @@ -15,7 +15,7 @@

E {% endif %}
- E {% else %} -

No diet notes recorded yet.

+

No diet notes recorded yet.

{% endif %} {% else %} diff --git a/src/ahc/apps/animals/templates/animals/tabs/_mainpage.html b/src/ahc/apps/animals/templates/animals/tabs/_mainpage.html index 40d34d4..fcfcef2 100644 --- a/src/ahc/apps/animals/templates/animals/tabs/_mainpage.html +++ b/src/ahc/apps/animals/templates/animals/tabs/_mainpage.html @@ -14,7 +14,7 @@

E

{% if "medications" in allowed_categories %}

{% else %} -

No medication notes recorded yet.

+

No medication notes recorded yet.

{% endif %} {% else %} diff --git a/src/ahc/apps/animals/templates/animals/tabs/_notes.html b/src/ahc/apps/animals/templates/animals/tabs/_notes.html index 38de6ce..40ece16 100644 --- a/src/ahc/apps/animals/templates/animals/tabs/_notes.html +++ b/src/ahc/apps/animals/templates/animals/tabs/_notes.html @@ -6,7 +6,7 @@

Notes

{% endif %} @@ -90,7 +90,7 @@

Biometrics

{% else %} -

No biometric records yet.

+

No biometric records yet.

{% endif %} {% endif %} diff --git a/src/ahc/apps/animals/templates/animals/tabs/_ownership.html b/src/ahc/apps/animals/templates/animals/tabs/_ownership.html index 42d57e4..3640b3d 100644 --- a/src/ahc/apps/animals/templates/animals/tabs/_ownership.html +++ b/src/ahc/apps/animals/templates/animals/tabs/_ownership.html @@ -3,7 +3,7 @@

Ownership

Current owner: {{ animal.owner }}

-
Change owner + Change owner

Keepers

@@ -41,9 +41,9 @@

Keepers

{% endfor %} {% else %} -

No keepers assigned yet.

+

No keepers assigned yet.

{% endif %} - Add a keeper + Add a keeper diff --git a/src/ahc/apps/animals/templates/animals/tabs/_vaccinations.html b/src/ahc/apps/animals/templates/animals/tabs/_vaccinations.html index 2f1c348..6318c4d 100644 --- a/src/ahc/apps/animals/templates/animals/tabs/_vaccinations.html +++ b/src/ahc/apps/animals/templates/animals/tabs/_vaccinations.html @@ -26,7 +26,7 @@

Vaccinations

- Medical visit timeline
{% endif %} diff --git a/src/ahc/apps/homepage/templates/homepage/base.html b/src/ahc/apps/homepage/templates/homepage/base.html index 57e9824..5ee4ecb 100644 --- a/src/ahc/apps/homepage/templates/homepage/base.html +++ b/src/ahc/apps/homepage/templates/homepage/base.html @@ -34,6 +34,29 @@
+
+ {% if user.is_authenticated %} + + {% else %} + + {% endif %} +
@@ -50,32 +73,11 @@ diff --git a/src/ahc/apps/homepage/templates/homepage/homepage.html b/src/ahc/apps/homepage/templates/homepage/homepage.html index 1df47ca..8250891 100644 --- a/src/ahc/apps/homepage/templates/homepage/homepage.html +++ b/src/ahc/apps/homepage/templates/homepage/homepage.html @@ -13,40 +13,35 @@

Welcome to your pet organizer

Operations:

- {% if pinned_animals %} -
-
+

Pinned up:

-
+
{% for animal in pinned_animals %} {% include "partials/animal_card.html" %} {% endfor %}
-
{% endif %} {% if recent_animals %} -
-
+

Recent added:

-
+
{% for animal in recent_animals %} {% include "partials/animal_card.html" %} {% endfor %}
-
{% endif %} diff --git a/static/css/custom_pico.css b/static/css/custom_pico.css index f342701..eb40abd 100644 --- a/static/css/custom_pico.css +++ b/static/css/custom_pico.css @@ -105,15 +105,16 @@ h1, h2, h3, h4, h5, h6 { display: block; } -/* Site header: Pico's .grid provides the 2-col layout; we add height + clip */ +/* Site header: 3-col grid (brand | banner | user-nav); height clipped to 72px */ .site-header { padding-block: 0; } .site-header__inner { - height: 120px; - overflow: hidden; + min-height: 72px; + overflow: visible; align-items: center; + grid-template-columns: auto minmax(0, 1fr) max-content; } .site-header__brand { @@ -132,19 +133,69 @@ h1, h2, h3, h4, h5, h6 { } .site-header__banner { - height: 120px; + height: 72px; overflow: hidden; + min-width: 0; } -/* height: 120px beats Pico's img { height: auto } (higher specificity: 0,1,1 vs 0,0,1) */ +/* height: 72px beats Pico's img { height: auto } (higher specificity: 0,1,1 vs 0,0,1) */ .site-header__banner img { width: 100%; - height: 120px; + height: 72px; object-fit: cover; object-position: 50% 30%; display: block; } +.site-header__user-nav { + display: flex; + align-items: center; + justify-content: flex-end; +} + +.site-header__user-nav > nav { + margin-bottom: 0; +} + +.site-header__user-nav nav ul { + margin-bottom: 0; + flex-wrap: nowrap; + align-items: center; + gap: 0.5rem; +} + +.site-header__user-nav nav ul li { + display: flex; + align-items: center; + padding: 0; + margin: 0; +} + +.site-header__user-nav nav ul li > a[role="button"], +.site-header__user-nav nav ul li > button { + padding-block: 0.35rem; + font-size: 0.875rem; + margin-bottom: 0; +} + +.site-header__user-nav small { + display: inline-block; + max-width: 14ch; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +@media (max-width: 767px) { + .site-header__inner { + padding-block: 0.75rem; + grid-template-columns: 1fr; + } + .site-header__banner { + display: none; + } +} + /* Animal profile hero: image left, info right */ .animal-profile-hero { display: flex; @@ -366,3 +417,28 @@ footer nav ul li > button { display: flex; align-items: center; } + +.homepage-section { + margin-top: 2rem; +} + +.ops-row { + display: flex; + flex-wrap: wrap; + gap: var(--pico-spacing); + align-items: center; + margin-bottom: var(--pico-spacing); +} + +.animals-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); + gap: var(--pico-spacing); +} + +.empty-state { + color: var(--pico-muted-color); + font-style: italic; + padding: 1.5rem 0; + text-align: center; +}