--- import { Image } from "astro:assets"; import pastoral from "@/assets/the-pastoral-state.jpg"; import savage from "@/assets/the-savage-state.jpg"; import consumation from "@/assets/the-consumation-of-empire.jpg"; import desolation from "@/assets/desolation.jpg"; import destruction from "@/assets/destruction.jpg"; const paintings = [ { src: savage, title: "The Savage State", year: "1834", description: "The first in Thomas Cole's Course of Empire. Dawn breaks over a wilderness as nomadic hunters chase a wounded deer and storm clouds wreathe the mountain. Nature is supreme; man clings to its edges.", link: "https://explorethomascole.org/project/the-savage-state/", }, { src: pastoral, title: "The Pastoral or Arcadian State", year: "1834", description: "The second in Thomas Cole's Course of Empire. Morning light, cleared fields, a Stonehenge-like temple, an old man tracing geometry in the dirt while a boy sketches a figure on stone. Civilization stirs; agriculture, science, art, all still close to the earth.", link: "https://explorethomascole.org/project/the-arcadian-or-pastoral-state/", }, { src: consumation, title: "The Consummation of Empire", year: "1836", description: "The central panel of Thomas Cole's Course of Empire. High noon over a marble city. A triumphant ruler crosses the bridge in an elephant-drawn car, temples crowd the bay, the harbor brims with ships. Splendor so total it can only precede collapse.", link: "https://explorethomascole.org/project/the-consummation-of-empire/", }, { src: destruction, title: "Destruction", year: "1836", description: "The fourth panel of Thomas Cole's Course of Empire. Storm and sack. Invaders pour through the gates, the temple porch becomes a catapult, ships burn in the harbor, a headless warrior presides over the slaughter as the sky turns to fire.", link: "https://explorethomascole.org/project/destruction/", }, { src: desolation, title: "Desolation", year: "1836", description: "The final panel of Thomas Cole's Course of Empire. Sunset and moonrise over silent ruins. Vines climb a lone column, a bird nests where a temple stood, deer roam the broken friezes. No human figures remain. Nature outlasts everything man builds.", link: "https://explorethomascole.org/project/desolation/", }, ]; const estHour = parseInt( new Date().toLocaleString("en-US", { timeZone: "America/New_York", hour: "numeric", hour12: false, }), ); const boundaries = [6, 9, 12, 15, 18]; const idx = boundaries.findLastIndex((b) => estHour >= b); const { src, title, year, description, link } = paintings[idx === -1 ? 4 : idx]; ---