PageSourceSearch

https://www.frederic-leighton.org/assets/routes-CG1kLuzI.js

js frederic-leighton.org collected 2026-10-02 13:03:02 UTC 3,097 bytes, 1 lines download raw bytes

1import{t as e}from"./jsx-runtime-DGeXAQPT.js";import{t}from"./link-VOFt2yun.js";import{A as n,b as r,k as i,x as a}from"./index-Du2F0RY9.js";var o=e();function s({artist:e}){return(0,o.jsx)(`section`,{"aria-label":`Featured paintings`,className:`mx-auto max-w-6xl px-6`,children:(0,o.jsx)(`div`,{className:`flex snap-x snap-mandatory gap-4 overflow-x-auto pb-4`,children:e.sliderPaintingSlugs.map(t=>e.paintings.find(e=>e.slug===t)).filter(e=>!!e).map(n=>(0,o.jsxs)(t,{to:i(n),className:`group relative h-[70vh] w-[80vw] shrink-0 snap-center overflow-hidden bg-muted md:w-[60vw] lg:w-[55%]`,children:[(0,o.jsx)(a,{src:n.image,alt:`${n.title} by ${e.name}`,className:`h-full w-full object-cover transition-transform duration-[1200ms] group-hover:scale-[1.04]`}),(0,o.jsxs)(`div`,{className:`absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent p-6`,children:[(0,o.jsx)(`p`,{className:`font-display text-2xl text-white md:text-3xl`,children:n.title}),n.year?(0,o.jsx)(`p`,{className:`mt-1 text-xs uppercase tracking-[0.2em] text-white/75`,children:n.year}):null]})]},n.slug))})})}function c(){let{artist:e}=n.useLoaderData();return(0,o.jsxs)(`div`,{className:`pb-20`,children:[(0,o.jsx)(s,{artist:e}),(0,o.jsxs)(`section`,{className:`mx-auto mt-16 grid max-w-5xl gap-10 px-6 md:grid-cols-[280px_1fr]`,children:[(0,o.jsx)(`div`,{className:`text-center`,children:(()=>{if(e.portraitArt)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a,{src:e.portraitArt,alt:`Portrait of ${e.name}`,className:`mx-auto w-full max-w-[260px] border border-border`}),e.portraitTitle?(0,o.jsx)(`p`,{className:`mt-3 text-sm italic text-muted-foreground`,children:e.portraitTitle}):null]});let t=e.paintings.find(e=>/self.?portrait/i.test(e.title))??e.paintings[0];return t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a,{src:t.image,alt:`${t.title} - ${e.name}`,className:`mx-auto w-full max-w-[260px] border border-border`}),(0,o.jsx)(`p`,{className:`mt-3 text-sm italic text-muted-foreground`,children:t.title})]}):null})()}),(0,o.jsxs)(`div`,{children:[(0,o.jsx)(`h1`,{className:`font-display text-4xl leading-tight text-foreground md:text-5xl`,children:e.fullName}),(0,o.jsx)(`p`,{className:`mt-2 text-sm uppercase tracking-[0.15em] text-muted-foreground`,children:e.lifespan}),(0,o.jsx)(`div`,{className:`prose-bio mt-6 text-[15px] leading-relaxed text-foreground/90`,dangerouslySetInnerHTML:{__html:e.shortBioHtml}}),(0,o.jsx)(t,{to:`/biography.html`,className:`mt-6 inline-block rounded border border-border px-4 py-2 text-sm text-accent hover:bg-muted`,children:e.isMovement?`Click here for the complete description`:`Click here for more`})]})]}),(0,o.jsxs)(`section`,{className:`mx-auto mt-16 max-w-5xl px-6`,children:[(0,o.jsx)(r,{artist:e,page:1}),(0,o.jsx)(`div`,{className:`mt-10 text-center`,children:(0,o.jsxs)(t,{to:`/the-complete-works.html`,search:{page:1},className:`inline-block rounded border border-border px-5 py-2.5 text-sm font-medium text-accent hover:bg-muted`,children:[`View all `,e.paintingsTotal??e.paintings.length,` Works`]})})]})]})}export{c as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.