feat(website): photos upright, without metadata, in responsive sizes
Every upload is turned upright, stripped of its metadata (EXIF, GPS), kept at most 2400 px wide and saved at 480/960/1600 px in WebP and JPEG; the pages pick the size with <picture> and srcset. Every file counts towards storage; a photo that can't be read is refused. sharp 0.35 (prebuilt, no build step on the servers). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
import { MessagePlayer } from "../MessagePlayer";
|
||||
import { media, str, t } from "../load";
|
||||
import { Button, cx, DateBadge, dayName, fmtDate, fmtTime, Img, Paragraphs, SectionHeading, type ButtonData } from "../parts";
|
||||
import { Button, cx, DateBadge, dayName, fmtDate, fmtTime, Img, Paragraphs, Picture, SectionHeading, type ButtonData } from "../parts";
|
||||
import type { SectionProps, SiteEvent } from "../types";
|
||||
import { Hero } from "./Hero";
|
||||
|
||||
@@ -394,7 +394,7 @@ function Invitation(p: SectionProps) {
|
||||
const img = media(p.site, d.imageId);
|
||||
return (
|
||||
<section className="cc-section cc-own-bg cc-dark relative isolate overflow-hidden bg-gray-900 text-white">
|
||||
{img && <img src={img.url} alt="" className="cc-img absolute inset-0 -z-10" loading="lazy" />}
|
||||
{img && <Picture image={img} alt="" className="cc-img absolute inset-0 -z-10" />}
|
||||
<div className="absolute inset-0 -z-10 bg-black/60" aria-hidden="true" />
|
||||
<div className="cc-wrap py-10 text-center">
|
||||
<h2 className="cc-h2">{d.heading}</h2>
|
||||
|
||||
Reference in New Issue
Block a user