feat: Add Credits & Attribution page

- add credits.njk
- add credits.css
- add tooltips.js
- add link in footer
This commit is contained in:
2025-08-30 11:47:01 -05:00
parent de71b2d663
commit aa44db20bf
10 changed files with 176 additions and 7 deletions

49
src/styles/credits.css Normal file
View File

@@ -0,0 +1,49 @@
/* CSS Style Rules for "Credits & Attributions" */
.credits-list {
list-style: none;
margin: 0;
padding: 0;
}
.credit {
display: flex; /* thumb + text side by side */
align-items: flex-start;
gap: 0.5rem; /* spacing between thumb and text */
margin-bottom: 1rem;
}
.thumb {
flex: 0 0 auto; /* dont stretch */
}
.thumb-inline {
display: block; /* visible by default (no JS) */
max-width: 40px; /* fallback size (from HTML attrs) */
height: auto;
}
.meta {
flex: 1 1 auto;
min-width: 0; /* ensures text can wrap inside flexbox */
word-wrap: break-word;
}
.meta p {
margin: 0.25rem 0;
}
.meta .small {
font-size: 0.875rem;
color: #555;
}
.thumb-tooltip { /* background image is handled by JS */
position: absolute;
display: none;
background-repeat: no-repeat;
background-size: contain; /* fit full image */
background-position: center;
border: 1px solid #ccc;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
z-index: 9999;
}