diff --git a/src/app/marketing/_components/FooterStep.tsx b/src/app/marketing/_components/FooterStep.tsx new file mode 100644 index 0000000..ffdd5b3 --- /dev/null +++ b/src/app/marketing/_components/FooterStep.tsx @@ -0,0 +1,72 @@ +"use client"; +import InputGroup from "@/components/FormElements/InputGroup"; +import { TextAreaGroup } from "@/components/FormElements/InputGroup/text-area"; +import { ShowcaseSection } from "@/components/Layouts/showcase-section"; +import { FormErrorMessages } from "@/constants/Texts"; +import useFooterStepPresenter from "./useFooterStepPresenter"; + + +const FooterStep = () => { + const { errors, handleSubmit, onSubmit, register } = + useFooterStepPresenter(); + + return ( +
+ +
+ + {errors.email && ( +

+ {errors.email.message as string} +

+ )} + + + + +
+
+
+ ); +}; + +export default FooterStep; \ No newline at end of file diff --git a/src/app/marketing/_components/useFooterStepPresenter.ts b/src/app/marketing/_components/useFooterStepPresenter.ts new file mode 100644 index 0000000..0e42083 --- /dev/null +++ b/src/app/marketing/_components/useFooterStepPresenter.ts @@ -0,0 +1,30 @@ +import { useForm } from "react-hook-form"; + +interface FooterFormValues { + email: string; + phoneNumber?: string; + address?: string; + tagline?: string; + copyright?: string; +} + +const useFooterStepPresenter = () => { + const { + register, + handleSubmit, + formState: { errors }, + } = useForm(); + + const onSubmit = (data: FooterFormValues) => { + console.log(data); + }; + + return { + register, + handleSubmit, + onSubmit, + errors, + }; +}; + +export default useFooterStepPresenter; \ No newline at end of file diff --git a/src/app/marketing/page.tsx b/src/app/marketing/page.tsx index 90bb94d..183e9e4 100644 --- a/src/app/marketing/page.tsx +++ b/src/app/marketing/page.tsx @@ -8,6 +8,7 @@ import ChallengesStep from "./_components/ChallengesStep"; import ChartStep from "./_components/ChartStep"; import ContactsStep from "./_components/ContactsStep"; import FeaturesStep from "./_components/FeaturesStep"; +import FooterStep from "./_components/FooterStep"; import HeroStep from "./_components/HeroStep"; const Marketing = () => { @@ -53,6 +54,11 @@ const Marketing = () => { description: "Create contacts section", content: , }, + { + title: "Footer", + description: "Add footer information", + content: , + }, ]; return ( <>