This commit is contained in:
2026-05-06 11:49:49 -04:00
parent 9d61851a75
commit 7cb5c30b71
11 changed files with 58 additions and 32 deletions

View File

@@ -11,7 +11,10 @@ export function BusinessesList({ block }: { block: BusinessesListBlock }) {
{t(block.title)}
</h2>
{block.intro && (
<p className="mt-4 max-w-3xl text-foreground/80 leading-relaxed">{t(block.intro)}</p>
<div
className="mt-4 max-w-3xl text-foreground/80 leading-relaxed"
dangerouslySetInnerHTML={{ __html: t(block.intro) }}
/>
)}
<div className="mt-12 space-y-12">
{block.categories.map((cat, ci) => (
@@ -27,9 +30,10 @@ export function BusinessesList({ block }: { block: BusinessesListBlock }) {
>
<h4 className="font-display text-lg text-primary">{b.name}</h4>
{b.description && (
<p className="mt-2 text-sm text-foreground/80 leading-relaxed">
{t(b.description)}
</p>
<div
className="mt-2 text-sm text-foreground/80 leading-relaxed"
dangerouslySetInnerHTML={{ __html: t(b.description) }}
/>
)}
<div className="mt-4 space-y-1.5 text-sm">
{b.address && (

View File

@@ -29,7 +29,12 @@ export function ContactForm({ block }: { block: ContactFormBlock }) {
<h2 className="font-display italic text-3xl sm:text-4xl md:text-5xl text-primary text-balance">
{t(block.title)}
</h2>
{block.intro && <p className="mt-4 text-foreground/80">{t(block.intro)}</p>}
{block.intro && (
<div
className="mt-4 text-foreground/80 leading-relaxed"
dangerouslySetInnerHTML={{ __html: t(block.intro) }}
/>
)}
<form onSubmit={onSubmit} className="mt-8 grid gap-5">
<div className="grid gap-2">
<Label htmlFor="name">{t(UI.form.name)}</Label>

View File

@@ -25,14 +25,13 @@ export function CtaSection({ block }: { block: CtaSectionBlock }) {
{t(block.title)}
</h2>
{block.subtitle && (
<p
<div
className={cn(
"mt-4 text-base sm:text-lg leading-relaxed",
isPrimary ? "text-primary-foreground/85" : "text-foreground/80",
)}
>
{t(block.subtitle)}
</p>
dangerouslySetInnerHTML={{ __html: t(block.subtitle) }}
/>
)}
<Button
asChild

View File

@@ -41,7 +41,10 @@ export function DocumentsList({ block }: { block: DocumentsListBlock }) {
<p className="text-xs text-muted-foreground mt-0.5">{doc.date}</p>
)}
{doc.description && (
<p className="text-sm text-foreground/70 mt-1">{t(doc.description)}</p>
<div
className="text-sm text-foreground/70 mt-1"
dangerouslySetInnerHTML={{ __html: t(doc.description) }}
/>
)}
</div>
<ExternalLink

View File

@@ -17,9 +17,10 @@ export function EventsList({ block }: { block: EventsListBlock }) {
{t(block.title)}
</h2>
{block.intro && (
<p className="mt-4 text-base sm:text-lg leading-relaxed text-foreground/80">
{t(block.intro)}
</p>
<div
className="mt-4 text-base sm:text-lg leading-relaxed text-foreground/80"
dangerouslySetInnerHTML={{ __html: t(block.intro) }}
/>
)}
</div>
<ol className="mt-10 space-y-4">
@@ -45,7 +46,10 @@ export function EventsList({ block }: { block: EventsListBlock }) {
</p>
)}
{e.description && (
<p className="mt-2 text-foreground/80 leading-relaxed">{t(e.description)}</p>
<div
className="mt-2 text-foreground/80 leading-relaxed"
dangerouslySetInnerHTML={{ __html: t(e.description) }}
/>
)}
</div>
</li>

View File

@@ -42,9 +42,10 @@ export function PhotoGallery({ block }: { block: PhotoGalleryBlock }) {
</h2>
)}
{block.intro && (
<p className="mt-4 max-w-2xl mx-auto text-center text-foreground/80">
{t(block.intro)}
</p>
<div
className="mt-4 max-w-2xl mx-auto text-center text-foreground/80 leading-relaxed"
dangerouslySetInnerHTML={{ __html: t(block.intro) }}
/>
)}
<div className="mt-10 grid grid-cols-2 gap-3 md:grid-cols-4 md:gap-4">
{block.photos.map((p, i) => (

View File

@@ -12,9 +12,10 @@ export function ServicesList({ block }: { block: ServicesListBlock }) {
{t(block.title)}
</h2>
{block.intro && (
<p className="mt-4 text-base sm:text-lg leading-relaxed text-foreground/80">
{t(block.intro)}
</p>
<div
className="mt-4 text-base sm:text-lg leading-relaxed text-foreground/80"
dangerouslySetInnerHTML={{ __html: t(block.intro) }}
/>
)}
</div>
<div className="mt-10 grid gap-6 md:grid-cols-2">
@@ -26,7 +27,10 @@ export function ServicesList({ block }: { block: ServicesListBlock }) {
<h3 className="font-display text-xl sm:text-2xl text-primary mb-2">
{t(s.title)}
</h3>
<p className="text-foreground/80 leading-relaxed">{t(s.description)}</p>
<div
className="text-foreground/80 leading-relaxed"
dangerouslySetInnerHTML={{ __html: t(s.description) }}
/>
{s.items && s.items.length > 0 && (
<ul className="mt-4 space-y-2">
{s.items.map((item, j) => (

View File

@@ -16,9 +16,10 @@ export function TextIntro({ block }: { block: TextIntroBlock }) {
<h2 className="font-display italic text-3xl sm:text-4xl md:text-5xl text-primary text-balance">
{t(block.title)}
</h2>
<p className="mt-6 text-base sm:text-lg leading-relaxed text-foreground/85">
{t(block.body)}
</p>
<div
className="mt-6 text-base sm:text-lg leading-relaxed text-foreground/85 space-y-4 [&_strong]:font-semibold [&_strong]:text-primary"
dangerouslySetInnerHTML={{ __html: t(block.body) }}
/>
</div>
</section>
);