Add image serving with CC license attribution

- S3 image proxy at /img/{path} with cache headers
- Species images displayed on species + cultivar detail pages
- Full CC attribution below each image: author, license, Wikimedia Commons link
- Image struct updated with source_url and license fields
This commit is contained in:
2026-03-15 15:13:06 +01:00
parent 170aa84a0f
commit 1cba5a9eaf
6 changed files with 176 additions and 0 deletions
+32
View File
@@ -1165,6 +1165,38 @@ td.placeholder {
color: #e65100;
}
/* Species / cultivar images */
.species-image-wrap {
margin: 1rem 0 0.5rem;
}
.species-image {
max-width: 360px;
max-height: 320px;
width: auto;
height: auto;
border-radius: var(--radius);
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
object-fit: cover;
}
.image-attribution {
font-size: 0.75rem;
color: var(--text-muted);
margin-top: 0.35rem;
max-width: 360px;
}
.attribution-link {
color: var(--accent);
font-size: 0.75rem;
}
.attribution-link:hover {
text-decoration: underline;
}
/* Responsive */
@media (max-width: 768px) {