M2-M3: tile loader and album viewer
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
18a397653a
commit
6d39dc1713
24 files changed
+2687
-16
No files matched your search
+231
@@ -0,0 +1,231 @@
|
||||
:root {
|
||||
--graphite: #111114;
|
||||
--paper: #f3f1ec;
|
||||
--beam: #fff3cf;
|
||||
--steel: #8a94a6;
|
||||
--steel-deep: #3f4b60;
|
||||
--cinnabar: #c3361f;
|
||||
--font-display: "Bricolage Grotesque", "Noto Sans SC", system-ui, sans-serif;
|
||||
--font-body: "IBM Plex Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
|
||||
--font-chop: "Noto Serif SC", "Songti SC", serif;
|
||||
--ease-light: cubic-bezier(0.16, 1, 0.3, 1);
|
||||
--t-hover: 120ms;
|
||||
--t-reveal: 240ms;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100%;
|
||||
background: var(--graphite);
|
||||
color: var(--paper);
|
||||
font-family: var(--font-body);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--paper);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--beam);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.visually-hidden {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.index-list {
|
||||
max-width: 48rem;
|
||||
margin: 0 auto;
|
||||
padding: 48px 16px;
|
||||
}
|
||||
|
||||
.index-list h1 {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.index-list li {
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
.index-list time,
|
||||
.index-list span {
|
||||
font-family: var(--font-mono);
|
||||
color: var(--steel);
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
.has-viewer body.viewer {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
overflow: hidden;
|
||||
overscroll-behavior: none;
|
||||
}
|
||||
|
||||
.album-fallback {
|
||||
padding: 48px 16px;
|
||||
}
|
||||
|
||||
.has-viewer .album-fallback {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.stage {
|
||||
overflow: hidden;
|
||||
background: var(--graphite);
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.has-viewer .stage {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.stage.is-dragging {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.stage-canvas,
|
||||
.stage-fade {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.stage-fade {
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
transition: opacity var(--t-reveal) var(--ease-light);
|
||||
}
|
||||
|
||||
.caption {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
box-sizing: border-box;
|
||||
max-height: 60%;
|
||||
overflow: hidden;
|
||||
padding: 72px 24px 20px;
|
||||
background: linear-gradient(to top, rgba(17, 17, 20, 0.9) 0%, rgba(17, 17, 20, 0.62) 55%, rgba(17, 17, 20, 0) 100%);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity var(--t-reveal) var(--ease-light);
|
||||
}
|
||||
|
||||
.caption.is-visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.caption-meta {
|
||||
margin: 0;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.04em;
|
||||
color: var(--steel);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.caption-title {
|
||||
margin: 10px 0 0;
|
||||
font-family: var(--font-display);
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.caption-text {
|
||||
margin: 8px 0 0;
|
||||
max-width: 62ch;
|
||||
font-size: 15px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.caption-text em {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.end-card {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.chop {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 8px;
|
||||
background: var(--cinnabar);
|
||||
color: var(--paper);
|
||||
font-family: var(--font-chop);
|
||||
font-size: 34px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.signature {
|
||||
margin: 0;
|
||||
font-family: var(--font-display);
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.next-album {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 24px;
|
||||
text-decoration: none;
|
||||
transition: color var(--t-hover) var(--ease-light);
|
||||
}
|
||||
|
||||
.next-album:hover .next-title {
|
||||
color: var(--beam);
|
||||
}
|
||||
|
||||
.next-eyebrow {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--steel);
|
||||
}
|
||||
|
||||
.next-title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.next-album {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user