Create professional demos and 3D mockups in seconds, directly in your browser
feat: remove FAQ schema generation and related imports; enhance video editor section with improved styling and layout
CristianOlivera11b35455c2edc
diff --git a/app/[locale]/(home)/page.tsx b/app/[locale]/(home)/page.tsxindex 752ba6c..7e5fdc2 100644--- a/app/[locale]/(home)/page.tsx+++ b/app/[locale]/(home)/page.tsx@@ -13,9 +13,9 @@ import FeaturesShowcase from "@/app/components/ui/home/FeaturesShowcase";import SocialReactions from "@/app/components/ui/home/SocialReactions";import FAQ from "@/app/components/ui/home/FAQ";import { buildPageMetadata } from "@/lib/seo";-import { getTranslations, setRequestLocale } from "next-intl/server";+import { setRequestLocale } from "next-intl/server";import HeroEditorPreview from "@/app/components/ui/home/HeroEditorPreview";-import { generateFAQSchema, generateVideoObjectSchema } from "@/app/components/seo/StructuredData";+import { generateVideoObjectSchema } from "@/app/components/seo/StructuredData";type Props = {params: Promise<{ locale: string }>;@@ -102,9 +102,6 @@ export default async function Home({ params }: Props) {const { locale } = await params;setRequestLocale(locale);const schemaLocale = (locale in HOME_COPY ? locale : "en") as HomeLocale;- const tFaq = await getTranslations({ locale, namespace: "faq" });- const faqItems = tFaq.raw("items") as { q: string; a: string }[];- const faqSchema = generateFAQSchema(locale, faqItems);return (<>@@ -112,7 +109,6 @@ export default async function Home({ params }: Props) {<StructuredData data={generateWebSiteSchema(schemaLocale)} /><StructuredData data={generateOrganizationSchema()} /><StructuredData data={generateVideoObjectSchema(locale)} />- <StructuredData data={faqSchema} /><div className="flex flex-col"><div className="relative overflow-hidden bg-gradient-radial-primary w-full">diff --git a/app/[locale]/(home)/video-editor/page.tsx b/app/[locale]/(home)/video-editor/page.tsxindex c1f2c9a..4b89a39 100644--- a/app/[locale]/(home)/video-editor/page.tsx+++ b/app/[locale]/(home)/video-editor/page.tsx@@ -186,12 +186,60 @@ export default async function VideoEditorPage({ params }: Props) {<FAQ items={faqItems} eyebrow={t("faqEyebrow")} title1={t("faqTitle1")} title2={t("faqTitle2")} subtitle={t("faqSubtitle")} /><section className="max-w-7xl mx-auto px-6 pb-20">- <div className="squircle-element-2xl bg-gradient-to-br from-cyan-500/20 via-blue-600/20 to-fuchsia-500/20 border border-white/10 p-8 sm:p-12 text-center">- <h2 className="text-3xl font-semibold text-white mb-3">{t("ctaTitle")}</h2>- <p className="text-neutral-400 mb-6">{t("ctaSubtitle")}</p>- <Button asChild size="lg" className="rounded-full bg-white text-black hover:bg-neutral-100">- <Link href={`/${locale}/editor`}>{t("ctaButton")}</Link>- </Button>+ <div className="squircle-element-2xl relative overflow-hidden bg-[#100e0b]/60 border border-white/10 p-8 sm:p-12 text-center">++ <div className="absolute inset-0 pointer-events-none overflow-hidden select-none" style={{ willChange: 'transform' }} aria-hidden="true">++ <div+ className="absolute -top-[40%] left-[10%] w-[130%] h-[150%] rounded-full blur-[70px] md:blur-[100px] opacity-65"+ style={{+ background: 'radial-gradient(circle at center, rgba(247, 164, 66, 0.9) 0%, rgba(247, 115, 22, 0.5) 50%, transparent 100%)',+ mixBlendMode: 'hard-light'+ }}+ />++ <div+ className="absolute -bottom-[30%] -right-[20%] w-[100%] h-[130%] rounded-full blur-[60px] md:blur-[80px] opacity-35"+ style={{+ background: 'radial-gradient(circle at center, rgba(0, 138, 255, 0.7) 0%, rgba(233, 66, 247, 0.5) 60%, transparent 100%)',+ mixBlendMode: 'soft-light'+ }}+ />++ <div+ className="absolute top-[10%] left-[30%] w-[50%] h-[50%] rounded-full blur-[50px] opacity-20"+ style={{+ background: 'radial-gradient(circle at center, rgb(255, 255, 255) 0%, transparent 70%)',+ mixBlendMode: 'overlay'+ }}+ />++ <div+ className="absolute inset-0"+ style={{+ background: 'linear-gradient(to top, rgba(16, 14, 11, 0.85) 0%, transparent 80%)',+ mixBlendMode: 'normal'+ }}+ />+ </div>++ <div className="relative z-10">+ <h2 className="text-3xl font-semibold text-white tracking-tight mb-3">+ {t("ctaTitle")}+ </h2>+ <p className="text-neutral-400 mb-6">+ {t("ctaSubtitle")}+ </p>+ <Button+ asChild+ size="lg"+ className="rounded-full bg-white text-black hover:bg-neutral-100"+ >+ <Link href={`/${locale}/editor`}>+ {t("ctaButton")}+ </Link>+ </Button>+ </div></div></section></div>diff --git a/app/components/seo/StructuredData.tsx b/app/components/seo/StructuredData.tsxindex 3bbd33e..6702129 100644--- a/app/components/seo/StructuredData.tsx+++ b/app/components/seo/StructuredData.tsx@@ -114,19 +114,6 @@ export function StructuredData({ data }: StructuredDataProps) {);}-export function generateFAQSchema(locale: string, items: FAQItem[]): FAQPageSchema {- return {- "@context": "https://schema.org",- "@type": "FAQPage",- inLanguage: locale,- mainEntity: items.map((f) => ({- "@type": "Question",- name: f.q,- acceptedAnswer: { "@type": "Answer", text: f.a },- })),- };-}-export function generateVideoObjectSchema(locale: string): VideoObjectSchema {const content: Record<string, { name: string; description: string }> = {es: {