Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions docs/website.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,16 @@ exists) and add `site.yml`.
- Light and dark follow `prefers-color-scheme`, with a toggle stored in `localStorage`
(`copper-theme`). Captures come in pairs (`*-dark.*`); `window.copperMedia` in the `<head>`
picks the pair that matches.
- Videos are `<video autoplay muted loop playsinline preload="metadata" poster=…>`; under
`prefers-reduced-motion` only the poster shows.
- Videos are `<video class="loop" muted loop playsinline preload="none">` with the file and
poster in `data-*` attributes: the script at the end of the page sets them when the video
comes within 900 px of the screen and plays it while it is on screen. There is no pause button:
the recording itself is the control (`role="button"`, named "Pause…" or "Play…"), so a click,
Space or Enter toggles it. The bento's three sidebars share one control. Under
`prefers-reduced-motion` only the poster shows until someone presses play.
- The hero screenshot loads first (the measured LCP is the art behind it, which is preloaded): `fetchpriority="high"`, never `loading="lazy"`,
with `width`/`height` so nothing shifts. The source order in the hero is copy, window, meta,
which is also the order on a phone; don't reorder it with CSS `order` (content that streams in
later would push what is already on screen).
- Hard rules: no horizontal scrolling at any width ≥ 360 px; AA contrast in both themes; real
focus styles. Copper is presented on its own — the page names no other browser project as its
origin. Facts on the page come from this repo's README and `docs/`; don't invent features.
Expand Down Expand Up @@ -92,9 +100,10 @@ play H.264, so check the videos in Safari or Chrome.
## Launch graphics

The hero bento, `loop-spaces`/`loop-agents` (captioned loops), `post-*.webp` (the launch thread's
stills), `tile-*.webp` (bento pieces), `art-*.webp` (copper-art backdrops) and `og.jpg` come from
stills; the credits card is no longer used, it carried the old tagline), `tile-*.webp` (bento pieces), `art-*.webp` (copper-art backdrops) and `og.jpg` come from
the launch kit (bento source, caption renderer and raw recordings), not from `site-capture/`.
The bento itself is live HTML in `index.html`; `og.jpg` is a 1200×630 crop of its render.
The bento itself is live HTML in `index.html`; `og.jpg` is the live hero at 1200×630 with the nav, quip, buttons and meta hidden.
`loop-agents` has four lines of its GitHub pane blurred (the fork line, the About text, the star counts and the branch banner), in the video and the poster, so the page keeps to the rule above; re-record it on another page when the launch kit is next open.

## Captures (screenshots and loops)

Expand All @@ -104,6 +113,8 @@ are using is never touched:

| Asset | What it shows | Made with |
|---|---|---|
| `copper-hero-*.webp` | the whole window on Wikipedia's Copper article (phone: the same page in a 640×560 window), dark appearance, sidebar on | `launch.sh` with `SIZE=1280x800` (or `640x560`) → bench `window` → `convert` to WebP at 1280 and 1920 wide, alpha kept (lossless: smaller than lossy for a page of text) |
| `side-{copper,patina,ember}.mp4/.webp` | each space's sidebar: the animated theme and the selection moving between tabs | `launch.sh` with `SIZE=640x760` → `rec_sides.py` → crop the left 464 px, scale to 336×840, 24 fps, CRF 27–29, last 0.6 s dissolved into the first |
| `copper-motion(-dark).mp4/.webp` | tab switch, ⌘K filtering, a space switch, tabs on top and back | `rec_motion.py` → `compose.py video` |
| `copper-jev(-dark).mp4/.webp` | a real Jev run: "Search Wikipedia for patina and stop when the article is visible", with the driver timeline | `rec_jev.py` → `compose.py video` |

Expand All @@ -115,10 +126,12 @@ Recipe:
`./bench` needs the `bench` default on in that world's own suite
(`defaults write com.collinrijock.copper.test.sitepics bench -bool true`; never the installed
Copper's `com.collinrijock.copper`).
2. Set the world up with public pages only — never sign in to anything. The current captures use
three spaces: Personal (google.com, Wikipedia "Patina", apple.com/mac,
2. Set the world up with public pages only — never sign in to anything. The motion and Jev
captures use three spaces: Personal (google.com, Wikipedia "Patina", apple.com/mac,
news.ycombinator.com), Work (w3.org, swift.org, webkit.org) and Reading (Wikipedia: Statue of
Liberty, Verdigris, Patina). For Jev, the world needs its own `intelligence.json` (0600) in
Liberty, Verdigris, Patina). The hero and the bento sidebars use Copper (google.com, Wikipedia
"Copper", apple.com/mac, news.ycombinator.com), Patina (Wikipedia: Patina, Verdigris, Statue
of Liberty) and Ember (webkit.org, swift.org, w3.org), each with an animated theme. For Jev, the world needs its own `intelligence.json` (0600) in
`~/Library/Application Support/Copper (sitepics)/`; keep keys, settings pages and internal
URLs out of every frame.
3. Record: `cb.py` grabs whole-window PNGs over the bench socket (the bench `window` verb — no
Expand Down
29 changes: 29 additions & 0 deletions site-capture/rec_sides.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"""Record each space's sidebar for the bento's "animated sidebars" tile: the backdrop moving,
the selection hopping between tabs. One frame folder per space, each a different length
so the three loops drift apart on the page.
rec_sides.py OUTDIR (launch.sh with SIZE=640x760 first: a small window records at ~20 fps)"""
import os, sys, time, json
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from cb import Recorder, ask
out = sys.argv[1]
def sp(i): ask({"do": "spaces", "op": "select", "arg": str(i)})
def sel(i): ask({"do": "select", "id": i})
def tabs(): return [t for t in ask({"do": "tabs"}).get("tabs", []) if not t.get("bench")]
ask({"do": "ui", "sidebar": True, "look": "dark"})
# per space: (seconds to wait, tab index to select); the last tab is the first, so the loop closes
PLANS = [
[(1.4, 1), (1.7, 3), (1.5, 2), (1.6, 0), (1.0, None)],
[(2.6, 2), (2.2, 1), (2.0, 0), (1.6, None)],
[(0.8, 1), (2.0, 2), (1.5, 0), (2.3, None)],
]
for k, plan in enumerate(PLANS):
sp(k); time.sleep(1.0)
T = [t["id"] for t in tabs()]
for i in T: sel(i); time.sleep(2.5) # wake every tab once so its icon and title are real
sel(T[0]); time.sleep(3.0)
r = Recorder(os.path.join(out, f"s{k}")); r.start()
for wait, tab in plan:
time.sleep(wait)
if tab is not None: sel(T[tab])
fr = r.finish(); print(k, len(fr), "frames", round(fr[-1][0] - fr[0][0], 1), "s")
sp(0)
12 changes: 8 additions & 4 deletions site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ served by GitHub Pages at `https://copper-browser.github.io/Copper/` and by Exow

- `index.html` — the whole page: inline CSS and a little vanilla JS. No framework, no build
step, no external fonts, CDNs or trackers.
- `assets/` — real captures of Copper, the app icon, favicons and the 1200×630 `og.png`
- `assets/` — real captures of Copper, the app icon, favicons and the 1200×630 `og.jpg`
social card:
- `copper-google.webp` — the hero still (2240×1480, shown at 1120 CSS px).
- `copper-hero-{1280,1920}.webp` + `copper-hero-sm.webp` — the hero: the whole Copper
window on Wikipedia's Copper article, transparent surround (`-sm`: a narrower window for phones).
- `side-{copper,patina,ember}.mp4` + `.webp` — the bento's three sidebars, each space's
animated theme with the selection moving between tabs (loop + poster, about 70 KB each).
- `copper-motion.mp4` + `copper-motion.webp` — tabs, ⌘K, spaces, tabs on top (loop + poster).
- `copper-jev.mp4` + `copper-jev.webp` — Jev running one goal, driver timeline open.
Videos are H.264, muted, `+faststart`; they play only while on screen, have a Pause
button, and show just the poster under `prefers-reduced-motion`.
Videos are H.264, muted, `+faststart`. Nothing of a video is fetched until it is near the
screen; it plays only while on screen, a click (or Space/Enter) pauses it, and under
`prefers-reduced-motion` only the poster shows.
- `.nojekyll` — serve the files as they are.

Pushing a change under `site/` to `fork` deploys it: `.github/workflows/site.yml` checks that
Expand Down
Binary file modified site/assets/art-agate.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified site/assets/art-specimen.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/assets/copper-hero-1280.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/assets/copper-hero-1920.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/assets/copper-hero-sm-720.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/assets/copper-hero-sm.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified site/assets/copper-jev-dark.mp4
Binary file not shown.
Binary file modified site/assets/copper-jev-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified site/assets/copper-jev.mp4
Binary file not shown.
Binary file modified site/assets/copper-jev.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified site/assets/copper-motion-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified site/assets/copper-motion.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/assets/icon-96.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified site/assets/loop-agents.mp4
Binary file not shown.
Binary file modified site/assets/loop-agents.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified site/assets/og.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed site/assets/post-credits.webp
Binary file not shown.
Binary file added site/assets/side-copper.mp4
Binary file not shown.
Binary file added site/assets/side-copper.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/assets/side-ember.mp4
Binary file not shown.
Binary file added site/assets/side-ember.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/assets/side-patina.mp4
Binary file not shown.
Binary file added site/assets/side-patina.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed site/assets/tile-side-125-top.webp
Binary file not shown.
Binary file removed site/assets/tile-side-30-top.webp
Binary file not shown.
Binary file removed site/assets/tile-side-85-top.webp
Binary file not shown.
Loading
Loading