Add src/app/contact/page.tsx

This commit is contained in:
2026-06-10 05:05:00 +00:00
parent 54b9fe483e
commit 43120c3d11

108
src/app/contact/page.tsx Normal file
View File

@@ -0,0 +1,108 @@
"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import FooterMedia from '@/components/sections/footer/FooterMedia';
export default function ContactPage() {
const updatedNavItems = [
{ name: "Home", id: "/" },
{ name: "Features", id: "#features" },
{ name: "How It Works", id: "#how-it-works" },
{ name: "Impact", id: "#metrics" },
{ name: "Testimonials", id: "#testimonials" },
{ name: "FAQ", id: "#faq" },
{ name: "Contact", id: "/contact" },
];
return (
<ThemeProvider
defaultButtonVariant="shift-hover"
defaultTextAnimation="entrance-slide"
borderRadius="soft"
contentWidth="smallMedium"
sizing="mediumLargeSizeLargeTitles"
background="floatingGradient"
cardStyle="gradient-mesh"
primaryButtonStyle="gradient"
secondaryButtonStyle="solid"
headingFontWeight="semibold"
>
<ReactLenis root>
<div id="nav" data-section="nav">
<NavbarStyleCentered
navItems={updatedNavItems}
button={{
text: "Start Segregating Now", href: "/contact"
}}
logoSrc="http://img.b2bpic.net/free-photo/incense-sticks-with-herbs-near-monster-leaf-coaster_23-2147844956.jpg"
logoAlt="EcoSegregate Logo"
brandName="EcoSegregate"
/>
</div>
<div id="contact-page-section" data-section="contact-page-section">
<ContactSplitForm
useInvertedBackground={false}
title="Get in Touch with moin"
description="Call us at 9876573475 or fill out the form below. We'd love to hear from you."
inputs={[
{ name: "name", type: "text", placeholder: "Your Name", required: true },
{ name: "email", type: "email", placeholder: "Your Email", required: true },
{ name: "phone", type: "tel", placeholder: "Your Phone Number", required: false },
{ name: "subject", type: "text", placeholder: "Subject" },
]}
textarea={{
name: "message", placeholder: "Your Message", rows: 5,
required: true,
}}
imageSrc="http://img.b2bpic.net/free-photo/3d-abstract-landscape-cubes-with-depth-field_1048-12642.jpg"
imageAlt="Abstract network illustration for contact section"
mediaAnimation="slide-up"
mediaPosition="right"
buttonText="Send Message"
onSubmit={(data) => {
console.log("Contact form submitted:", data);
alert("Your message has been sent!");
}}
/>
</div>
<div id="footer" data-section="footer">
<FooterMedia
imageSrc="http://img.b2bpic.net/free-photo/person-using-zero-emissions-mean-transportation-go-around-city_23-2151261371.jpg"
imageAlt="Clean city park with smart bins"
logoSrc="http://img.b2bpic.net/free-photo/incense-sticks-with-herbs-near-monster-leaf-coaster_23-2147844956.jpg"
logoText="EcoSegregate"
columns={[
{
title: "Platform", items: [
{ label: "Features", href: "#features" },
{ label: "How It Works", href: "#how-it-works" },
{ label: "Impact", href: "#metrics" },
],
},
{
title: "Company", items: [
{ label: "About Us", href: "#about" },
{ label: "Testimonials", href: "#testimonials" },
{ label: "Partnerships", href: "#social-proof" },
],
},
{
title: "Support", items: [
{ label: "FAQ", href: "#faq" },
{ label: "Contact", href: "/contact" },
{ label: "Privacy Policy", href: "#" },
],
},
]}
copyrightText="© 2024 EcoSegregate. All rights reserved."
/>
</div>
</ReactLenis>
</ThemeProvider>
);
}