Add src/app/payment/page.tsx
This commit is contained in:
67
src/app/payment/page.tsx
Normal file
67
src/app/payment/page.tsx
Normal file
@@ -0,0 +1,67 @@
|
||||
"use client";
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import ReactLenis from "lenis/react";
|
||||
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
|
||||
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
|
||||
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
|
||||
import { useState } from 'react';
|
||||
|
||||
export default function PaymentPage() {
|
||||
const [paymentStep, setPaymentStep] = useState<'details' | 'confirm'>('details');
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="expand-hover"
|
||||
defaultTextAnimation="background-highlight"
|
||||
borderRadius="pill"
|
||||
contentWidth="mediumLarge"
|
||||
sizing="mediumLarge"
|
||||
background="noise"
|
||||
cardStyle="gradient-mesh"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
headingFontWeight="light"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<NavbarStyleApple
|
||||
navItems={[
|
||||
{ name: "Home", id: "/" },
|
||||
{ name: "Products", id: "/#products" },
|
||||
{ name: "Payment", id: "/payment" },
|
||||
]}
|
||||
brandName="ZUPEYR"
|
||||
/>
|
||||
|
||||
<div className="min-h-screen pt-32 pb-20 px-6 max-w-4xl mx-auto">
|
||||
{paymentStep === 'details' ? (
|
||||
<ContactSplitForm
|
||||
title="Secure Payment"
|
||||
description="Select your payment method and complete the transaction securely."
|
||||
inputs={[
|
||||
{ name: "name", type: "text", placeholder: "Full Name" },
|
||||
{ name: "phone", type: "tel", placeholder: "EVC/Zaad/Sahal Phone Number" }
|
||||
]}
|
||||
multiSelect={{
|
||||
name: "method", label: "Select Payment Method", options: ["EVC Plus", "Zaad", "Sahal"]
|
||||
}}
|
||||
buttonText="Pay Now"
|
||||
onSubmit={() => setPaymentStep('confirm')}
|
||||
className="bg-card p-8 rounded-2xl border border-accent"
|
||||
/>
|
||||
) : (
|
||||
<div className="bg-card p-12 rounded-2xl border border-accent text-center">
|
||||
<h2 className="text-3xl font-bold mb-4">Payment Confirmation</h2>
|
||||
<p className="mb-8 text-lg">Your request has been submitted. Our team will process your order shortly. Please keep your phone ready for the verification prompt.</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<FooterBaseCard
|
||||
logoText="ZUPEYR STORE"
|
||||
columns={[]}
|
||||
/>
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user