Skip to content
ai-native.marketingSubscribe

Second Rise

A night bakery whose hero is a clock face that counts down to the next bake out of the oven, over an animated flour-and-butter mesh.

Food · 13 Nov 2026

second-rise.html

About this concept

Second Rise is a one-page site for a small bakery or food maker that works while others sleep. A live clock face names the next bake and how long until it leaves the oven, the timetable swaps its photo with a wipe as you hover, night-shift photos wipe in on scroll, and every button fills from the side your pointer entered. It suits bakeries, cafes, and small-batch food brands.

Remix it with your agent

Paste this into Claude, ChatGPT, Cursor, or any coding agent together with the HTML file.

Here is a single-file HTML page called Second Rise. Keep the animated butter, poppy, and crust mesh behind the hero, the clock-face photo whose big numerals and status line show the next item coming out of the oven from the visitor's own clock, the timetable where hovering a row wipes a new photo into the sticky panel, the night-shift photos that wipe in on scroll with a light parallax, the pure-CSS pickup slot chips, and the buttons whose fill wipes in from the side the pointer entered. Turn it into a site for [your bakery, cafe, or small-batch food business]: rename it to [name], rewrite the headline and intro for [what you make and when], replace the four bakes and their times with [your products, ready times, and prices], rewrite the night-shift story and the three times in [your own working day], change the reserve form to [your ordering options and pickup slots], and update the address, hours, and email. Replace the Pexels photos with [your own photography] and keep the credits for any that stay. Keep the butter, aubergine, and poppy palette unless I give you brand colours. Respect prefers-reduced-motion. One HTML file only.

The code

Show 394 lines of HTML (26 KB, one file, no build step)
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Second Rise Bakehouse - bread baked between eleven and six, warm by half past</title>
<meta name="description" content="Second Rise is a night bakery on Harrow Lane. Sourdough, croissants, cardamom knots and seeded rye come out of a stone deck oven between half past four and half past six, and the door opens at half past six.">
<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=Gloock&family=Albert+Sans:wght@400;500;700;800&display=swap" rel="stylesheet">
<script>document.documentElement.classList.add('js')</script>
<style>
  :root { --flour:#fbf5e9; --rye:#24152f; --butter:#f5d565; --poppy:#e5484d; --crust:#b8692a; --mx:0; --my:0 }
  * { box-sizing:border-box; margin:0; padding:0 }
  html { scroll-behavior:smooth }
  body { background:var(--flour); color:var(--rye); font-family:'Albert Sans',system-ui,sans-serif; font-size:1.0625rem; line-height:1.55; -webkit-font-smoothing:antialiased; overflow-x:hidden }
  a { color:inherit }
  img { display:block; max-width:100% }
  ::selection { background:var(--butter); color:var(--rye) }
  .wrap { width:min(1240px, 100% - 3rem); margin-inline:auto }
  h1, h2, h3, .serif { font-family:'Gloock', Georgia, serif; font-weight:400 }
  h2 { font-size:clamp(2.4rem, 6vw, 5.2rem); line-height:1; letter-spacing:-.02em }

  /* buttons: one treatment, a fill that wipes in from the side the pointer entered */
  .btn { --wipe:var(--rye); --wipe-text:var(--flour); position:relative; isolation:isolate; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; padding:1rem 1.7rem; border-radius:14px; background:var(--butter); color:var(--rye); font:inherit; font-weight:700; text-decoration:none; border:0; cursor:pointer; box-shadow:inset 0 0 0 2px var(--rye); transition:color .3s .08s }
  .btn::before { content:""; position:absolute; inset:-1px; z-index:-1; background:var(--wipe); transform:translate(var(--fx,-101%), var(--fy,0)); transition:transform .45s cubic-bezier(.7,0,.2,1) }
  .btn:hover, .btn:focus-visible { color:var(--wipe-text) }
  .btn:hover::before, .btn:focus-visible::before { transform:none }
  .btn:focus-visible { outline:3px solid var(--poppy); outline-offset:3px }
  .btn.on-dark { --wipe:var(--flour); --wipe-text:var(--rye); box-shadow:inset 0 0 0 2px var(--butter) }
  .btn.quiet { background:transparent }
  .btn.quiet:hover, .btn.quiet:focus-visible { color:var(--wipe-text) }

  /* cursor dot */
  .dot { position:fixed; left:0; top:0; width:14px; height:14px; margin:-7px 0 0 -7px; border-radius:50%; background:#fff; mix-blend-mode:difference; pointer-events:none; z-index:90; opacity:0; transition:width .25s, height .25s, margin .25s, opacity .3s }
  .dot.on { opacity:1 }
  .dot.big { width:64px; height:64px; margin:-32px 0 0 -32px }

  /* nav */
  .nav { position:absolute; top:0; left:0; right:0; z-index:20; display:flex; justify-content:space-between; align-items:center; padding:1.3rem clamp(1.25rem,4vw,3rem) }
  .nav .logo { font-family:'Gloock',serif; font-size:1.6rem; text-decoration:none; letter-spacing:-.01em }
  .nav ul { display:flex; align-items:center; gap:2rem; list-style:none }
  .nav ul a:not(.btn) { text-decoration:none; font-weight:500; background:linear-gradient(currentColor,currentColor) 0 100% / 0 2px no-repeat; transition:background-size .3s }
  .nav ul a:not(.btn):hover { background-size:100% 2px }
  .nav .btn { padding:.7rem 1.2rem }
  @media (max-width:700px){ .nav ul li:not(:last-child){ display:none } }

  /* hero with an animated mesh */
  .hero { position:relative; isolation:isolate; overflow:hidden; padding:8rem 0 5rem; min-height:100svh; display:flex; flex-direction:column; justify-content:center }
  .mesh { position:absolute; inset:-25%; z-index:-1; filter:blur(60px); background:
      radial-gradient(34% 38% at 18% 28%, rgba(245,213,101,.95), transparent 70%),
      radial-gradient(30% 36% at 82% 22%, rgba(229,72,77,.55), transparent 70%),
      radial-gradient(36% 40% at 70% 82%, rgba(184,105,42,.6), transparent 70%),
      radial-gradient(28% 34% at 28% 86%, rgba(245,213,101,.6), transparent 70%);
    animation:drift 16s ease-in-out infinite alternate }
  @keyframes drift { 0% { transform:translate(0,0) rotate(0) scale(1) } 50% { transform:translate(4%,-3%) rotate(9deg) scale(1.08) } 100% { transform:translate(-3%,4%) rotate(-6deg) scale(1.02) } }
  .hero h1 { font-size:clamp(3rem, 7.4vw, 7.2rem); line-height:.94; letter-spacing:-.03em; max-width:8ch }
  .hero h1 em { color:var(--poppy); font-style:normal }
  .hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:3rem; align-items:center }
  .hero-copy p { font-size:clamp(1.1rem,1.6vw,1.3rem); max-width:36ch; line-height:1.4; margin-top:1.8rem }
  .hero-actions { display:flex; gap:1rem; flex-wrap:wrap; margin-top:2rem }
  .dial { container-type:inline-size; position:relative; width:min(100%, 560px); aspect-ratio:1; justify-self:center; border-radius:50%; overflow:hidden; box-shadow:0 30px 70px rgba(36,21,47,.35) }
  .dial img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform:scale(1.12) translate(calc(var(--mx) * -10px), calc(var(--my) * -10px)); transition:transform .4s ease-out }
  .dial::before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(36,21,47,.35), rgba(36,21,47,.78)) }
  .dial::after { content:""; position:absolute; inset:5%; z-index:2; border-radius:50%; background:repeating-conic-gradient(from 0deg, rgba(251,245,233,.9) 0 .6deg, transparent .6deg 6deg); -webkit-mask:radial-gradient(circle, transparent 94%, #000 94.5%); mask:radial-gradient(circle, transparent 94%, #000 94.5%) }
  .hand { position:absolute; z-index:3; inset:2.5%; transform:rotate(200deg); animation:sweep 60s linear infinite }
  .hand::after { content:""; position:absolute; left:50%; top:0; width:5%; aspect-ratio:1; margin-left:-2.5%; border-radius:50%; background:var(--butter); box-shadow:0 0 0 6px rgba(245,213,101,.28) }
  @keyframes sweep { to { transform:rotate(560deg) } }
  .readout { position:absolute; z-index:4; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:var(--flour); padding:0 14% }
  .readout b { font-family:'Gloock',serif; font-weight:400; font-size:27cqi; line-height:1; letter-spacing:-.02em }
  .readout span { margin-top:.5rem; font-size:max(.95rem, 4.2cqi); line-height:1.3; color:var(--butter) }
  @media (max-width:820px){ .hero-grid { grid-template-columns:1fr } .hero { padding-top:7rem } }

  /* timetable */
  .tt { padding:8rem 0 7rem; background:var(--flour) }
  .tt-head { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:end; margin-bottom:4rem }
  .tt-head p { max-width:38ch; font-size:1.2rem; justify-self:end }
  .tt-grid { display:grid; grid-template-columns:1.35fr .65fr; gap:4rem; align-items:start }
  .rows { list-style:none; border-top:2px solid var(--rye) }
  .row { display:grid; grid-template-columns:minmax(6.2rem, 9rem) 1fr auto; gap:1.5rem; align-items:center; padding:1.6rem 0; border-bottom:1px solid rgba(36,21,47,.25); transition:background .3s, padding .35s; outline:none }
  .row time { font-family:'Gloock',serif; font-size:clamp(2.4rem, 4.8vw, 4.2rem); line-height:1; letter-spacing:-.02em; transition:color .3s }
  .row h3 { font-size:clamp(1.4rem, 2.4vw, 2rem); line-height:1.1; margin-bottom:.35rem }
  .row p { max-width:44ch; opacity:.82 }
  .row b { font-weight:700; font-size:1.15rem; text-align:right }
  .row:hover, .row:focus-visible { background:var(--butter); padding-left:1.2rem; padding-right:1.2rem }
  .row:hover time, .row:focus-visible time { color:var(--poppy) }
  .row img { display:none }
  .tt-photo { position:sticky; top:6rem; aspect-ratio:4/5; border-radius:22px 22px 140px 22px; overflow:hidden; background:var(--rye) }
  .tt-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; clip-path:inset(0 0 100% 0); transition:clip-path .7s cubic-bezier(.7,0,.2,1) }
  .tt-photo .i1 { clip-path:inset(0) }
  .tt:has(.row:nth-child(2):is(:hover,:focus-visible)) .i2, .tt:has(.row:nth-child(3):is(:hover,:focus-visible)) .i3, .tt:has(.row:nth-child(4):is(:hover,:focus-visible)) .i4 { clip-path:inset(0) }
  @media (max-width:900px){
    .tt-head { grid-template-columns:1fr } .tt-head p { justify-self:start }
    .tt-grid { grid-template-columns:1fr } .tt-photo { display:none }
    .row { grid-template-columns:minmax(5.2rem,6.5rem) 1fr; row-gap:.8rem } .row b { grid-column:2; text-align:left }
    .row img { display:block; grid-column:1 / -1; width:100%; height:200px; object-fit:cover; border-radius:14px }
  }

  /* wipe reveals, driven by scroll */
  .js .wipe { clip-path:inset(0 100% 0 0); transition:clip-path 1.2s cubic-bezier(.7,0,.2,1) }
  .js .wipe[data-dir="up"] { clip-path:inset(100% 0 0 0) }
  .js .wipe[data-dir="left"] { clip-path:inset(0 0 0 100%) }
  .js .wipe.in { clip-path:inset(0) }

  /* night shift */
  .night { background:var(--rye); color:var(--flour); padding:8rem 0 7rem; position:relative; overflow:hidden }
  .night h2 { max-width:14ch; color:var(--butter) }
  .night-top { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:end }
  .night-top p { font-size:1.2rem; max-width:40ch; opacity:.9 }
  .night-top p + p { margin-top:1rem }
  .strip { display:grid; grid-template-columns:1.3fr 1fr 1.1fr; gap:1.2rem; margin-top:4.5rem }
  .strip figure { position:relative; height:min(58vh, 480px); overflow:hidden; border-radius:18px }
  .strip figure:nth-child(2) { border-radius:999px 999px 18px 18px; margin-top:3rem; height:min(52vh, 430px) }
  .strip img { width:100%; height:122%; object-fit:cover; will-change:transform }
  .times { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; margin-top:4.5rem; border-top:1px solid rgba(251,245,233,.25); padding-top:2.5rem }
  .times b { display:block; font-family:'Gloock',serif; font-weight:400; font-size:clamp(2.6rem,5vw,4.4rem); line-height:1; color:var(--butter) }
  .times span { display:block; margin-top:.6rem; max-width:26ch; opacity:.85 }
  @media (max-width:860px){ .night-top { grid-template-columns:1fr; gap:2rem } .strip { grid-template-columns:1fr } .strip figure, .strip figure:nth-child(2) { height:300px; margin-top:0 } .strip figure:nth-child(2) { border-radius:18px } .times { grid-template-columns:1fr } }

  /* reserve */
  .reserve { padding:8rem 0; background:var(--butter) }
  .reserve-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:4rem; align-items:start }
  .reserve h2 { max-width:12ch }
  .reserve .lead { margin-top:1.5rem; font-size:1.2rem; max-width:34ch }
  form { display:grid; gap:1.4rem }
  fieldset { border:0 }
  legend, label.f { font-weight:700; display:block; margin-bottom:.45rem }
  input[type=text], input[type=email], select { width:100%; padding:.95rem 1rem; border-radius:14px; border:2px solid var(--rye); background:var(--flour); font:inherit; color:var(--rye) }
  input[type=text]:focus-visible, input[type=email]:focus-visible, select:focus-visible { outline:3px solid var(--poppy); outline-offset:2px }
  .two { display:grid; grid-template-columns:1fr 1fr; gap:1rem }
  .chips { display:flex; gap:.7rem; flex-wrap:wrap }
  .chips input { position:absolute; opacity:0; pointer-events:none }
  .chips label { padding:.65rem 1.1rem; border-radius:14px; border:2px solid var(--rye); cursor:pointer; font-weight:500; transition:background .2s, color .2s }
  .chips label:hover { background:rgba(36,21,47,.1) }
  .chips input:checked + label { background:var(--rye); color:var(--butter) }
  .chips input:focus-visible + label { outline:3px solid var(--poppy); outline-offset:2px }
  .note { font-size:.95rem; opacity:.8 }
  @media (max-width:860px){ .reserve-grid { grid-template-columns:1fr; gap:2.5rem } .two { grid-template-columns:1fr } }

  /* footer */
  footer { background:var(--rye); color:var(--flour); padding:5rem 0 3rem }
  .foot { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:3rem }
  footer .logo { font-family:'Gloock',serif; font-size:2.4rem; line-height:1; color:var(--butter) }
  footer h3 { font-size:1.2rem; margin-bottom:.6rem; color:var(--butter) }
  footer p, footer li { opacity:.88; font-size:1rem }
  footer ul { list-style:none }
  .credits { margin-top:3.5rem; padding-top:1.6rem; border-top:1px solid rgba(251,245,233,.22); font-size:.88rem; opacity:.75; max-width:90ch }
  .credits a { text-decoration-thickness:1px; text-underline-offset:3px }
  @media (max-width:820px){ .foot { grid-template-columns:1fr } }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important }
    .js .wipe { clip-path:none !important }
    .dot { display:none }
  }
</style>
</head>
<body>
<div class="dot" aria-hidden="true"></div>

<header class="nav">
  <a class="logo" href="#top">Second Rise</a>
  <ul>
    <li><a href="#bakes">The bakes</a></li>
    <li><a href="#night">The night shift</a></li>
    <li><a href="#reserve">Visit</a></li>
    <li><a class="btn" href="#reserve">Reserve a loaf</a></li>
  </ul>
</header>

<main id="top">
  <section class="hero">
    <div class="mesh" aria-hidden="true"></div>
    <div class="wrap">
      <div class="hero-grid">
        <div class="hero-copy">
          <h1>Baked while the town <em>sleeps.</em></h1>
          <p>Second Rise is a night bakery on Harrow Lane. The dough gets a slow second rise in the cold, goes into a stone deck oven at four in the morning, and is warm on the counter when the door opens at half past six.</p>
          <div class="hero-actions">
            <a class="btn" href="#reserve">Reserve tomorrow's loaf</a>
            <a class="btn quiet" href="#bakes">See the timetable</a>
          </div>
        </div>
        <div class="dial" aria-label="A clock face showing the next bake out of the oven">
          <img src="https://images.pexels.com/photos/8633662/pexels-photo-8633662.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1000&w=1000" alt="Freshly baked rustic sourdough loaves and buns in warm light" width="1000" height="1000">
          <div class="hand" aria-hidden="true"></div>
          <div class="readout">
            <b id="big">04:30</b>
            <span id="status">Country sourdough, out of the oven at 04:30 every morning</span>
          </div>
        </div>
      </div>
    </div>
  </section>

  <section class="tt" id="bakes">
    <div class="wrap">
      <div class="tt-head">
        <h2>Out of the oven, in order</h2>
        <p>Four bakes leave the deck between half past four and half past six. Each one goes on the counter the minute it is cool enough to hold, so the earlier you come, the warmer it is.</p>
      </div>
      <div class="tt-grid">
        <ul class="rows">
          <li class="row" tabindex="0">
            <time>04:30</time>
            <div>
              <h3>Country sourdough</h3>
              <p>Forty hours of cold proof, a blistered crust, and a crumb that stays open for three days.</p>
              <img src="https://images.pexels.com/photos/28354523/pexels-photo-28354523.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=500&w=900" alt="An artisan loaf on a rustic surface with scattered wheat grains" width="900" height="500" loading="lazy">
            </div>
            <b>£5.80</b>
          </li>
          <li class="row" tabindex="0">
            <time>05:10</time>
            <div>
              <h3>Butter croissants</h3>
              <p>Laminated by hand the afternoon before with cultured butter, and baked until the shell shatters.</p>
              <img src="https://images.pexels.com/photos/20002837/pexels-photo-20002837.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=500&w=900" alt="Golden croissants on a cooling rack" width="900" height="500" loading="lazy">
            </div>
            <b>£3.20</b>
          </li>
          <li class="row" tabindex="0">
            <time>05:50</time>
            <div>
              <h3>Cardamom knots</h3>
              <p>Enriched dough, crushed green pods, and a crown of pearl sugar. Gone by eight on most days.</p>
              <img src="https://images.pexels.com/photos/36445141/pexels-photo-36445141.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=500&w=900" alt="Freshly baked bread and pastries coming out of an artisan oven" width="900" height="500" loading="lazy">
            </div>
            <b>£3.60</b>
          </li>
          <li class="row" tabindex="0">
            <time>06:20</time>
            <div>
              <h3>Seeded rye</h3>
              <p>A rye sour, toasted sunflower and pumpkin seeds, and a dense, sweet slice that holds up to anything you put on it.</p>
              <img src="https://images.pexels.com/photos/11042699/pexels-photo-11042699.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=500&w=900" alt="A crusty artisan loaf dusted with flour" width="900" height="500" loading="lazy">
            </div>
            <b>£6.20</b>
          </li>
        </ul>
        <div class="tt-photo" aria-hidden="true">
          <img class="i1" src="https://images.pexels.com/photos/28354523/pexels-photo-28354523.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1000&w=800" alt="" width="800" height="1000" loading="lazy">
          <img class="i2" src="https://images.pexels.com/photos/20002837/pexels-photo-20002837.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1000&w=800" alt="" width="800" height="1000" loading="lazy">
          <img class="i3" src="https://images.pexels.com/photos/36445141/pexels-photo-36445141.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1000&w=800" alt="" width="800" height="1000" loading="lazy">
          <img class="i4" src="https://images.pexels.com/photos/11042699/pexels-photo-11042699.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1000&w=800" alt="" width="800" height="1000" loading="lazy">
        </div>
      </div>
    </div>
  </section>

  <section class="night" id="night">
    <div class="wrap">
      <div class="night-top">
        <h2>Eleven at night to half past six.</h2>
        <div>
          <p>The shift starts when the shop next door switches off its sign. Two bakers, one deck oven, and a cold room full of dough that has been proving since yesterday afternoon.</p>
          <p>Nothing is rushed and nothing is held over. Whatever does not sell by one o'clock goes to the food bank on Mill Street, and the next night starts clean.</p>
        </div>
      </div>
      <div class="strip">
        <figure class="wipe" data-dir="up"><img class="par" src="https://images.pexels.com/photos/17586527/pexels-photo-17586527.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=900&w=1000" alt="A baker's hands kneading dough in a dimly lit kitchen" width="1000" height="900" loading="lazy"></figure>
        <figure class="wipe" data-dir="left"><img class="par" src="https://images.pexels.com/photos/34011404/pexels-photo-34011404.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=900&w=800" alt="A baker presenting a tray of freshly baked loaves" width="800" height="900" loading="lazy"></figure>
        <figure class="wipe" data-dir="up"><img class="par" src="https://images.pexels.com/photos/36444996/pexels-photo-36444996.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=900&w=1000" alt="Golden brown loaves in a traditional stone oven" width="1000" height="900" loading="lazy"></figure>
      </div>
      <div class="times">
        <div><b>11 pm</b><span>The first dough leaves the cold room and gets shaped by hand.</span></div>
        <div><b>4:30</b><span>The first loaf leaves the deck, and the whole street smells of it.</span></div>
        <div><b>6:30</b><span>The door opens, the queue starts, and the coffee is already on.</span></div>
      </div>
    </div>
  </section>

  <section class="reserve" id="reserve">
    <div class="wrap reserve-grid">
      <div>
        <h2>Reserve tomorrow's loaf.</h2>
        <p class="lead">Put a loaf aside and collect it warm before work. Orders close at nine the evening before, and there is nothing to pay until you pick up.</p>
      </div>
      <form onsubmit="return false">
        <div class="two">
          <div><label class="f" for="n">Your name</label><input id="n" type="text" placeholder="Ana Pereira" autocomplete="off"></div>
          <div><label class="f" for="e">Email</label><input id="e" type="email" placeholder="ana@example.com" autocomplete="off"></div>
        </div>
        <div>
          <label class="f" for="b">What should we put aside?</label>
          <select id="b"><option>Country sourdough</option><option>Butter croissants (box of four)</option><option>Cardamom knots (box of four)</option><option>Seeded rye</option></select>
        </div>
        <fieldset>
          <legend>Collect at</legend>
          <div class="chips">
            <input type="radio" name="s" id="s1" checked><label for="s1">6:30</label>
            <input type="radio" name="s" id="s2"><label for="s2">7:30</label>
            <input type="radio" name="s" id="s3"><label for="s3">8:30</label>
            <input type="radio" name="s" id="s4"><label for="s4">12:00</label>
          </div>
        </fieldset>
        <div><button class="btn" type="submit">Put it aside</button></div>
        <p class="note">This is a design template, so the form sends nothing. Wire it to your own ordering tool.</p>
      </form>
    </div>
  </section>
</main>

<footer>
  <div class="wrap">
    <div class="foot">
      <div><div class="logo">Second Rise</div><p style="margin-top:.8rem;max-width:30ch">A night bakery on Harrow Lane. Bread, croissants, and a slow second rise.</p></div>
      <div><h3>Find us</h3><p>14 Harrow Lane<br>Tuesday to Sunday, 6:30 to 13:00<br>Closed Monday, the ovens rest</p></div>
      <div><h3>Order ahead</h3><ul><li><a href="#reserve">Reserve tomorrow's loaf</a></li><li><a href="#bakes">The timetable</a></li><li>hello@secondrise.example</li></ul></div>
    </div>
    <p class="credits">Photography from <a href="https://www.pexels.com">Pexels</a>: <a href="https://www.pexels.com/@lauren-heaton-76106296">Lauren Heaton</a>, <a href="https://www.pexels.com/@nic-scrollstoppingphotos">Nic Wood</a>, <a href="https://www.pexels.com/@arda-kaykisiz-672105204">Arda Kaykısız</a>, <a href="https://www.pexels.com/@yasin-onus-520099596">Yasin Onuş</a>, <a href="https://www.pexels.com/@lucian-anton-1479659">Lucian Anton</a>, <a href="https://www.pexels.com/@ulrich-keutchatang-641933594">ulrich Keutchatang</a>, and <a href="https://www.pexels.com/@yetkin-agac-664866326">Yetkin Ağaç</a>. Second Rise is an invented bakery, made as a free site template.</p>
  </div>
</footer>

<script>
(function () {
  var reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches
  var fine = window.matchMedia('(pointer:fine)').matches

  // Fill wipe: the fill enters and leaves from the side the pointer crossed.
  function edge(e, b) {
    var r = b.getBoundingClientRect()
    var d = { l: e.clientX - r.left, r: r.right - e.clientX, t: e.clientY - r.top, b: r.bottom - e.clientY }
    var k = Object.keys(d).sort(function (a, c) { return d[a] - d[c] })[0]
    b.style.setProperty('--fx', k === 'l' ? '-101%' : k === 'r' ? '101%' : '0')
    b.style.setProperty('--fy', k === 't' ? '-101%' : k === 'b' ? '101%' : '0')
  }
  document.querySelectorAll('.btn').forEach(function (b) {
    b.addEventListener('pointerenter', function (e) { edge(e, b) })
    b.addEventListener('pointerleave', function (e) { edge(e, b) })
  })

  // Live readout: the next bake out of the oven, from the visitor's own clock.
  var bakes = [[270, 'Country sourdough'], [310, 'Butter croissants'], [350, 'Cardamom knots'], [380, 'Seeded rye']]
  var big = document.getElementById('big'), status = document.getElementById('status')
  function pad(n) { return (n < 10 ? '0' : '') + n }
  function tick() {
    var d = new Date(), m = d.getHours() * 60 + d.getMinutes(), next = null, tomorrow = false
    for (var i = 0; i < bakes.length; i++) { if (bakes[i][0] > m) { next = bakes[i]; break } }
    if (!next) { next = bakes[0]; tomorrow = true }
    var diff = next[0] - m + (tomorrow ? 1440 : 0)
    big.textContent = pad(Math.floor(next[0] / 60)) + ':' + pad(next[0] % 60)
    var h = Math.floor(diff / 60), mm = diff % 60
    var when = h ? h + ' h ' + mm + ' min' : mm + ' min'
    status.textContent = next[1] + (tomorrow ? ', out tomorrow in ' : ', out in ') + when
  }
  tick(); setInterval(tick, 30000)

  // Wipe reveals as sections scroll into view.
  var wipes = document.querySelectorAll('.wipe')
  if (reduce || !('IntersectionObserver' in window)) {
    wipes.forEach(function (w) { w.classList.add('in') })
  } else {
    var io = new IntersectionObserver(function (es) {
      es.forEach(function (e, i) { if (e.isIntersecting) { setTimeout(function () { e.target.classList.add('in') }, i * 140); io.unobserve(e.target) } })
    }, { threshold: .2 })
    wipes.forEach(function (w) { io.observe(w) })
  }

  if (reduce) return

  // Parallax on the night-shift photos, and hero photo drift with the pointer.
  var pars = document.querySelectorAll('.par'), ticking = false
  function par() {
    var vh = window.innerHeight
    pars.forEach(function (img) {
      var r = img.parentNode.getBoundingClientRect()
      if (r.bottom < 0 || r.top > vh) return
      var p = (r.top + r.height / 2 - vh / 2) / vh
      img.style.transform = 'translateY(' + (-8 - p * 12).toFixed(2) + '%)'
    })
    ticking = false
  }
  window.addEventListener('scroll', function () { if (!ticking) { ticking = true; requestAnimationFrame(par) } }, { passive: true })
  par()

  if (!fine) return
  var dot = document.querySelector('.dot'), x = -100, y = -100, tx = -100, ty = -100
  window.addEventListener('pointermove', function (e) {
    tx = e.clientX; ty = e.clientY; dot.classList.add('on')
    document.documentElement.style.setProperty('--mx', (e.clientX / innerWidth - .5).toFixed(3))
    document.documentElement.style.setProperty('--my', (e.clientY / innerHeight - .5).toFixed(3))
  })
  document.addEventListener('pointerleave', function () { dot.classList.remove('on') })
  document.querySelectorAll('a, button, .row, label, input, select').forEach(function (el) {
    el.addEventListener('pointerenter', function () { dot.classList.add('big') })
    el.addEventListener('pointerleave', function () { dot.classList.remove('big') })
  })
  ;(function loop() { x += (tx - x) * .22; y += (ty - y) * .22; dot.style.transform = 'translate(' + x.toFixed(1) + 'px,' + y.toFixed(1) + 'px)'; requestAnimationFrame(loop) })()
})()
</script>
</body>
</html>

Brand kit

The identity behind this design, ready to use: logo lockups, colour roles with contrast scores, the type scale, buttons and fields, photo treatment, motion rules, design tokens, and five ready-sized social templates.

Colour roles

  • Ink#24152f
  • Paper#fbf5e9
  • Accent#e5484d
  • Support 1#f5d565
  • Support 2#b8692a

Type

Display
Gloock
Body
Albert Sans

Social templates