Skip to content

Anti-AI-slop design skill for Claude Code, Cursor, and Codex.

CSS
13.6 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Barton Road Library of Things: 410 things to borrow</title>
<meta name="description" content="A community lending library of tools and equipment on Barton Road: 410 things, £15 a year, open Saturdays from 10 to 2.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Epilogue:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script>document.documentElement.classList.add('js');</script>
</head>
<body>
<a class="skip" href="#main">Skip to content</a>

<header class="bar">
  <div class="container bar__in">
    <a class="wordmark" href="#top" aria-label="Barton Road Library of Things, home">Barton Road Library of Things</a>
    <div class="bar__end">
      <span class="tag tag--neutral" id="state" role="status">Open Saturdays, 10 to 2</span>
      <a class="bar__link" href="#first">First visit</a>
      <a class="btn btn--primary btn--sm" href="#join">Join</a>
    </div>
  </div>
</header>

<main id="main">
  <section class="hero" id="top" aria-labelledby="hero-h">
    <div class="container hero__grid">
      <div class="hero__text">
        <h1 id="hero-h">410 things to borrow on Barton Road.</h1>
        <p class="lead">Tools and equipment, lent to the street.</p>
        <div class="actions">
          <a class="btn btn--primary" href="#join">Join for £15 a year</a>
          <a class="btn" href="#first">Your first Saturday</a>
        </div>
      </div>
      <div class="shelf" aria-label="What is on the shelves">
        <div class="find">
          <label for="find">Find a thing</label>
          <input id="find" type="search" autocomplete="off" spellcheck="false" placeholder="Drill, ladder, tent">
        </div>
        <table class="items" id="things">
          <caption class="visually-hidden">A sample of the things on the shelves, with whether each is in</caption>
          <tbody>
            <tr class="item" data-words="hand tool set tools hammer pliers screwdriver spanner tester"><th scope="row">Hand tool set</th><td>Hammer, pliers, spanners.</td><td><span class="tag tag--in">In</span></td></tr>
            <tr class="item" data-words="drill hammer drill masonry bits"><th scope="row">Drill and bits</th><td>Bits for brick.</td><td><span class="tag tag--in">In</span></td></tr>
            <tr class="item" data-words="ladder step ladder extension gutter"><th scope="row">Ladder</th><td>Reaches a first floor.</td><td><span class="tag tag--out">Out</span></td></tr>
            <tr class="item" data-words="tent camping dome"><th scope="row">Tent for two</th><td>A dome that sleeps two.</td><td><span class="tag tag--out">Out</span></td></tr>
            <tr class="item" data-words="bicycle bike cycle"><th scope="row">Bicycle</th><td>While yours is mended.</td><td><span class="tag tag--in">In</span></td></tr>
            <tr class="item" data-words="paint brushes decorating brush walls"><th scope="row">Paint brushes</th><td>Flat and round.</td><td><span class="tag tag--in">In</span></td></tr>
          </tbody>
        </table>
        <p class="things__none" id="none" hidden>Nothing called that on this list. Ask at the desk on Saturday.</p>
        <p class="shelf__note">A sample. All 410 are at the desk.</p>
      </div>
    </div>
  </section>

  <section class="first" id="first" aria-labelledby="first-h">
    <div class="container">
      <div class="head-split">
        <h2 id="first-h">Your first Saturday</h2>
        <p class="lead">From the door to your own front door, in four moves.</p>
      </div>
      <div class="pin">
        <div class="pin__stage" aria-hidden="true">
          <figure class="pin__shot photo is-on" data-shot="1" data-slot="first-door" data-alt="The library's own shelves on a Saturday morning">
            <img src="photos/various-tools-hanging-on-a-pegboard-in-a-workshop-setting-wi-1920.jpg" width="1920" height="1282" loading="lazy" style="object-position: 55% 50%" alt="">
          </figure>
          <figure class="pin__shot photo" data-shot="2" data-slot="first-desk" data-alt="The library's own hand tool set, laid out on the desk">
            <img src="photos/diy-means-choosing-the-right-tool-for-the-purpose-a-watchmak-1920.jpg" width="1920" height="1280" loading="lazy" alt="">
          </figure>
          <figure class="pin__shot photo" data-shot="3" data-slot="first-in" data-alt="A thing tagged In, ready to go home">
            <img src="photos/ladder-in-gyumri-1920.jpg" width="1920" height="2896" loading="lazy" style="object-position: 50% 22%" alt="">
          </figure>
          <figure class="pin__shot photo" data-shot="4" data-slot="first-back" data-alt="The library's own bicycle, back against the wall on Barton Road">
            <img src="photos/raleigh-lady-s-loop-frame-bicycle-1930s-1920.jpg" width="1920" height="1210" loading="lazy" style="object-position: 50% 60%" alt="">
          </figure>
        </div>
        <ol class="pin__steps">
          <li data-step="1"><h3>Come between 10 and 2</h3><p>The doors on Barton Road open every Saturday.</p></li>
          <li data-step="2"><h3>Join at the desk</h3><p>One membership covers the year and every thing on the shelves.</p></li>
          <li data-step="3"><h3>Take home what’s in</h3><p>Anything tagged <span class="tag tag--in">In</span> goes home with you that day.</p></li>
          <li data-step="4"><h3>Bring it back on a Saturday</h3><p>It goes straight back on the shelf for the next neighbour.</p></li>
        </ol>
      </div>
    </div>
  </section>

  <section class="say" aria-label="Why it exists">
    <div class="container">
      <p class="say__line">The things you need twice a year belong to the whole street.</p>
    </div>
  </section>

  <section class="days" id="days" aria-labelledby="days-h">
    <div class="container days__grid">
      <div class="days__head">
        <h2 id="days-h">Saturdays, 10 to 2</h2>
        <p class="lead">At the library on Barton Road, <span class="fill" data-fill="address">street number to come</span>.</p>
      </div>
      <ol class="days__list" id="saturdays">
        <li><span class="days__date">This Saturday</span><span class="tag tag--neutral">10 to 2</span></li>
        <li><span class="days__date">Next Saturday</span><span class="tag tag--neutral">10 to 2</span></li>
        <li><span class="days__date">In two weeks</span><span class="tag tag--neutral">10 to 2</span></li>
        <li><span class="days__date">In three weeks</span><span class="tag tag--neutral">10 to 2</span></li>
      </ol>
    </div>
  </section>

  <section class="join-band" id="join" aria-labelledby="join-h">
    <div class="container join-band__grid">
      <div class="join-band__head">
        <h2 id="join-h">£15 covers a whole year</h2>
        <p class="lead">Leave your name, and your card waits at the desk on Saturday.</p>
      </div>
      <div class="card" aria-hidden="true">
        <p class="card__org">Barton Road Library of Things</p>
        <p class="card__name" id="card-name">Your name</p>
        <div class="card__foot"><span>Member for a year</span><span class="tag tag--in">Valid</span></div>
      </div>
      <form class="join" data-endpoint="" novalidate>
        <div class="f">
          <label for="j-name">Your name</label>
          <input id="j-name" name="name" type="text" autocomplete="name" required>
        </div>
        <div class="f">
          <label for="j-email">Email</label>
          <input id="j-email" name="email" type="email" autocomplete="email" inputmode="email" required>
        </div>
        <div class="join__go">
          <button class="btn btn--primary" type="submit">Become a member</button>
          <p class="join__help" id="join-help" aria-live="polite"></p>
        </div>
      </form>
    </div>
  </section>
</main>

<footer class="foot">
  <div class="container foot__grid">
    <p class="foot__colophon"><strong>Barton Road Library of Things</strong> is a community lending library of tools and equipment on Barton Road, open Saturdays from 10 to 2. Membership is £15 a year.</p>
    <nav class="foot__links" aria-label="This page">
      <a href="#top">What’s in</a>
      <a href="#first">First visit</a>
      <a href="#days">Saturdays</a>
      <a href="#join">Join</a>
    </nav>
    <p class="foot__credit" data-credits>Photographs: <a href="https://commons.wikimedia.org/wiki/File:Various_tools_hanging_on_a_pegboard_in_a_workshop_setting_with_natural_light_filtering_in.jpg">Shixart1985</a>, CC&nbsp;BY&nbsp;2.0; <a href="https://commons.wikimedia.org/wiki/File:DIY_means_choosing_the_right_tool_for_the_purpose_-_a_watchmaker%27s_nightmare.jpg">Franz van Duns</a>, CC&nbsp;BY-SA&nbsp;4.0; <a href="https://commons.wikimedia.org/wiki/File:Ladder_in_Gyumri.jpg">Araqangaraq</a>, CC&nbsp;BY-SA&nbsp;4.0; <a href="https://commons.wikimedia.org/wiki/File:Raleigh_lady%27s_loop_frame_bicycle_1930s.jpg">DeFacto</a>, CC&nbsp;BY-SA&nbsp;4.0, all on Wikimedia Commons. © 2026</p>
  </div>
</footer>

<script>
(() => {
  // the live sign: read the London clock
  const parts = Object.fromEntries(new Intl.DateTimeFormat('en-GB', { timeZone: 'Europe/London', weekday: 'short', hour: 'numeric', minute: 'numeric', hourCycle: 'h23', year: 'numeric', month: 'numeric', day: 'numeric' }).formatToParts(new Date()).map((p) => [p.type, p.value]));
  const dow = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'].indexOf(parts.weekday);
  const mins = Number(parts.hour) * 60 + Number(parts.minute);
  const open = dow === 6 && mins >= 600 && mins < 840;
  const state = document.getElementById('state');
  state.classList.remove('tag--neutral');
  state.classList.add(open ? 'tag--in' : 'tag--out');
  state.textContent = open ? 'Open now, until 2' : dow === 6 && mins < 600 ? 'Opens today at 10' : dow === 5 ? 'Closed, opens tomorrow at 10' : 'Closed, opens Saturday at 10';

  // the next four Saturdays, counted from today in London
  const today = new Date(Date.UTC(Number(parts.year), Number(parts.month) - 1, Number(parts.day)));
  let ahead = (6 - dow + 7) % 7;
  if (dow === 6 && mins >= 840) ahead = 7;
  const fmt = new Intl.DateTimeFormat('en-GB', { weekday: 'long', day: 'numeric', month: 'long', timeZone: 'UTC' });
  const list = document.getElementById('saturdays');
  list.innerHTML = [0, 1, 2, 3].map((i) => {
    const days = ahead + 7 * i;
    const d = new Date(today.getTime() + days * 86400000);
    const when = days === 0 ? (open ? 'Open now' : 'Today') : days === 1 ? 'Tomorrow' : `In ${days} days`;
    const cls = days === 0 && open ? 'tag--in' : i === 0 ? 'tag--on' : 'tag--out';
    return `<li><span class="days__date">${fmt.format(d)}</span><span class="tag ${cls}">${when}</span></li>`;
  }).join('');

  // the shelf filters as you type
  const find = document.getElementById('find');
  const things = [...document.querySelectorAll('.item')];
  const none = document.getElementById('none');
  find.addEventListener('input', () => {
    const q = find.value.trim().toLowerCase();
    let shown = 0;
    things.forEach((t) => { const hit = !q || t.dataset.words.includes(q); t.hidden = !hit; if (hit) shown++; });
    none.hidden = shown > 0;
  });

  // your first Saturday: the picture follows the step in view
  const shots = [...document.querySelectorAll('.pin__shot')];
  const io = new IntersectionObserver((es) => es.forEach((e) => { if (e.isIntersecting) { const n = e.target.dataset.step; shots.forEach((s) => s.classList.toggle('is-on', s.dataset.shot === n)); document.querySelectorAll('.pin__steps li').forEach((l) => l.classList.toggle('is-on', l === e.target)); } }), { rootMargin: '-45% 0px -45% 0px' });
  document.querySelectorAll('.pin__steps li').forEach((l) => io.observe(l));

  // the card takes the name as it is typed
  const cardName = document.getElementById('card-name');
  document.getElementById('j-name').addEventListener('input', (e) => { cardName.textContent = e.target.value.trim() || 'Your name'; });

  // the join form posts nowhere yet
  const form = document.querySelector('.join');
  const help = document.getElementById('join-help');
  form.addEventListener('submit', (e) => {
    e.preventDefault();
    const fields = [...form.querySelectorAll('input')];
    fields.forEach((i) => i.removeAttribute('aria-invalid'));
    const bad = fields.find((i) => !i.checkValidity());
    if (bad) { bad.setAttribute('aria-invalid', 'true'); bad.setAttribute('aria-describedby', 'join-help'); help.textContent = bad.type === 'email' ? 'That email looks incomplete. Write it as [email protected].' : 'Write your name so the desk knows who joined.'; bad.focus(); return; }
    if (!form.dataset.endpoint) { help.textContent = 'Nothing was sent: this form is not connected yet.'; return; }
    fetch(form.dataset.endpoint, { method: 'POST', body: new FormData(form) }).then((r) => { help.textContent = r.ok ? 'Your card will be at the desk on Saturday.' : 'That did not go through. Try again in a minute.'; }).catch(() => { help.textContent = 'That did not go through. Try again in a minute.'; });
  });
})();
</script>
<script>window.hallmarkSlots = (m) => { for (const [k, v] of Object.entries(m)) { const s = document.querySelector(`[data-slot="${k}"]`); if (!s) continue; const im = new Image(); im.src = typeof v === 'string' ? v : v.src; im.alt = (typeof v === 'object' && v.alt) || s.dataset.alt || ''; s.querySelectorAll(':scope > img').forEach((o) => o.remove()); s.prepend(im); } };
document.querySelectorAll('[data-slot] > img').forEach((i) => { if (i.complete && !i.naturalWidth) i.remove(); else i.addEventListener('error', () => i.remove(), { once: true }); });</script>
</body>
</html>