From b1cc83b7c172e3ab22d063eb142bdf5a13361ac0 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 25 Mar 2026 13:47:33 +0000 Subject: [PATCH] Update src/app/application-form/page.tsx --- src/app/application-form/page.tsx | 283 ++++++++++++------------------ 1 file changed, 117 insertions(+), 166 deletions(-) diff --git a/src/app/application-form/page.tsx b/src/app/application-form/page.tsx index 1da8ae1..a50c047 100644 --- a/src/app/application-form/page.tsx +++ b/src/app/application-form/page.tsx @@ -1,87 +1,16 @@ "use client"; -import React, { useState } from 'react'; -import { useRouter } from 'next/navigation'; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; import FooterSimple from '@/components/sections/footer/FooterSimple'; -import Link from 'next/link'; +import ButtonTextShift from '@/components/button/ButtonTextShift/ButtonTextShift'; +import { FileText, DollarSign } from "lucide-react"; export default function ApplicationFormPage() { - const router = useRouter(); - const [formData, setFormData] = useState({ - name: '', - email: '', - phone: '', - occupation: '', - company: '', - propertyId: '', - document: null as File | null, - }); - - const handleInputChange = (e: React.ChangeEvent) => { - const { name, value } = e.target; - setFormData(prev => ({ ...prev, [name]: value })); - }; - - const handleFileChange = (e: React.ChangeEvent) => { - if (e.target.files && e.target.files[0]) { - setFormData(prev => ({ ...prev, document: e.target.files![0] })); - } - }; - - const handleSubmit = (e: React.FormEvent) => { + const handleFormSubmit = (e: React.FormEvent) => { e.preventDefault(); - // In a real application, you would send formData to your backend here - console.log('Application Form Data Submitted:', formData); - router.push('/payment'); // Navigate to the payment page - }; - - const footerColumns = [ - { - title: "Company", items: [ - { label: "About Us", href: "/#about" }, - { label: "Our Services", href: "/#services" }, - { label: "Executive Team", href: "/#team" }, - { label: "Properties", href: "/#properties" }, - { label: "Contact", href: "/#contact" } - ] - }, - { - title: "Resources", items: [ - { label: "Investment Guide", href: "#" }, - { label: "Market Reports", href: "#" }, - { label: "FAQ", href: "#" }, - { label: "Blog", href: "#" } - ] - }, - { - title: "Legal", items: [ - { label: "Privacy Policy", href: "#" }, - { label: "Terms of Service", href: "#" }, - { label: "Cookie Policy", href: "#" } - ] - }, - { - title: "Connect", items: [ - { label: "LinkedIn", href: "#" }, - { label: "Instagram", href: "#" }, - { label: "WhatsApp", href: "#" } - ] - } - ]; - - const navbarProps = { - brandName: "Luxe Properties", navItems: [ - { name: "Properties", id: "properties" }, - { name: "About", id: "about" }, - { name: "Services", id: "services" }, - { name: "Team", id: "team" }, - { name: "Testimonials", id: "testimonials" }, - { name: "Application", id: "/application-form" }, - { name: "Contact", id: "contact" } - ], - button: { text: "Schedule Viewing", href: "#contact" } + // In a real application, you would handle form submission here, e.g., send data to an API + alert("Application submitted! Please proceed to payment."); }; return ( @@ -98,123 +27,145 @@ export default function ApplicationFormPage() { headingFontWeight="medium" > -
-
-

Application Form

-

- Please fill out the form below to apply for your desired property. A non-refundable application fee of $60 is required to process your application. - You will be redirected to a secure payment page after submission. +

+
+

Application Form

+

+ Complete the form below to apply for your dream property.

-
-
-
- - -
-
- - -
+ +
+ +
- + + +
+ +
+ -
- -
-
- - -
-
- - -
-
- -
- -
- + + +
+ +
+ -

Max file size: 5MB (PDF, JPG, PNG)

- +

+ Your application has been received! Please proceed to the payment section to finalize your submission. +

+ +
+

Application Fee

+

+ A non-refundable application fee of $60 USD is required to process your application. This fee covers administrative costs and a preliminary review of your submission. +

+

+ Click the button below to complete your payment securely via Flutterwave. +

+
+ +
+