lookbkdev/lookbk-skills / skills/washing-line-hero
washing-line-hero
VerifiedBuild an interactive website hero where the brand's poster is printed on a cotton cloth pinned to a washing line with wooden pegs, under an open sky with drifting clouds - visitors press a soft dent into the cloth with the pointer, grab it anywhere and pull it, and when they let go it swings back and settles (a real cloth simulation, not a video), in the brand's colours, fonts, logo, headline and buttons. One self-contained HTML page plus a paste-in embed, checked for contrast and layout at four widths, with a still picture when WebGL or the network fails and for reduced motion, and a frame-perfect MP4 and poster recorded in headless Chrome in which a drawn pointer pulls the cloth. Use when someone wants a playful, touchable hero, a draggable flag or banner, a poster on a clothesline, a launch header people play with, or a hero for a textile, laundry, outdoor or "light and simple" product.
| File | Kind | Size |
|---|---|---|
| NOTICE.md | markdown | 1.7 KB |
| SKILL.md | skill md | 15.2 KB |
| TESTED.json | config | 854 B |
| examples/halden/hero.json | config | 1.9 KB |
| examples/halden/logo.svg | other | 210 B |
| examples/paperwind/hero.json | config | 1.8 KB |
| examples/paperwind/logo.svg | other | 234 B |
| scripts/build.mjs | script | 263 B |
| scripts/check.mjs | script | 9.5 KB |
| scripts/chrome.mjs | script | 3.6 KB |
| scripts/color.mjs | script | 1.4 KB |
| scripts/effect/effect.css | other | 850 B |
| scripts/effect/effect.js | script | 26.5 KB |
| scripts/effect/effect.mjs | script | 8.4 KB |
| scripts/inline.mjs | script | 1.7 KB |
| scripts/kit/KIT.md | markdown | 16.0 KB |
| scripts/kit/build.mjs | script | 34.5 KB |
| scripts/kit/cdp.mjs | script | 4.9 KB |
| scripts/kit/fonts.json | config | 5.4 KB |
| scripts/kit/record.mjs | script | 8.1 KB |
| scripts/kit/runtime.js | script | 15.1 KB |
| scripts/kit/shell.css | other | 9.4 KB |
| scripts/kit/three.json | config | 6.3 KB |
| scripts/markup.mjs | script | 6.2 KB |
| scripts/record.mjs | script | 255 B |
| scripts/screenshot.mjs | script | 1.8 KB |
scripts/screenshot.mjs
View on GitHub#!/usr/bin/env node
// Full-page screenshots of the built page at desktop and phone width, to
// look over before handing off:
//
// node scripts/screenshot.mjs out/index.html [--scale=1]
//
// Writes out/screens/desktop.png (1440 wide) and out/screens/mobile.png
// (390 wide). Set CHROME_PATH if Chrome isn't found.
import { existsSync, mkdirSync } from 'node:fs'
import { dirname, join, relative, resolve } from 'node:path'
import { pathToFileURL } from 'node:url'
import { chrome, findChrome, inFrame } from './chrome.mjs'
const SIZES = { desktop: 1440, mobile: 390 }
const args = process.argv.slice(2)
const input = resolve(args.find((a) => !a.startsWith('--')) || 'out/index.html')
const scale = Number(
args.find((a) => a.startsWith('--scale='))?.split('=')[1] ?? 1,
)
if (!existsSync(input)) {
console.error(`screenshot: ${input} not found; build the page first`)
process.exit(1)
}
const bin = findChrome()
if (!bin) {
console.error(
'screenshot: no Chrome, Chromium or Edge found; set CHROME_PATH',
)
process.exit(1)
}
// Chrome's command line only shoots the window, so first measure how tall
// the page is at each width, then shoot a window that tall.
const widths = Object.values(SIZES)
const heights = inFrame(
bin,
input,
widths,
() => document.documentElement.scrollHeight,
)
const dir = join(dirname(input), 'screens')
mkdirSync(dir, { recursive: true })
for (const [i, [name, w]] of Object.entries(SIZES).entries()) {
const height = Math.min(heights[i] ?? 900, 16000)
const file = join(dir, `${name}.png`)
chrome(bin, pathToFileURL(input).href, [
`--window-size=${w},${height}`,
`--force-device-scale-factor=${scale}`,
`--screenshot=${file}`,
])
const shown = relative(process.cwd(), file)
console.log(` ${shown.startsWith('..') ? file : shown} ${w}×${height}`)
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |