Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ahc/apps/homepage/templates/homepage/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

{% block content %}

<div class="container welcome-heading">
<div class="welcome-heading">
<h2>Welcome to your pet organizer</h2>
</div>

{% if user.is_authenticated %}

<div class="container">
<div>
<h4>Operations:</h4>

<div class="ops-row">
Expand All @@ -21,7 +21,7 @@ <h4>Operations:</h4>
</div>

{% if pinned_animals %}
<div class="container homepage-section">
<div class="homepage-section">
<h4>Pinned up:</h4>

<div class="animals-grid">
Expand All @@ -34,7 +34,7 @@ <h4>Pinned up:</h4>
{% endif %}

{% if recent_animals %}
<div class="container homepage-section">
<div class="homepage-section">
<h4>Recent added:</h4>

<div class="animals-grid">
Expand Down
19 changes: 17 additions & 2 deletions static/css/custom_pico.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ main {
padding: 0;
list-style: none;
overflow-x: auto;
scroll-snap-type: x proximity;
/* Edge-fade affordance: "local" gradients mask content near each edge, "scroll" gradients show through only while there's more to scroll — no JS. */
background:
linear-gradient(to right, var(--pico-background-color) 0%, transparent 100%) left / 28px 100% no-repeat local,
linear-gradient(to left, var(--pico-background-color) 0%, transparent 100%) right / 28px 100% no-repeat local,
linear-gradient(to right, var(--pico-muted-border-color), transparent 100%) left / 14px 100% no-repeat scroll,
linear-gradient(to left, var(--pico-muted-border-color), transparent 100%) right / 14px 100% no-repeat scroll;
background-color: var(--pico-background-color);
}

.tab-nav ul li {
scroll-snap-align: start;
}

.tab-nav ul li a {
Expand Down Expand Up @@ -209,6 +221,7 @@ h1, h2, h3, h4, h5, h6 {
font-size: 0.875rem;
}

/* max-width: 767px deliberately mirrors Pico's own 768px tablet tier (767 = 768 - 1); timeline.css's unrelated 640px breakpoint is a separate, out-of-scope legacy component. */
@media (max-width: 767px) {
.site-header {
overflow: visible;
Expand Down Expand Up @@ -242,8 +255,10 @@ h1, h2, h3, h4, h5, h6 {
}

.animal-profile-hero__img img {
width: 180px;
height: 180px;
/* clamp() keeps 180px as the desktop ceiling (no visual growth) while shrinking to 96px on narrow viewports. */
width: clamp(96px, 22vw, 180px);
aspect-ratio: 1 / 1;
height: auto;
object-fit: cover;
border-radius: 8px;
display: block;
Expand Down