Skip to content
AlonzoJIPublic

About

Jared's Personal Website

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Art and music assets

Painting data lives in data/paintings.ts and song data in data/songs.ts. data/opener.ts pairs the fixed opener painting and song, which always show first and are never part of the random rotation.

Images

Full-size originals from Wikimedia Commons go in art-originals/, which is gitignored. The committed working copies in public/art/ use the file name from each painting's image field. They are capped at 3200px on the long edge and saved as quality 90 JPGs with sips -s format jpeg -s formatOptions 90 -Z 3200. Originals already under 3200px are copied as-is. Whistlejacket is kept as the full painting, since its zoom crop happens in CSS.

Wikimedia rate-limits generic clients with HTTP 429. Send a descriptive User-Agent and download one file at a time.

Four originals were supplied by hand instead of downloaded from Commons, after the rate limit blocked them: Moran (1555x895), Green Wheat Fields (4096x3215), The Ambassadors (1280x1261) and The Starry Night (1280x1014, WebP converted to JPG). Moran, The Ambassadors and The Starry Night are well under the 3200px cap, so replace them with the Commons originals if they look soft at full width.

File (public/art/) Painting Museum page Wikimedia Commons
ruisdael-jewish-cemetery.jpg Ruisdael, The Jewish Cemetery (opener) DIA collection search file
caillebotte-paris-street-rainy-day.jpg Caillebotte, Paris Street; Rainy Day AIC (CC0 download) file
friedrich-abbey-in-the-oakwood.jpg Friedrich, The Abbey in the Oakwood SMB online collection file
cole-the-oxbow.jpg Cole, The Oxbow The Met (open access) file
gericault-raft-of-the-medusa.jpg Géricault, The Raft of the Medusa Louvre collections search file
veronese-wedding-at-cana.jpg Veronese, The Wedding at Cana Louvre collections search file
delacroix-liberty-leading-the-people.jpg Delacroix, Liberty Leading the People Louvre collections search file (post-2024 restoration)
shahnama-feast-of-sada.jpg Shahnama of Shah Tahmasp, The Feast of Sada (folio 22v) The Met (open access) file
rivera-man-controller-of-the-universe.jpg Rivera, Man, Controller of the Universe Palacio de Bellas Artes file (partial view)
rivera-dream-of-a-sunday-afternoon.jpg Rivera, Dream of a Sunday Afternoon in Alameda Park Museo Mural Diego Rivera file
moran-grand-canyon-of-the-yellowstone.jpg Moran, The Grand Canyon of the Yellowstone SAAM collection search file
van-gogh-green-wheat-fields-auvers.jpg Van Gogh, Green Wheat Fields, Auvers NGA collection search (open access) file
hopper-nighthawks.jpg Hopper, Nighthawks AIC file
van-gogh-starry-night.jpg Van Gogh, The Starry Night MoMA file
holbein-the-ambassadors.jpg Holbein, The Ambassadors National Gallery search file
stubbs-whistlejacket.jpg Stubbs, Whistlejacket National Gallery search file

Notes:

  • Ruisdael painted two versions of The Jewish Cemetery (Detroit and Dresden). The Commons file is 2700x2079 (about 1.30), which matches the Detroit canvas (142 x 189 cm, about 1.33) rather than Dresden (84 x 95 cm, about 1.13). It's still worth comparing against the DIA page by eye.
  • Both Rivera murals are still under copyright and are not open access. Show the credit line from data/paintings.ts with them, and get permission from ARS before relying on them publicly. The Commons photo of Man, Controller of the Universe shows only part of the mural, so look for a fuller view.
  • After the images are in place, adjust focalX, focalY and zoom by eye at phone and desktop widths.

Spotify track URIs

Every song in data/songs.ts has the placeholder spotify:track:TODO. To get the real one:

  1. In the Spotify desktop app, right-click the track (or click ...), choose Share, then hold Option (Mac) or Alt (Windows) and click Copy Spotify URI. It looks like spotify:track: followed by a 22-character id.
  2. Without the desktop app, use Share > Copy Song Link instead. That gives https://open.spotify.com/track/<id>?si=.... Take the <id> and write it as spotify:track:<id>.

Also set startSec and endSec for each clip. They default to 0 and 30.

Songs with a placeholder URI are skipped. If none are playable (or Spotify fails to load), the gallery advances every 30 seconds instead.

Visitors who are not signed in to Spotify only get a 30 second preview. If startSec is past the end of that preview, the clip plays from the start of the preview for the same length.

Testing music and paintings

  • /?song=<id> shows a small "test clip" button that plays that one clip in the docked player, and logs playback events to the console as [music].
  • /?painting=<id> opens the idle gallery on that painting and holds it there (no music, no auto-advance), which is handy for tuning focalX, focalY and zoom.
  • In the gallery: arrow keys step, M toggles music, F toggles fullscreen. Moving the mouse, tapping or pressing another key shows a "leave gallery" button; that button or Esc exits.
  • Sentry only plays on the opening screen, from the player's own play button. "enter" stops it.

About

Jared's Personal Website

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages