diff --git a/assets/css/main.css b/assets/css/main.css index ecf55e9..e3b6812 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -53,206 +53,72 @@ body { text-rendering: optimizeLegibility; } -img { display: block; max-width: 100%; } +img { display: block; max-width: 100%; } button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; } -a { color: inherit; text-decoration: none; } +a { color: inherit; text-decoration: none; } ::selection { background: var(--ink); color: var(--paper); } /* ── paper grain overlay ── */ body::before { content: ""; position: fixed; inset: 0; - pointer-events: none; - z-index: 1; - opacity: .06; - mix-blend-mode: multiply; + pointer-events: none; z-index: 1; opacity: .06; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,"); } -/* ── masthead ── */ -.masthead { - position: sticky; top: 0; z-index: 50; - backdrop-filter: blur(14px) saturate(1.05); - background: color-mix(in oklab, var(--paper) 86%, transparent); - border-bottom: 1px solid var(--rule); -} -.masthead__inner { - display: grid; - grid-template-columns: 1fr auto 1fr; - align-items: center; - gap: clamp(12px, 2vw, 24px); - padding: 14px var(--pad); -} -.masthead__left, .masthead__right { - display: flex; align-items: center; gap: 18px; - font-size: 11px; letter-spacing: .14em; text-transform: uppercase; - color: var(--ink-soft); - min-width: 0; -} -.masthead__left > *, .masthead__right > * { white-space: nowrap; } -.mh-link { position: relative; padding-bottom: 2px; transition: color .2s; } -.mh-link::after { +/* ── nav link animated underline ── */ +.nav-link { position: relative; padding-bottom: 2px; transition: color .2s; } +.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; - height: 1px; background: currentColor; transform: scaleX(.5); transform-origin: left; + height: 1px; background: currentColor; + transform: scaleX(.5); transform-origin: left; transition: transform .25s, background .2s; } -.mh-link:hover { color: var(--ink); } -.mh-link:hover::after { transform: scaleX(1); background: var(--roux); } -.masthead__right { justify-content: flex-end; } -.masthead__date { font-variant-numeric: tabular-nums; } -.masthead__logo { display: block; line-height: 1; color: var(--ink); justify-self: center; } +.nav-link:hover { color: var(--ink); } +.nav-link:hover::after { transform: scaleX(1); background: var(--roux); } -.logo { display: grid; grid-template-columns: auto; justify-items: center; gap: 4px; text-align: center; } -.logo__mark { width: 30px; height: 30px; display: block; } -.logo__word { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .045em; color: var(--ink); } -.logo__tag { font: 500 8.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); } +/* ── card animation (uses --d CSS custom property for stagger) ── */ +@keyframes rouxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } +.card { animation: rouxIn .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); } +.card:hover .card-img { transform: scale(1.025); } -@media (max-width: 620px) { - .logo__mark { width: 22px; height: 22px; } - .logo__word { font-size: 22px; } - .logo__tag { font-size: 7.5px; letter-spacing: .28em; } +/* ── issue card animation ── */ +[data-issue-card] { + opacity: 0; transform: translateY(8px); + animation: rouxIn .65s cubic-bezier(.2,.7,.2,1) forwards; + animation-delay: var(--d, 0ms); } -@media (max-width: 1100px) { .masthead__left .mh-issue, .masthead__right .mh-city { display: none; } } -@media (max-width: 820px) { .masthead__left .mh-pub, .masthead__left .mh-sep, .masthead__right .mh-sep { display: none; } } -@media (max-width: 620px) { .masthead__inner { padding: 12px var(--pad); } .masthead__left { font-size: 10px; gap: 10px; } .masthead__right { font-size: 10px; gap: 10px; } } -@media (max-width: 460px) { .masthead__inner { grid-template-columns: 1fr; } .masthead__left, .masthead__right { display: none; } .masthead__logo { justify-self: center; } } +@supports (animation-timeline: view()) { [data-issue-card] { opacity: 1; transform: none; animation: none; } } -/* subhead: search bar */ -.subhead { - display: flex; align-items: stretch; - border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule); - background: color-mix(in oklab, var(--paper) 95%, transparent); - position: relative; -} -.subhead__search { - flex: 1; display: flex; align-items: center; gap: 12px; - padding: 10px var(--pad); border-right: 1px solid var(--rule-2); min-width: 0; -} -.subhead__search input { - flex: 1; min-width: 0; border: 0; background: transparent; outline: none; - font: 400 16px/1 var(--serif); font-style: italic; color: var(--ink); letter-spacing: .005em; padding: 6px 0; -} -.subhead__search input::placeholder { color: var(--ink-soft); opacity: .9; } -.subhead__kbd { flex: 0 0 auto; font: 500 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--rule); padding: 5px 7px; border-radius: 3px; color: var(--ink-soft); } -.subhead__count { display: flex; align-items: center; padding: 0 var(--pad); font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; } -.subhead__count b { color: var(--ink); font-weight: 600; margin-right: 4px; } -@media (max-width: 720px) { .subhead__count { display: none; } .subhead__kbd { display: none; } .subhead__search input { font-size: 15px; } } - -/* tabs */ -.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 10px var(--pad); border-bottom: 1px solid var(--rule-2); background: var(--paper); scrollbar-width: none; } -.tabs::-webkit-scrollbar { display: none; } -.tabs button { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; } -.tabs button:hover { color: var(--ink); } +/* ── tabs: JS drives aria-pressed, CSS drives the active look ── */ .tabs button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); } -/* ── hero strip ── */ -.hero { - padding: clamp(40px, 8vw, 96px) var(--pad) clamp(28px, 5vw, 64px); - display: grid; grid-template-columns: 1fr; gap: 18px; - border-bottom: 1px solid var(--rule); -} -.hero__eyebrow { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 12px; } -.hero__eyebrow::before { content: ""; height: 1px; width: 36px; background: var(--ink-soft); } -.hero__title { margin: 0; font: 400 clamp(48px, 9vw, 132px)/0.92 var(--display); letter-spacing: -0.01em; } -.hero__title em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--roux); } -.hero__lede { max-width: 56ch; font: 400 clamp(16px, 1.4vw, 19px)/1.5 var(--serif); color: var(--ink-2); margin-top: 6px; } -.hero__lede em { color: var(--roux); font-style: italic; } - -/* ── photo grid ── */ -.grid { - padding: clamp(20px, 3vw, 40px) var(--pad) 80px; - display: grid; - grid-template-columns: repeat(4, minmax(0, 1fr)); - column-gap: var(--gap); - row-gap: clamp(40px, 5vw, 72px); -} -@media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } -@media (max-width: 820px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } -@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } } - -.grid[data-density="cozy"] { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 88px; } -.grid[data-density="compact"] { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 56px; } -@media (max-width: 1200px) { .grid[data-density="cozy"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid[data-density="compact"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } } -@media (max-width: 820px) { .grid[data-density="cozy"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid[data-density="compact"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } } -@media (max-width: 520px) { .grid[data-density="cozy"] { grid-template-columns: 1fr; } .grid[data-density="compact"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } } - -/* card */ -.card { display: block; cursor: pointer; } -.card__frame { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--paper-2); border-radius: 1px; } -.card__frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(22,17,13,.04); pointer-events: none; } -.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.1,1), filter .6s; filter: saturate(.92) contrast(1.02); } -.card:hover .card__img { transform: scale(1.025); } -.card__num { position: absolute; top: 10px; left: 10px; font: 500 10px/1 var(--sans); letter-spacing: .18em; color: var(--paper); mix-blend-mode: difference; font-variant-numeric: tabular-nums; } -.card__cat { position: absolute; top: 10px; right: 10px; font: 500 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--paper); mix-blend-mode: difference; } -.card__issue { position: absolute; bottom: 10px; left: 10px; font: 500 10px/1 var(--sans); letter-spacing: .18em; color: var(--paper); mix-blend-mode: difference; font-variant-numeric: tabular-nums; } -.card__meta { margin-top: 14px; display: grid; gap: 4px; } -.card__title { font: 400 clamp(20px, 1.6vw, 26px)/1.1 var(--display); letter-spacing: 0; margin: 0; } -.card__title em { font-family: var(--serif); font-style: italic; color: var(--roux); } -.card__sub { font: 400 12px/1.4 var(--sans); letter-spacing: .04em; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; } -.card__sub .dot { width: 3px; height: 3px; background: var(--ink-soft); border-radius: 50%; opacity: .5; } -.card__desc { font: 400 13px/1.5 var(--serif); color: var(--ink-2); font-style: italic; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } - -/* highlight matches */ +/* ── search highlight ── */ mark.hl { background: color-mix(in oklab, var(--roux) 22%, transparent); color: inherit; padding: 0 1px; border-radius: 1px; } -/* ── issues archive ── */ -.issues-grid { - padding: clamp(20px, 3vw, 40px) var(--pad) 80px; - display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); - column-gap: clamp(24px, 3vw, 48px); row-gap: clamp(36px, 5vw, 64px); +/* ── search popup (position + display driven by JS) ── */ +.searchpop { + position: absolute; top: calc(100% - 1px); left: 0; right: 0; + background: var(--paper); border: 1px solid var(--rule); border-top: 0; + max-height: min(70vh, 620px); overflow: auto; display: none; z-index: 60; + box-shadow: 0 24px 60px -30px rgba(22,17,13,.35); } -@media (max-width: 820px) { .issues-grid { grid-template-columns: 1fr; } } - -.issue-card { - display: grid; grid-template-columns: 240px 1fr; - gap: clamp(20px, 2.4vw, 36px); align-items: start; - color: inherit; - padding-bottom: clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--rule-2); -} -@media (max-width: 560px) { .issue-card { grid-template-columns: 160px 1fr; } } -.issue-card--forthcoming { color: var(--ink-soft); cursor: default; } - -.issue-card__cover { aspect-ratio: 2/3; overflow: hidden; background: var(--paper-2); position: relative; } -.issue-card__cover::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(22,17,13,.04); } -.issue-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.1,1); } -.issue-card:not(.issue-card--forthcoming):hover .issue-card__cover img { transform: scale(1.025); } -.issue-card__forth { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--ink-soft); font: 500 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; border: 1px dashed var(--rule); margin: 12px; } -.issue-card__forth svg { opacity: .5; } -.issue-card__meta { padding-top: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; } -.issue-card__num { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); } -.issue-card__title { margin: 0; font: 400 clamp(28px, 3vw, 44px)/1.0 var(--display); letter-spacing: -0.005em; } -.issue-card__title em { font-family: var(--serif); font-style: italic; color: var(--roux); font-weight: 300; } -.issue-card--forthcoming .issue-card__title { color: var(--ink-soft); } -.issue-card__blurb { font: 400 14.5px/1.55 var(--serif); font-style: italic; color: var(--ink-2); margin: 0; max-width: 52ch; } -.issue-card__foot { margin-top: 4px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; font: 500 10.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); width: 100%; } -.issue-card__foot > span:first-child { flex: 1; min-width: 0; } -.issue-card__cta { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; letter-spacing: .14em; } -.issue-card__cta--muted { color: var(--ink-soft); border-bottom-color: var(--rule); } - -/* ── empty state ── */ -.empty { grid-column: 1/-1; padding: 80px 0; text-align: center; color: var(--ink-soft); } -.empty h3 { font: 400 28px/1.2 var(--display); color: var(--ink); margin: 0 0 8px; } -.empty button { margin-top: 16px; border: 1px solid var(--ink); padding: 9px 18px; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; } -.empty button:hover { background: var(--ink); color: var(--paper); } - -/* ── search popup ── */ -.searchpop { position: absolute; top: calc(100% - 1px); left: 0; right: 0; background: var(--paper); border: 1px solid var(--rule); border-top: 0; max-height: min(70vh, 620px); overflow: auto; display: none; z-index: 60; box-shadow: 0 24px 60px -30px rgba(22,17,13,.35); } .searchpop[data-open="true"] { display: block; } -.searchpop__section { padding: 12px var(--pad); border-bottom: 1px solid var(--rule-2); } -.searchpop__section:last-child { border-bottom: 0; } -.searchpop__label { font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; } -.searchpop__label small { font-family: var(--mono); letter-spacing: 0; font-size: 10px; } -.searchpop__chips { display: flex; flex-wrap: wrap; gap: 6px; } -.searchpop__chip { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: .06em; color: var(--ink-2); } -.searchpop__chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } -.searchpop__chip b { color: var(--roux); font-weight: 600; } -.searchpop__hits { display: grid; gap: 2px; } -.searchpop__hit { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 8px 6px; border-radius: 3px; text-align: left; width: 100%; } -.searchpop__hit:hover { background: var(--paper-2); } -.searchpop__hit img { width: 44px; height: 66px; object-fit: cover; background: var(--paper-2); } -.searchpop__hit .t { font: 400 18px/1.1 var(--display); } -.searchpop__hit .s { font: 400 12px/1.3 var(--sans); color: var(--ink-soft); margin-top: 3px; } -.searchpop__hit .n { font: 500 10px/1 var(--mono); color: var(--ink-soft); letter-spacing: .1em; } +.sp-section { padding: 12px var(--pad); border-bottom: 1px solid var(--rule-2); } +.sp-section:last-child { border-bottom: 0; } +.sp-label { font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; } +.sp-label small { font-family: var(--mono); letter-spacing: 0; font-size: 10px; } +.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; } +.sp-chip { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: .06em; color: var(--ink-2); } +.sp-chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } +.sp-chip b { color: var(--roux); font-weight: 600; } +.sp-hits { display: grid; gap: 2px; } +.sp-hit { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 8px 6px; border-radius: 3px; text-align: left; width: 100%; } +.sp-hit:hover { background: var(--paper-2); } +.sp-hit img { width: 44px; height: 66px; object-fit: cover; background: var(--paper-2); } +.sp-hit .t { font: 400 18px/1.1 var(--display); } +.sp-hit .s { font: 400 12px/1.3 var(--sans); color: var(--ink-soft); margin-top: 3px; } +.sp-hit .n { font: 500 10px/1 var(--mono); color: var(--ink-soft); letter-spacing: .1em; } /* ── lightbox ── */ .lb { @@ -267,68 +133,50 @@ mark.hl { background: color-mix(in oklab, var(--roux) 22%, transparent); color: @media (max-width: 920px) { .lb { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; grid-template-areas: "topbar" "stage" "meta" "thumbs"; } } -.lb__topbar { grid-area: topbar; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid rgba(236,231,221,.08); } -.lb__brand { display: flex; align-items: center; gap: 14px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #c8c0b1; } -.lb__brand svg { height: 18px; } -.lb__index { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: #c8c0b1; font-variant-numeric: tabular-nums; } -.lb__index b { color: #ece7dd; } -.lb__close { width: 36px; height: 36px; border: 1px solid rgba(236,231,221,.18); border-radius: 50%; display: grid; place-items: center; color: #ece7dd; } -.lb__close:hover { background: rgba(236,231,221,.08); } -.lb__stage { grid-area: stage; position: relative; overflow: hidden; display: grid; place-items: center; padding: 24px; min-height: 0; } -.lb__track { position: absolute; inset: 0; display: flex; transition: transform .55s cubic-bezier(.4,.0,.2,1); will-change: transform; } -.lb__slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; min-width: 0; } -.lb__frame { position: relative; aspect-ratio: 2/3; height: 100%; max-width: 100%; background: #1a1411; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(236,231,221,.04); } -.lb__img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; } -.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(236,231,221,.06); border: 1px solid rgba(236,231,221,.16); backdrop-filter: blur(8px); display: grid; place-items: center; color: #ece7dd; z-index: 5; transition: background .2s; } -.lb__nav:hover { background: rgba(236,231,221,.14); } -.lb__nav--prev { left: 18px; } -.lb__nav--next { right: 18px; } -.lb__meta { grid-area: meta; padding: 28px 28px 22px; border-left: 1px solid rgba(236,231,221,.08); display: flex; flex-direction: column; gap: 18px; overflow: auto; } -@media (max-width: 920px) { .lb__meta { border-left: 0; border-top: 1px solid rgba(236,231,221,.08); padding: 18px 22px; max-height: 38vh; } } -.lb__cat { font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--roux); } -.lb__cat::after { content: ""; display: block; height: 1px; width: 30px; background: var(--roux); margin-top: 8px; } -.lb__title { margin: 0; font: 400 clamp(32px, 3vw, 44px)/1 var(--display); letter-spacing: -0.005em; color: #f5f0e6; } -.lb__title em { font-family: var(--serif); font-style: italic; color: #d99e8e; font-weight: 300; } -.lb__desc { font: 400 16px/1.55 var(--serif); font-style: italic; color: #c8c0b1; } -.lb__factgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; border-top: 1px solid rgba(236,231,221,.08); border-bottom: 1px solid rgba(236,231,221,.08); padding: 16px 0; } -.lb__fact dt { font: 500 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #9b9384; margin-bottom: 5px; } -.lb__fact dd { margin: 0; font: 400 14px/1.3 var(--serif); color: #ece7dd; } -.lb__tags { display: flex; flex-wrap: wrap; gap: 6px; } -.lb__tag { padding: 5px 10px; border: 1px solid rgba(236,231,221,.18); border-radius: 999px; font: 500 10px/1 var(--sans); letter-spacing: .1em; text-transform: lowercase; color: #ece7dd; } -.lb__tag:hover { background: rgba(236,231,221,.08); } -.lb__share { margin-top: auto; display: flex; gap: 8px; } -.lb__sh { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border: 1px solid rgba(236,231,221,.2); font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #ece7dd; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; } -.lb__sh--primary { flex: 1; min-width: 0; } -.lb__sh:not(.lb__sh--primary) { width: 44px; padding: 11px 0; flex: 0 0 auto; } -.lb__sh:hover { background: #ece7dd; color: #0c0907; border-color: #ece7dd; } -.lb__sh.is-ok { background: rgba(236,231,221,.08); color: #ece7dd; border-color: rgba(236,231,221,.32); } -.lb__thumbs { grid-area: thumbs; display: flex; gap: 6px; padding: 12px 22px 16px; overflow-x: auto; border-top: 1px solid rgba(236,231,221,.08); scrollbar-width: thin; scrollbar-color: rgba(236,231,221,.16) transparent; } -.lb__thumb { flex: 0 0 auto; width: 42px; aspect-ratio: 2/3; background: #1a1411; border: 1px solid transparent; opacity: .45; transition: opacity .2s, border-color .2s; position: relative; } -.lb__thumb:hover { opacity: .8; } -.lb__thumb img { width: 100%; height: 100%; object-fit: cover; } -.lb__thumb[aria-current="true"] { opacity: 1; border-color: var(--roux); } -.lb__thumb[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: var(--roux); } - -/* ── footer ── */ -.foot { border-top: 1px solid var(--rule); padding: 36px var(--pad) 56px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; font: 400 12px/1.5 var(--sans); color: var(--ink-soft); } -@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } } -.foot h4 { font: 500 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; } -.foot a:hover { color: var(--ink); } -.foot__roux { font: 400 clamp(60px, 8vw, 110px)/0.92 var(--display); color: var(--ink); margin: 0 0 14px; } -.foot__roux em { font-family: var(--serif); font-style: italic; color: var(--roux); font-weight: 300; } +.lb-topbar { grid-area: topbar; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid rgba(236,231,221,.08); } +.lb-brand { display: flex; align-items: center; gap: 14px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #c8c0b1; } +.lb-brand svg { height: 18px; } +.lb-index { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: #c8c0b1; font-variant-numeric: tabular-nums; } +.lb-index b { color: #ece7dd; } +.lb-close { width: 36px; height: 36px; border: 1px solid rgba(236,231,221,.18); border-radius: 50%; display: grid; place-items: center; color: #ece7dd; } +.lb-close:hover { background: rgba(236,231,221,.08); } +.lb-stage { grid-area: stage; position: relative; overflow: hidden; display: grid; place-items: center; padding: 24px; min-height: 0; } +.lb-track { position: absolute; inset: 0; display: flex; transition: transform .55s cubic-bezier(.4,.0,.2,1); will-change: transform; } +.lb-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; min-width: 0; } +.lb-frame { position: relative; aspect-ratio: 2/3; height: 100%; max-width: 100%; background: #1a1411; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(236,231,221,.04); } +.lb-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; } +.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(236,231,221,.06); border: 1px solid rgba(236,231,221,.16); backdrop-filter: blur(8px); display: grid; place-items: center; color: #ece7dd; z-index: 5; transition: background .2s; } +.lb-nav:hover { background: rgba(236,231,221,.14); } +.lb-nav-prev { left: 18px; } +.lb-nav-next { right: 18px; } +.lb-meta { grid-area: meta; padding: 28px 28px 22px; border-left: 1px solid rgba(236,231,221,.08); display: flex; flex-direction: column; gap: 18px; overflow: auto; } +@media (max-width: 920px) { .lb-meta { border-left: 0; border-top: 1px solid rgba(236,231,221,.08); padding: 18px 22px; max-height: 38vh; } } +.lb-cat { font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--roux); } +.lb-cat::after { content: ""; display: block; height: 1px; width: 30px; background: var(--roux); margin-top: 8px; } +.lb-title { margin: 0; font: 400 clamp(32px,3vw,44px)/1 var(--display); letter-spacing: -0.005em; color: #f5f0e6; } +.lb-title em { font-family: var(--serif); font-style: italic; color: #d99e8e; font-weight: 300; } +.lb-desc { font: 400 16px/1.55 var(--serif); font-style: italic; color: #c8c0b1; } +.lb-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; border-top: 1px solid rgba(236,231,221,.08); border-bottom: 1px solid rgba(236,231,221,.08); padding: 16px 0; } +.lb-fact dt { font: 500 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #9b9384; margin-bottom: 5px; } +.lb-fact dd { margin: 0; font: 400 14px/1.3 var(--serif); color: #ece7dd; } +.lb-tags { display: flex; flex-wrap: wrap; gap: 6px; } +.lb-tag { padding: 5px 10px; border: 1px solid rgba(236,231,221,.18); border-radius: 999px; font: 500 10px/1 var(--sans); letter-spacing: .1em; text-transform: lowercase; color: #ece7dd; } +.lb-tag:hover { background: rgba(236,231,221,.08); } +.lb-share { margin-top: auto; display: flex; gap: 8px; } +.lb-sh { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border: 1px solid rgba(236,231,221,.2); font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #ece7dd; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; } +.lb-sh-primary { flex: 1; min-width: 0; } +.lb-sh:not(.lb-sh-primary) { width: 44px; padding: 11px 0; flex: 0 0 auto; } +.lb-sh:hover { background: #ece7dd; color: #0c0907; border-color: #ece7dd; } +.lb-sh.is-ok { background: rgba(236,231,221,.08); color: #ece7dd; border-color: rgba(236,231,221,.32); } +.lb-thumbs { grid-area: thumbs; display: flex; gap: 6px; padding: 12px 22px 16px; overflow-x: auto; border-top: 1px solid rgba(236,231,221,.08); scrollbar-width: thin; scrollbar-color: rgba(236,231,221,.16) transparent; } +.lb-thumb { flex: 0 0 auto; width: 42px; aspect-ratio: 2/3; background: #1a1411; border: 1px solid transparent; opacity: .45; transition: opacity .2s, border-color .2s; position: relative; } +.lb-thumb:hover { opacity: .8; } +.lb-thumb img { width: 100%; height: 100%; object-fit: cover; } +.lb-thumb[aria-current="true"] { opacity: 1; border-color: var(--roux); } +.lb-thumb[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: var(--roux); } /* ── ribbon ── */ -.ribbon { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: var(--paper); font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 10px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; transform: translateY(0); transition: transform .4s; } .ribbon.hidden { transform: translateY(100%); } -.ribbon a { color: var(--roux); font-weight: 600; } -.ribbon button { color: var(--paper); opacity: .7; } -.ribbon button:hover { opacity: 1; } - -/* ── animations ── */ -@keyframes rouxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } -.card { animation: rouxIn .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); } -.issue-card { opacity: 0; transform: translateY(8px); animation: rouxIn .65s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0ms); } -@supports (animation-timeline: view()) { .issue-card { opacity: 1; transform: none; animation: none; } } /* ── view transitions ── */ ::view-transition-old(root) { animation: 150ms ease-out roux-fade-out; } diff --git a/assets/js/app.js b/assets/js/app.js index c7e1c97..9b5bff0 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -129,16 +129,16 @@ const cats = allCats(); const tags = allTags(); searchPop.innerHTML = ` -
-
Categories ${cats.length}
-
- ${cats.map(c => ``).join('')} +
+
Categories ${cats.length}
+
+ ${cats.map(c => ``).join('')}
-
-
Popular tags ${tags.length}
-
- ${tags.map(t => ``).join('')} +
+
Popular tags ${tags.length}
+
+ ${tags.map(t => ``).join('')}
`; searchPop.dataset.open = 'true'; @@ -147,17 +147,17 @@ const hits = INDEX(q) || []; const terms = q.toLowerCase().split(/\s+/).filter(t => t.length > 1); if (!hits.length) { - searchPop.innerHTML = `

No plates match — try gothic, warrior, or neon.

`; + searchPop.innerHTML = `

No plates match — try gothic, warrior, or neon.

`; searchPop.dataset.open = 'true'; return; } const shown = hits.slice(0, 6); searchPop.innerHTML = ` -
-
Plates ${hits.length}
-
+
+
Plates ${hits.length}
+
${shown.map(p => ` -
`; @@ -306,8 +305,8 @@ const url = new URL(this.dataset.url, location.origin).href; navigator.clipboard.writeText(url).then(() => { this.classList.add('is-ok'); - this.querySelector('.lb__sh-l').textContent = 'Copied!'; - setTimeout(() => { this.classList.remove('is-ok'); this.querySelector('.lb__sh-l').textContent = 'Copy link'; }, 2000); + this.querySelector('.lb-sh-l').textContent = 'Copied!'; + setTimeout(() => { this.classList.remove('is-ok'); this.querySelector('.lb-sh-l').textContent = 'Copy link'; }, 2000); }); }); } @@ -315,22 +314,22 @@ function lbBuildThumbs() { if (!lbThumbs) return; lbThumbs.innerHTML = lbList.map((p, i) => - `` ).join(''); lbThumbs.addEventListener('click', e => { - const btn = e.target.closest('.lb__thumb'); + const btn = e.target.closest('.lb-thumb'); if (btn) goToSlide(parseInt(btn.dataset.i)); }); } function syncThumbs() { if (!lbThumbs) return; - lbThumbs.querySelectorAll('.lb__thumb').forEach((b, i) => { + lbThumbs.querySelectorAll('.lb-thumb').forEach((b, i) => { b.setAttribute('aria-current', i === lbIdx ? 'true' : 'false'); }); - const active = lbThumbs.querySelector('.lb__thumb[aria-current="true"]'); + const active = lbThumbs.querySelector('.lb-thumb[aria-current="true"]'); if (active) active.scrollIntoView({ inline: 'center', behavior: 'smooth' }); } @@ -432,7 +431,6 @@ syncTabs(); // If new page has a slug to open - const script = doc.querySelector('script[data-open-slug]'); const openSlug = window.__ROUX_OPEN_SLUG = doc.querySelector('[data-open-slug]')?.dataset.openSlug || null; if (openSlug) { const opened = POSTS.find(p => p.slug === openSlug); diff --git a/hugo_stats.json b/hugo_stats.json index 55532d3..e7ccef1 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -40,69 +40,222 @@ "title" ], "classes": [ + "[&::-webkit-scrollbar]:hidden", + "[&_b]:font-semibold", + "[&_b]:mr-1", + "[&_b]:text-ink", + "[-webkit-box-orient:vertical]", + "[-webkit-line-clamp:2]", + "[background:color-mix(in_oklab,var(--paper)_86%,transparent)]", + "[background:color-mix(in_oklab,var(--paper)_95%,transparent)]", + "[display:-webkit-box]", + "[filter:saturate(.92)_contrast(1.02)]", + "[grid-template-columns:1fr_auto_1fr]", + "[grid-template-columns:2fr_1fr_1fr_1fr]", + "[grid-template-columns:repeat(auto-fill,minmax(220px,1fr))]", + "[grid-template-columns:repeat(auto-fill,minmax(280px,1fr))]", + "[scrollbar-width:none]", + "[transition-duration:.9s,.6s]", + "[transition-timing-function:cubic-bezier(.2,.7,.1,1),ease]", + "absolute", + "after:absolute", + "after:content-['']", + "after:inset-0", + "after:pointer-events-none", + "after:shadow-[inset_0_0_0_1px_rgba(22,17,13,.04)]", + "align-top", + "aspect-[2/3]", + "backdrop-blur-[14px]", + "bg-[var(--paper)]", + "bg-ink", + "bg-paper-2", + "bg-transparent", + "block", + "border", + "border-0", + "border-[var(--rule)]", + "border-[var(--rule-2)]", + "border-b", + "border-current", + "border-current/30", + "border-r", + "border-t", + "border-transparent", + "bottom-0", + "bottom-[10px]", "card", - "card__cat", - "card__desc", - "card__frame", - "card__img", - "card__meta", - "card__num", - "card__sub", - "card__title", - "dot", - "foot", - "foot__roux", + "card-img", + "cursor-pointer", + "cursor-text", + "duration-200", + "duration-300", + "duration-700", + "fixed", + "flex", + "flex-1", + "flex-col", + "font-display", + "font-light", + "font-medium", + "font-mono", + "font-normal", + "font-sans", + "font-serif", + "gap-1", + "gap-10", + "gap-3", + "gap-4", + "gap-[18px]", + "gap-[clamp(12px,2vw,24px)]", + "gap-[var(--gap)]", "grid", - "hero", - "hero__eyebrow", - "hero__lede", - "hero__title", - "issue-card", - "issue-card--forthcoming", - "issue-card__blurb", - "issue-card__cover", - "issue-card__cta", - "issue-card__cta--muted", - "issue-card__foot", - "issue-card__forth", - "issue-card__meta", - "issue-card__num", - "issue-card__title", - "issues-grid", + "group", + "group-hover:scale-[1.02]", + "h-6", + "h-[30px]", + "h-full", + "hover:opacity-100", + "hover:text-ink", + "inset-0", + "inset-x-0", + "italic", + "items-center", + "items-stretch", + "justify-between", + "justify-center", + "justify-end", + "justify-items-center", + "justify-self-center", "lb", - "lb__brand", - "lb__close", - "lb__index", - "lb__meta", - "lb__nav", - "lb__nav--next", - "lb__nav--prev", - "lb__stage", - "lb__thumbs", - "lb__topbar", - "lb__track", - "logo", - "logo__mark", - "logo__tag", - "logo__word", - "masthead", - "masthead__date", - "masthead__inner", - "masthead__left", - "masthead__logo", - "masthead__right", - "mh-city", - "mh-issue", - "mh-link", - "mh-pub", - "mh-sep", + "lb-brand", + "lb-close", + "lb-index", + "lb-meta", + "lb-nav", + "lb-nav-next", + "lb-nav-prev", + "lb-stage", + "lb-thumbs", + "lb-topbar", + "lb-track", + "leading-[0.92]", + "leading-[0.94]", + "leading-[1.05]", + "leading-[1.1]", + "leading-[1.4]", + "leading-[1.5]", + "leading-[1.65]", + "leading-none", + "left-[10px]", + "m-0", + "max-[1100px]:hidden", + "max-[460px]:[grid-template-columns:1fr]", + "max-[460px]:hidden", + "max-[620px]:gap-[10px]", + "max-[620px]:h-[22px]", + "max-[620px]:py-3", + "max-[620px]:text-[10px]", + "max-[620px]:text-[22px]", + "max-[620px]:text-[7.5px]", + "max-[620px]:tracking-[.28em]", + "max-[620px]:w-[22px]", + "max-[720px]:hidden", + "max-[720px]:text-[15px]", + "max-[820px]:[grid-template-columns:1fr_1fr]", + "max-[820px]:hidden", + "max-w-[55ch]", + "mb-2", + "mb-4", + "mb-5", + "mb-[14px]", + "min-w-0", + "mix-blend-difference", + "ml-1", + "ml-2", + "mt-0.5", + "mt-[14px]", + "mt-auto", + "nav-link", + "object-cover", + "opacity-50", + "opacity-60", + "outline-none", + "overflow-hidden", + "overflow-x-auto", + "pb-14", + "pb-[clamp(28px,3.5vw,48px)]", + "place-items-center", + "placeholder:opacity-90", + "placeholder:text-ink-soft", + "pt-4", + "pt-9", + "pt-[clamp(36px,5vw,64px)]", + "px-[14px]", + "px-[6px]", + "px-[7px]", + "px-[var(--pad)]", + "py-1.5", + "py-2", + "py-3", + "py-[10px]", + "py-[14px]", + "py-[3px]", + "py-[5px]", + "py-[var(--gap)]", + "relative", "ribbon", + "right-[10px]", + "rounded-[1px]", + "rounded-[3px]", + "rounded-full", + "saturate-[1.05]", "searchpop", - "subhead", - "subhead__count", - "subhead__kbd", - "subhead__search", - "tabs" + "shrink-0", + "sticky", + "tabs", + "tabular-nums", + "text-[10px]", + "text-[11px]", + "text-[12px]", + "text-[13px]", + "text-[16px]", + "text-[30px]", + "text-[8.5px]", + "text-[clamp(13px,1vw,16px)]", + "text-[clamp(20px,1.6vw,26px)]", + "text-[clamp(22px,2vw,30px)]", + "text-[clamp(48px,7vw,96px)]", + "text-[clamp(60px,8vw,110px)]", + "text-center", + "text-ink", + "text-ink-2", + "text-ink-soft", + "text-paper", + "text-roux", + "top-0", + "top-[10px]", + "tracking-[.005em]", + "tracking-[.045em]", + "tracking-[.04em]", + "tracking-[.12em]", + "tracking-[.14em]", + "tracking-[.16em]", + "tracking-[.18em]", + "tracking-[.1em]", + "tracking-[.22em]", + "tracking-[.32em]", + "tracking-normal", + "transition-[color,border-color,background]", + "transition-[transform,filter]", + "transition-opacity", + "transition-transform", + "uppercase", + "w-6", + "w-[30px]", + "w-full", + "whitespace-nowrap", + "z-50", + "z-[100]" ], "ids": [ "content", diff --git a/layouts/_default/list.html b/layouts/_default/list.html index cb5f97b..f6aabf6 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,60 +1,35 @@ {{ define "main" }} {{/* Category / tag taxonomy list pages */}} -
+
{{- if eq .Kind "taxonomy" }} -
{{ .Type | humanize }}
-

{{ .Title }}

-

+

{{ .Type | humanize }}
+

{{ .Title }}

+

{{ len .Pages }} {{ if eq (len .Pages) 1 }}plate{{ else }}plates{{ end }} in this section. - Return to archive → + Return to archive →

{{- else if eq .Kind "term" }} -
{{ .Type | humanize | singularize }}
-

{{ .Title }}

-

+

{{ .Type | humanize | singularize }}
+

{{ .Title }}

+

{{ len .Pages }} {{ if eq (len .Pages) 1 }}plate{{ else }}plates{{ end }} tagged {{ .Title }}. - Return to archive → + Return to archive →

{{- else }} -
The Archive
-

All plates

-

Return to home →

+
The Archive
+

All plates

+

+ Return to home → +

{{- end }}
-
+ data-filter-value="{{ .Title }}" + class="grid [grid-template-columns:repeat(auto-fill,minmax(220px,1fr))] gap-[var(--gap)] px-[var(--pad)] py-[var(--gap)]"> {{- range $i, $p := .Pages }} - {{- $img := $p.Resources.GetMatch "*.png" }} - -
- {{- if $img }} - {{- $w := $img.Resize "600x900 webp" }} - - - {{ $p.Title }} - - {{- end }} - PLATE №{{ $p.Params.plate }} - {{ index ($p.Params.categories | default (slice "")) 0 }} - № {{ index ($p.Params.issues | default (slice "01")) 0 }} -
-
-

{{ $p.Title }}

-
- {{ index ($p.Params.categories | default (slice "")) 0 }} -
-

{{ $p.Params.description }}

-
-
+ {{- partial "card.html" (dict "Page" $p "Index" $i) }} {{- end }}
{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c3f895d..7d20e86 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,50 +1,23 @@ {{ define "main" }} {{- $issue := index (.Params.issues | default (slice "01")) 0 }} {{- $issueURL := printf "/issues/%s/" $issue }} -
-
+
+
№ {{ $issue }} · {{ index (.Params.categories | default (slice "Plate")) 0 }}
-

{{ .Title }}

-

+

{{ .Title }}

+

{{ .Params.description }} - Return to issue → + Return to issue →

-
+
{{- $termPage := $.Site.GetPage (printf "/issues/%s" $issue) }} {{- $posts := cond (ne $termPage nil) $termPage.Pages .Site.RegularPages }} {{- range $i, $p := $posts }} - {{- $img := $p.Resources.GetMatch "*.png" }} - -
- {{- if $img }} - {{- $w := $img.Resize "600x900 webp" }} - - - {{ $p.Title }} - - {{- end }} - PLATE №{{ $p.Params.plate }} - {{ index ($p.Params.categories | default (slice "")) 0 }} - № {{ index ($p.Params.issues | default (slice "01")) 0 }} -
-
-

{{ $p.Title }}

-
- {{ index ($p.Params.categories | default (slice "")) 0 }} -
-

{{ $p.Params.description }}

-
-
+ {{- partial "card.html" (dict "Page" $p "Index" $i) }} {{- end }}
diff --git a/layouts/baseof.html b/layouts/baseof.html index 26c67ff..e7fdba9 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -14,10 +14,18 @@ {{- partial "lightbox.html" . }} -
- Roux № {{ .Site.Params.issueNumber }} — out now. See the plates → -
diff --git a/layouts/index.html b/layouts/index.html index 397f302..1e92ce4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,55 +1,24 @@ {{ define "main" }} -
-
+
+
№ {{ .Site.Params.issueNumber }} · {{ .Site.Params.issueSeason }} · - View all issues + View all issues
-

An almanac
of fabric, light,
and gesture.

-

+

+ An almanac
of fabric, light,
and gesture. +

+

Roux is a slow-publishing fashion journal — one hundred photographs at a time, gathered from ateliers, streets, glasshouses and quiet hotel corridors. You are reading {{ .Site.Params.issueName }}, our № {{ .Site.Params.issueNumber }} issue.

-
+
{{- $posts := where .Site.RegularPages "Section" "posts" }} {{- range $i, $p := $posts }} - {{- $img := $p.Resources.GetMatch "*.png" }} - {{- $card := "" }} - {{- $full := "" }} - {{- if $img }} - {{- $c := $img.Resize "600x900 webp" }} - {{- $card = $c.RelPermalink }} - {{- end }} - -
- - {{- if $img }} - {{- $w := $img.Resize "600x900 webp" }} - - {{ $p.Title }} — Roux Plate №{{ $p.Params.plate }} - {{- end }} - - PLATE №{{ $p.Params.plate }} - {{ index ($p.Params.categories | default (slice "")) 0 }} - № {{ index ($p.Params.issues | default (slice "01")) 0 }} -
-
-

{{ $p.Title }}

-
- {{ index ($p.Params.categories | default (slice "")) 0 }} -
-

{{ $p.Params.description }}

-
-
+ {{- partial "card.html" (dict "Page" $p "Index" $i) }} {{- end }}
{{ end }} diff --git a/layouts/issues/list.html b/layouts/issues/list.html index 170e7c4..4af756d 100644 --- a/layouts/issues/list.html +++ b/layouts/issues/list.html @@ -1,45 +1,18 @@ {{ define "main" }} {{- $issueNum := .Params.issueNumber | default (printf "№ %s" .Title) }} -
-
+
+
{{ $issueNum }} · {{ .Params.season }} - · All issues + · All issues
-

{{ .Title }}

-

{{ .Params.description }}

+

{{ .Title }}

+

{{ .Params.description }}

-
+
{{- range $i, $p := .Pages }} - {{- $img := $p.Resources.GetMatch "*.png" }} - -
- {{- if $img }} - {{- $w := $img.Resize "600x900 webp" }} - - - {{ $p.Title }} - - {{- end }} - PLATE №{{ $p.Params.plate }} - {{ index ($p.Params.categories | default (slice "")) 0 }} - № {{ index ($p.Params.issues | default (slice "01")) 0 }} -
-
-

{{ $p.Title }}

-
- {{ index ($p.Params.categories | default (slice "")) 0 }} -
-

{{ $p.Params.description }}

-
-
+ {{- partial "card.html" (dict "Page" $p "Index" $i) }} {{- end }}
{{ end }} diff --git a/layouts/issues/terms.html b/layouts/issues/terms.html index 9e6f512..64cb020 100644 --- a/layouts/issues/terms.html +++ b/layouts/issues/terms.html @@ -1,32 +1,40 @@ {{ define "main" }} {{- $issues := .Site.Data.issues }} -
-
Archive · Every issue
-

The issues

-

Roux publishes one hundred photographs at a time, once a season. Each issue is a complete thing.

+
+
Archive · Every issue
+

The issues

+

+ Roux publishes one hundred photographs at a time, once a season. Each issue is a complete thing. +

-
+
{{- range $i, $iss := $issues }} - {{- $delay := mul $i 80 }} + {{- $delay := mul $i 80 }} {{- $isCurrent := eq $iss.status "current" }} {{- $isForth := eq $iss.status "forthcoming" }} {{- $issueURL := printf "/issues/%s/" $iss.id }} {{- if $isForth }} -
+
{{- else }} - + {{- end }} -
+ {{/* Cover image */}} +
{{- if $isForth }} -
- +
+ Forthcoming
{{- else }} - {{- $termPage := $.Site.GetPage (printf "/issues/%s" $iss.id) }} + {{- $termPage := $.Site.GetPage (printf "/issues/%s" $iss.id) }} {{- $firstPost := cond (ne $termPage nil) (index $termPage.Pages 0) nil }} {{- if $firstPost }} {{- $img := $firstPost.Resources.GetMatch "*.png" }} @@ -34,25 +42,25 @@ {{- $cover := $img.Resize "480x720 webp" }} - Issue {{ $iss.number }} cover + Issue {{ $iss.number }} cover {{- end }} {{- end }} {{- end }}
-
-
{{ $iss.number }}
-

{{ $iss.title }}

-

{{ $iss.blurb }}

-
- {{ $iss.season }} - {{- if $isCurrent }} - Read the issue → - {{- else if $isForth }} - Subscribe → - {{- end }} -
+ {{/* Metadata */}} +
{{ $iss.number }}
+

{{ $iss.title }}

+

{{ $iss.blurb }}

+
+ {{ $iss.season }} + {{- if $isCurrent }} + Read the issue → + {{- else if $isForth }} + Subscribe → + {{- end }}
{{- if $isForth }}
{{- else }}
{{- end }} diff --git a/layouts/partials/card.html b/layouts/partials/card.html new file mode 100644 index 0000000..e2961e7 --- /dev/null +++ b/layouts/partials/card.html @@ -0,0 +1,41 @@ +{{- $p := .Page }} +{{- $i := .Index }} +{{- $img := $p.Resources.GetMatch "*.png" }} + +
+ {{- if $img }} + {{- $w := $img.Resize "600x900 webp" }} + + + {{ $p.Title }} + + {{- end }} + PLATE №{{ $p.Params.plate }} + {{ index ($p.Params.categories | default (slice "")) 0 }} + № {{ index ($p.Params.issues | default (slice "01")) 0 }} +
+
+

{{ $p.Title }}

+

{{ index ($p.Params.categories | default (slice "")) 0 }}

+

{{ $p.Params.description }}

+
+
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 88e467c..7ba4632 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,28 +1,36 @@ -