Skip to content

An AI skill that turns books into animated, narrated, interactive web experiences

feat(site): the Work with us sign as a hanging paper tag; the shelf loads lighter

yzr810e9bca280b
diff --git a/site/assets/covers/madness.webp b/site/assets/covers/madness.webp
index ee2ca8d..441b4c6 100644
Binary files a/site/assets/covers/madness.webp and b/site/assets/covers/madness.webp differ
diff --git a/site/index.html b/site/index.html
index 147a77d..67ce6c7 100644
--- a/site/index.html
+++ b/site/index.html
@@ -15,6 +15,8 @@
<meta property="og:image:alt" content="A wooden bookshelf of animated books">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%231d2b27'/%3E%3Ctext x='32' y='45' text-anchor='middle' font-size='48' fill='%23f0b45a'%3E∞%3C/text%3E%3C/svg%3E">
+<link rel="preload" href="assets/shelf/wall.webp" as="image" fetchpriority="high" media="(min-width: 701px)">
+<link rel="preload" href="lib/fonts/Oswald-latin.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="lib/bookshelf.css">
<script src="lib/bookshelf.js" defer></script>
</head>
@@ -75,19 +77,19 @@
<section class="shelf pictures" aria-labelledby="pictures-title">
<div class="row">
<a class="book" data-book="three-little-pigs" href="three-little-pigs/">
- <span class="doc"><img src="assets/covers/three-little-pigs.webp" width="960" height="540" style="object-position: 72% 50%" alt=""><span class="ct" aria-hidden="true">The Three Little Pigs</span></span>
+ <span class="doc"><img loading="lazy" decoding="async" src="assets/covers/three-little-pigs.webp" width="960" height="540" style="object-position: 72% 50%" alt=""><span class="ct" aria-hidden="true">The Three Little Pigs</span></span>
<span class="tag"><b>The Three Little Pigs</b><em>An experiment</em><span>Art from an image model, motion from code: what we tried, and why it stayed out of the Skill.</span></span>
</a>
<a class="book" data-book="little-red-riding-hood" href="little-red-riding-hood/">
- <span class="doc"><img src="assets/covers/little-red-riding-hood.webp" width="960" height="540" style="object-position: 50% 40%" alt=""><span class="ct" aria-hidden="true">Little Red Riding Hood</span></span>
+ <span class="doc"><img loading="lazy" decoding="async" src="assets/covers/little-red-riding-hood.webp" width="960" height="540" style="object-position: 50% 40%" alt=""><span class="ct" aria-hidden="true">Little Red Riding Hood</span></span>
<span class="tag"><b>Little Red Riding Hood</b><em>Paper cut-out</em><span>Stop motion drawn entirely in code. In the meadow, Red asks and the child finds.</span></span>
</a>
<a class="book" data-book="little-horse" href="little-horse/">
- <span class="doc"><img src="assets/covers/little-horse.webp" width="960" height="540" style="object-position: 64% 50%" alt=""><span class="ct" aria-hidden="true">Little Horse</span></span>
+ <span class="doc"><img loading="lazy" decoding="async" src="assets/covers/little-horse.webp" width="960" height="540" style="object-position: 64% 50%" alt=""><span class="ct" aria-hidden="true">Little Horse</span></span>
<span class="tag"><b>The Little Horse Crosses the River</b><em>Paper cut-out, 小马过河</em><span>A Chinese folk tale. Little Horse asks, the child finds and taps.</span></span>
</a>
<a class="book" data-book="joke-collection" href="joke-collection/">
- <span class="doc"><img src="assets/covers/joke-collection.webp" width="960" height="540" style="object-position: 22% 50%" alt=""><span class="ct" aria-hidden="true">Joke Collection</span></span>
+ <span class="doc"><img loading="lazy" decoding="async" src="assets/covers/joke-collection.webp" width="960" height="540" style="object-position: 22% 50%" alt=""><span class="ct" aria-hidden="true">Joke Collection</span></span>
<span class="tag"><b>Joke Collection</b><em>Short films, 7 episodes</em><span>Painted sets and paper puppets moved by code, one joke an episode.</span></span>
</a>
</div>
@@ -97,20 +99,20 @@
<section class="shelf films" aria-labelledby="films-title">
<div class="row">
<a class="book" data-book="madness" href="madness/">
- <span class="doc"><img src="assets/covers/madness.webp" width="652" height="952" style="object-position: 50% 30%" alt=""><span class="ct" aria-hidden="true">Madness and Civilization</span></span>
+ <span class="doc"><img loading="lazy" decoding="async" src="assets/covers/madness.webp" width="520" height="760" style="object-position: 50% 30%" alt=""><span class="ct" aria-hidden="true">Madness and Civilization</span></span>
<span class="tag"><b>Madness and Civilization</b><em>Documentary, 10 min</em><span>Michel Foucault&rsquo;s book as a short film, and the same story as upright shorts.</span></span>
</a>
<a class="book" data-book="pandemic" href="pandemic/">
- <span class="doc"><img src="assets/covers/pandemic.webp" width="640" height="520" style="object-position: 50% 50%" alt=""><span class="ct" aria-hidden="true">The Pandemic</span></span>
+ <span class="doc"><img loading="lazy" decoding="async" src="assets/covers/pandemic.webp" width="640" height="520" style="object-position: 50% 50%" alt=""><span class="ct" aria-hidden="true">The Pandemic</span></span>
<span class="tag"><b>The Pandemic</b><em>Documentary, 7 min</em><span>From a market in Wuhan to the count of the dead. Also as shorts and a scroll story.</span></span>
</a>
<a class="book" data-book="time-of-the-magicians" href="time-of-the-magicians/">
- <span class="doc"><img src="assets/covers/time-of-the-magicians.webp" width="440" height="470" alt=""><span class="ct" aria-hidden="true">Time of the Magicians</span></span>
+ <span class="doc"><img loading="lazy" decoding="async" src="assets/covers/time-of-the-magicians.webp" width="440" height="470" alt=""><span class="ct" aria-hidden="true">Time of the Magicians</span></span>
<span class="tag"><b>Time of the Magicians</b><em>An explorable map</em><span>Europe from 1919 to 1929: four philosophers walking the map, a year at a time.</span></span>
</a>
<a class="book" data-book="shooting-an-elephant" href="shooting-an-elephant/">
<span class="sign" aria-hidden="true">Interactive</span>
- <span class="doc"><img src="assets/covers/shooting-an-elephant.webp" width="960" height="631" style="object-position: 38% 50%" alt=""><span class="ct" aria-hidden="true">Shooting an Elephant</span></span>
+ <span class="doc"><img loading="lazy" decoding="async" src="assets/covers/shooting-an-elephant.webp" width="960" height="631" style="object-position: 38% 50%" alt=""><span class="ct" aria-hidden="true">Shooting an Elephant</span></span>
<span class="tag"><b>Shooting an Elephant</b><em>Interactive documentary</em><span>George Orwell&rsquo;s 1936 essay in his own words. You hold the rifle.</span></span>
</a>
</div>
diff --git a/site/lib/bookshelf.css b/site/lib/bookshelf.css
index 7abc02f..2b1e8c3 100644
--- a/site/lib/bookshelf.css
+++ b/site/lib/bookshelf.css
@@ -31,9 +31,10 @@ a { color: inherit; }
.banner a { position: relative; display: block; width: 100%; transition: transform .15s; }
.banner a:hover { transform: translateY(-2px); }
.banner svg { display: block; width: 100%; height: auto; }
-/* The banner links to /work/; a hand-made sign on its corner says so, like the shelf's "Interactive". */
-.work-sign { position: absolute; right: 2.2%; bottom: -1.1cqw; padding: .3em .6em .25em; background: var(--focus); border: 2px solid #1e1d1b; color: #1e1d1b; font: 700 clamp(11px, 1.75cqw, 17px)/1 Oswald, var(--ui); white-space: nowrap; transform: rotate(4deg); box-shadow: 3px 4px 4px #0003; transition: transform .15s; }
-.banner a:hover .work-sign { transform: rotate(2deg) scale(1.04); }
+/* The banner links to /work/; a cream paper tag, cut from the same paper as the banner's white letters, hangs
+ under its lower-right corner on a punched hole and swings a little on hover. */
+.work-sign { position: absolute; right: 3%; top: calc(100% - .2cqw); padding: .55em .9em .5em 1.5em; background: #f3efe3 radial-gradient(circle at .7em 50%, #1c1f1d .22em, #0000 .25em); color: #1c1f1d; font: 600 clamp(11px, 1.6cqw, 16px)/1 Oswald, var(--ui); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; clip-path: polygon(.6em 0, 100% 0, 100% 100%, .6em 100%, 0 50%); transform: rotate(-3deg); transform-origin: 85% -40%; filter: drop-shadow(2px 4px 3px #0005); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
+.banner a:hover .work-sign, .banner a:focus-visible .work-sign { transform: rotate(2deg); }
.case { --s: calc(84.375cqw / 864); top: 17.09cqw; }
.cap, .lip { background: 0 0 / 100% 100% no-repeat; }
.cap { aspect-ratio: 864 / 15; background-image: url(../assets/shelf/cap.webp); }
@@ -113,6 +114,7 @@ a.book:hover .tag { transform: translateY(-2px); }
html { background: #e9e6e1; }
.scene { aspect-ratio: auto; width: calc(100% - 16px); padding: 12px 0 40px; background: none; }
.scene > * { position: static; width: auto; }
+ .banner { position: relative; inset: auto; } /* so its z-index holds the hanging tag above the case */
.case { --s: calc(100cqw / 864); margin-top: 0; filter: drop-shadow(5px 8px 10px #0003); }
.shelf { aspect-ratio: auto !important; }
.row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(75 * var(--s)) calc(30 * var(--s)); padding-top: calc(40 * var(--s)); padding-bottom: 0; }
@@ -125,6 +127,7 @@ a.book:hover .tag { transform: translateY(-2px); }
.spines { min-height: calc(180 * var(--s)); align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
- .doc, .tag { transition: none; }
+ .doc, .tag, .work-sign { transition: none; }
+ .banner a:hover .work-sign, .banner a:focus-visible .work-sign { transform: rotate(-3deg); }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}