1 Commits

Author SHA1 Message Date
34a568195a Bob AI: Add animation to the hero section text 2026-02-09 18:15:09 +02:00

View File

@@ -5,6 +5,7 @@ import HeroBackgrounds, { type HeroBackgroundVariantProps } from "@/components/b
import EmailSignupForm from "@/components/form/EmailSignupForm"; import EmailSignupForm from "@/components/form/EmailSignupForm";
import { cls } from "@/lib/utils"; import { cls } from "@/lib/utils";
import { LucideIcon } from "lucide-react"; import { LucideIcon } from "lucide-react";
import { motion } from "framer-motion";
type HeroSignupBackgroundProps = Extract< type HeroSignupBackgroundProps = Extract<
HeroBackgroundVariantProps, HeroBackgroundVariantProps,
@@ -79,6 +80,11 @@ const HeroSignup = ({
> >
<HeroBackgrounds {...background} /> <HeroBackgrounds {...background} />
<div className={cls("w-content-width mx-auto relative z-10", containerClassName)}> <div className={cls("w-content-width mx-auto relative z-10", containerClassName)}>
<motion.div
initial={{ opacity: 0, x: -50 }}
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 1 }}
>
<TextBox <TextBox
title={title} title={title}
description={description} description={description}
@@ -90,6 +96,7 @@ const HeroSignup = ({
tagClassName={cls("mb-0", tagClassName)} tagClassName={cls("mb-0", tagClassName)}
center={true} center={true}
/> />
</motion.div>
<div className={cls("md:max-w-6/10 xl:max-w-45/100 mx-auto mt-6", formWrapperClassName)}> <div className={cls("md:max-w-6/10 xl:max-w-45/100 mx-auto mt-6", formWrapperClassName)}>
<EmailSignupForm <EmailSignupForm
inputPlaceholder={inputPlaceholder} inputPlaceholder={inputPlaceholder}