import "./components/ui/tidal.css"; import { ShieldCheck } from "lucide-react"; import { TidalTestimonialGrid, type TidalTestimonialGridItem } from "./components/ui/testimonial-grid"; import "./components/ui/testimonial-grid.css"; function tidalExampleAvatarDataUri(seed: unknown) { const text = String(seed).replace(/[^a-z0-9]/gi, "").slice(-2) || "UI"; const palette = ["#333333", "#555555", "#777777", "#999999", "#bbbbbb"]; const color = palette[Array.from(text).reduce((sum, character) => sum + character.charCodeAt(0), 0) % palette.length]; const svg = ``; return `data:image/svg+xml,${encodeURIComponent(svg)}`; } function tidalExampleImageDataUri(label: string) { const safeLabel = label.replace(/[<>&]/g, "").slice(0, 28) || "Sample image"; const svg = `${safeLabel}`; return `data:image/svg+xml,${encodeURIComponent(svg)}`; } const tidalExampleStyles = ".tidal-scope .testimonial-grid-demo {\n width: 100%;\n max-width: 1120px;\n min-width: 0;\n padding: 29px;\n border: 1px solid var(--t-border);\n border-radius: 18px;\n background:\n linear-gradient(var(--t-border) 1px, transparent 1px),\n linear-gradient(90deg, var(--t-border) 1px, transparent 1px),\n var(--t-subtle);\n background-size: 24px 24px;\n color: var(--t-ink);\n container-type: inline-size;\n}\n\n.tidal-scope .testimonial-grid-demo,\n.tidal-scope .testimonial-grid-demo * {\n box-sizing: border-box;\n}\n\n.tidal-scope .testimonial-grid-demo-layout {\n min-width: 0;\n}\n\n.tidal-scope\n .testimonial-grid-demo\n > .testimonial-grid-demo-layout\n > .tidal-testimonial-grid {\n max-width: none;\n}\n\n.tidal-scope .testimonial-grid-demo-note {\n display: flex;\n align-items: flex-start;\n gap: 11px;\n min-width: 0;\n margin-top: 15px;\n padding: 15px 16px;\n border: 1px solid var(--t-border);\n border-radius: 10px;\n background: var(--t-surface);\n color: var(--t-ink);\n scroll-margin-block: 18px;\n}\n\n.tidal-scope .testimonial-grid-demo-note > span {\n display: grid;\n width: 34px;\n height: 34px;\n flex: none;\n place-items: center;\n border-radius: 9px;\n background: var(--t-ink);\n color: var(--t-surface);\n}\n\n.tidal-scope .testimonial-grid-demo-note > div {\n min-width: 0;\n}\n\n.tidal-scope .testimonial-grid-demo-note strong {\n display: block;\n font-size: 11px;\n font-weight: 650;\n line-height: 1.4;\n}\n\n.tidal-scope .testimonial-grid-demo-note p {\n margin: 4px 0 0;\n color: var(--t-muted);\n font-size: 11px;\n line-height: 1.55;\n overflow-wrap: anywhere;\n}\n\n@container (max-width: 520px) {\n .tidal-scope .testimonial-grid-demo-layout {\n padding: 0;\n }\n\n .tidal-scope .testimonial-grid-demo-note {\n padding: 13px;\n }\n}\n\n@media (max-width: 390px) {\n .tidal-scope .testimonial-grid-demo {\n padding: 11px;\n background-size: 18px 18px;\n }\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .tidal-scope .testimonial-grid-demo-note {\n animation: testimonial-grid-demo-note-enter 430ms var(--t-ease-out) 380ms\n both;\n }\n}\n\n@keyframes testimonial-grid-demo-note-enter {\n from {\n opacity: 0;\n transform: translateY(7px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n}"; const SAMPLE_TESTIMONIALS = [ { id: "sample-avery", quote: "The review path stayed clear from the first draft through the final handoff.", name: "Avery Cole", role: "Product lead", organization: "Sample product team", avatar: { src: tidalExampleAvatarDataUri("01"), alt: "" }, context: "Fictional sample", featured: true, source: { label: "Read sample disclosure", href: "#testimonial-grid-demo-note", }, }, { id: "sample-mira", quote: "Each decision had enough context for the next person to keep moving.", name: "Mira Lawson", role: "Design director", organization: "Sample design team", avatar: { src: tidalExampleAvatarDataUri("02"), alt: "" }, context: "Fictional sample", }, { id: "sample-jonah", quote: "The interface made the important next step easy to recognize.", name: "Jonah Reed", role: "Operations lead", organization: "Sample operations team", avatar: { src: tidalExampleAvatarDataUri("03"), alt: "" }, context: "Fictional sample", }, { id: "sample-sana", quote: "We could discuss the work without translating the screen first.", name: "Sana Bell", role: "Research lead", organization: "Sample research team", avatar: { src: tidalExampleAvatarDataUri("04"), alt: "" }, context: "Fictional sample", }, { id: "sample-elliot", quote: "The component held its hierarchy even when our copy became longer.", name: "Elliot Park", role: "Content designer", organization: "Sample content team", avatar: { src: tidalExampleAvatarDataUri("05"), alt: "" }, context: "Fictional sample", }, { id: "sample-nia", quote: "The details felt considered while the interaction remained familiar.", name: "Nia Foster", role: "Frontend lead", organization: "Sample engineering team", avatar: { src: tidalExampleAvatarDataUri("06"), alt: "" }, context: "Fictional sample", }, ] satisfies readonly TidalTestimonialGridItem[]; export function TestimonialGridDemo() { return (
); } export default function AgentExample() { return (
); }