--- import { getImage, Image } from "astro:assets"; import appIcon from "../assets/icon.webp"; import desktopScreenshot from "../assets/app-desktop.webp"; import dmSansLatinUrl from "../assets/fonts/dm-sans-latin.woff2?url"; import "../styles/fonts.css"; import { ANDROID_PLAY_STORE_URL, GITHUB_REPOSITORY_URL, IOS_APP_STORE_URL, MARKETING_STATS, } from "../lib/site"; interface Props { title?: string; description?: string; pageClass?: string; } const { title = "T3 Code", description = "T3 Code. The open-source control plane for coding agents.", pageClass, } = Astro.props; // Social preview card. Link unfurlers (Instagram, iMessage, X, Slack) want a // 1200x630 jpg or png at an absolute URL. Built from the hero screenshot so it // stays in sync with the homepage. const socialImage = await getImage({ src: desktopScreenshot, width: 1200, height: 630, fit: "cover", position: "top", format: "jpg", quality: 90, }); const socialImageUrl = new URL(socialImage.src, Astro.site); const canonicalUrl = new URL(Astro.url.pathname, Astro.site); --- {title}