forked from UKSOURCE/hailearning.edu.vn
Merge pull request 'feat: add pricing page with API integration and dynamic rendering' (#7) from hoanganh-03022026-appointment-contact-pricing into main
Reviewed-on: UKSOURCE/hailearning.edu.vn#7
This commit is contained in:
@@ -1,38 +1,9 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useState, useEffect, FormEvent } from "react";
|
import { useState, useEffect, FormEvent } from "react";
|
||||||
|
import { AppointmentData } from "./types";
|
||||||
|
import Breadcrumb from "../components/Breadcrumb";
|
||||||
|
|
||||||
// Types for appointment data from CMS
|
|
||||||
interface AppointmentHero {
|
|
||||||
title: string;
|
|
||||||
backgroundImage: string;
|
|
||||||
subtitle: string;
|
|
||||||
heading: string;
|
|
||||||
description: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface AppointmentForm {
|
|
||||||
heading: string;
|
|
||||||
fields: Array<{
|
|
||||||
name: string;
|
|
||||||
label: string;
|
|
||||||
type: string;
|
|
||||||
placeholder: string;
|
|
||||||
required: boolean;
|
|
||||||
colClass: string;
|
|
||||||
}>;
|
|
||||||
submitButton: {
|
|
||||||
text: string;
|
|
||||||
icon: string;
|
|
||||||
buttonClass: string;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
interface AppointmentData {
|
|
||||||
hero: AppointmentHero;
|
|
||||||
visaOptions: string[];
|
|
||||||
form: AppointmentForm;
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function AppointmentPage() {
|
export default function AppointmentPage() {
|
||||||
const [appointmentData, setAppointmentData] = useState<AppointmentData | null>(null);
|
const [appointmentData, setAppointmentData] = useState<AppointmentData | null>(null);
|
||||||
@@ -256,28 +227,7 @@ export default function AppointmentPage() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* Breadcrumb-Wrapper Section Start */}
|
{/* Breadcrumb-Wrapper Section Start */}
|
||||||
<section
|
<Breadcrumb title={hero.title} current={hero.title} />
|
||||||
className="breadcrumb-wrapper fix bg-cover"
|
|
||||||
style={{ backgroundImage: `url(${backgroundImage})` }}
|
|
||||||
>
|
|
||||||
<div className="shape">
|
|
||||||
<img src="/assets/img/inner-page/shape.png" alt="img" />
|
|
||||||
</div>
|
|
||||||
<div className="container">
|
|
||||||
<div className="page-heading">
|
|
||||||
<h1 className="breadcrumb-title">{hero.title}</h1>
|
|
||||||
<ul className="breadcrumb-list">
|
|
||||||
<li>
|
|
||||||
<a href="/">Home</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevron-right"></i>
|
|
||||||
</li>
|
|
||||||
<li>{hero.title}</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
{/* Appointment Section Start */}
|
{/* Appointment Section Start */}
|
||||||
<section className="appointment-section section-padding fix">
|
<section className="appointment-section section-padding fix">
|
||||||
|
|||||||
30
app/appointment/types.ts
Normal file
30
app/appointment/types.ts
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
export interface AppointmentHero {
|
||||||
|
title: string;
|
||||||
|
backgroundImage: string;
|
||||||
|
subtitle: string;
|
||||||
|
heading: string;
|
||||||
|
description: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AppointmentForm {
|
||||||
|
heading: string;
|
||||||
|
fields: Array<{
|
||||||
|
name: string;
|
||||||
|
label: string;
|
||||||
|
type: string;
|
||||||
|
placeholder: string;
|
||||||
|
required: boolean;
|
||||||
|
colClass: string;
|
||||||
|
}>;
|
||||||
|
submitButton: {
|
||||||
|
text: string;
|
||||||
|
icon: string;
|
||||||
|
buttonClass: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AppointmentData {
|
||||||
|
hero: AppointmentHero;
|
||||||
|
visaOptions: string[];
|
||||||
|
form: AppointmentForm;
|
||||||
|
}
|
||||||
@@ -1,41 +1,8 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useState, useEffect, FormEvent } from "react";
|
import { useState, useEffect, FormEvent } from "react";
|
||||||
|
import { ContactData } from "./types";
|
||||||
interface ContactCard {
|
import Breadcrumb from "../components/Breadcrumb";
|
||||||
type: string;
|
|
||||||
title: string;
|
|
||||||
content: string[];
|
|
||||||
iconType: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ContactData {
|
|
||||||
hero: {
|
|
||||||
title: string;
|
|
||||||
backgroundImage: string;
|
|
||||||
};
|
|
||||||
contactCards: ContactCard[];
|
|
||||||
map: {
|
|
||||||
embedUrl: string;
|
|
||||||
};
|
|
||||||
form: {
|
|
||||||
heading: string;
|
|
||||||
description: string;
|
|
||||||
fields: {
|
|
||||||
name: string;
|
|
||||||
label: string;
|
|
||||||
type: string;
|
|
||||||
placeholder: string;
|
|
||||||
required: boolean;
|
|
||||||
colClass: string;
|
|
||||||
}[];
|
|
||||||
submitButton: {
|
|
||||||
text: string;
|
|
||||||
icon: string;
|
|
||||||
buttonClass: string;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function ContactPage() {
|
export default function ContactPage() {
|
||||||
const [contactData, setContactData] = useState<ContactData | null>(null);
|
const [contactData, setContactData] = useState<ContactData | null>(null);
|
||||||
@@ -150,28 +117,7 @@ export default function ContactPage() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* Breadcrumb-Wrapper Section Start */}
|
{/* Breadcrumb-Wrapper Section Start */}
|
||||||
<section
|
<Breadcrumb title={hero.title} current={hero.title} />
|
||||||
className="breadcrumb-wrapper fix bg-cover"
|
|
||||||
style={{ backgroundImage: `url(${hero.backgroundImage || "/assets/img/inner-page/breadcrumb.jpg"})` }}
|
|
||||||
>
|
|
||||||
<div className="shape">
|
|
||||||
<img src="/assets/img/inner-page/shape.png" alt="img" />
|
|
||||||
</div>
|
|
||||||
<div className="container">
|
|
||||||
<div className="page-heading">
|
|
||||||
<h1 className="breadcrumb-title">{hero.title}</h1>
|
|
||||||
<ul className="breadcrumb-list">
|
|
||||||
<li>
|
|
||||||
<a href="/">Home</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevron-right"></i>
|
|
||||||
</li>
|
|
||||||
<li>Contact Us</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
{/* Contact Icon Section Start */}
|
{/* Contact Icon Section Start */}
|
||||||
<section className="contact-us-section-3 section-padding fix">
|
<section className="contact-us-section-3 section-padding fix">
|
||||||
|
|||||||
44
app/contact/types.ts
Normal file
44
app/contact/types.ts
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
export interface ContactCard {
|
||||||
|
type: string;
|
||||||
|
title: string;
|
||||||
|
content: string[];
|
||||||
|
iconType: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ContactHero {
|
||||||
|
title: string;
|
||||||
|
backgroundImage: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ContactMap {
|
||||||
|
embedUrl: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ContactFormField {
|
||||||
|
name: string;
|
||||||
|
label: string;
|
||||||
|
type: string;
|
||||||
|
placeholder: string;
|
||||||
|
required: boolean;
|
||||||
|
colClass: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ContactSubmitButton {
|
||||||
|
text: string;
|
||||||
|
icon: string;
|
||||||
|
buttonClass: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ContactForm {
|
||||||
|
heading: string;
|
||||||
|
description: string;
|
||||||
|
fields: ContactFormField[];
|
||||||
|
submitButton: ContactSubmitButton;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ContactData {
|
||||||
|
hero: ContactHero;
|
||||||
|
contactCards: ContactCard[];
|
||||||
|
map: ContactMap;
|
||||||
|
form: ContactForm;
|
||||||
|
}
|
||||||
@@ -2,8 +2,8 @@ import type { Metadata } from "next";
|
|||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
|
||||||
|
|
||||||
import Header from "./components/Header";
|
// import Header from "./components/Header";
|
||||||
import Footer from "./components/Footer";
|
// import Footer from "./components/Footer";
|
||||||
import Loader from "./components/Loader";
|
import Loader from "./components/Loader";
|
||||||
import BackToTop from "./components/BackToTop";
|
import BackToTop from "./components/BackToTop";
|
||||||
import MouseCursor from "./components/MouseCursor";
|
import MouseCursor from "./components/MouseCursor";
|
||||||
@@ -48,11 +48,11 @@ export default function RootLayout({
|
|||||||
<Loader />
|
<Loader />
|
||||||
<BackToTop />
|
<BackToTop />
|
||||||
<MouseCursor />
|
<MouseCursor />
|
||||||
<Header />
|
{/* <Header /> */}
|
||||||
|
|
||||||
{children}
|
{children}
|
||||||
|
|
||||||
<Footer />
|
{/* <Footer /> */}
|
||||||
|
|
||||||
{/* Scripts */}
|
{/* Scripts */}
|
||||||
<Script src="/assets/js/jquery-3.7.1.min.js" strategy="beforeInteractive" />
|
<Script src="/assets/js/jquery-3.7.1.min.js" strategy="beforeInteractive" />
|
||||||
|
|||||||
@@ -1,29 +1,119 @@
|
|||||||
export default function PricingPage() {
|
import Breadcrumb from "../components/Breadcrumb";
|
||||||
|
import { PricingData, PricingAPIResponse, Plan, TestimonialItem } from "./types";
|
||||||
|
|
||||||
|
const API_URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:3001";
|
||||||
|
|
||||||
|
async function getPricingData(): Promise<PricingData | null> {
|
||||||
|
try {
|
||||||
|
const res = await fetch(`${API_URL}/api/pricing`, {
|
||||||
|
next: { revalidate: 60 }, // Revalidate every 60 seconds
|
||||||
|
});
|
||||||
|
if (!res.ok) {
|
||||||
|
throw new Error("Failed to fetch pricing data");
|
||||||
|
}
|
||||||
|
const response: PricingAPIResponse = await res.json();
|
||||||
|
return response.data;
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Error fetching pricing data:", error);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Component to render a single plan
|
||||||
|
function PlanCard({ plan, index }: { plan: Plan; index: number }) {
|
||||||
|
const styleClass = plan.style === "style-2" ? " style-2" : "";
|
||||||
|
const buttonStyleClass = plan.style === "style-2" ? " style-2" : "";
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={`pricing-box-items${styleClass}`}>
|
||||||
|
<div className="pricing-header">
|
||||||
|
<h2>
|
||||||
|
<sup>{plan.currency}</sup>
|
||||||
|
{plan.price}
|
||||||
|
<sub>/{plan.period}</sub>
|
||||||
|
</h2>
|
||||||
|
<span className="sub-texts">{plan.name}</span>
|
||||||
|
</div>
|
||||||
|
<a href={plan.buttonLink} className={`theme-btn${buttonStyleClass}`}>
|
||||||
|
{plan.buttonText}
|
||||||
|
<i className={plan.buttonIcon}></i>
|
||||||
|
</a>
|
||||||
|
<ul className="pricing-list">
|
||||||
|
{plan.features.map((feature, idx) => (
|
||||||
|
<li key={idx}>
|
||||||
|
<i className="fa-solid fa-chevrons-right"></i> {feature}
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Component to render star rating
|
||||||
|
function StarRating({ rating }: { rating: number }) {
|
||||||
|
return (
|
||||||
|
<div className="star">
|
||||||
|
{[...Array(rating)].map((_, i) => (
|
||||||
|
<i key={i} className="fa-solid fa-star"></i>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Component to render testimonial slide
|
||||||
|
function TestimonialSlide({ item }: { item: TestimonialItem }) {
|
||||||
|
return (
|
||||||
|
<div className="swiper-slide">
|
||||||
|
<div className="content">
|
||||||
|
<StarRating rating={item.rating} />
|
||||||
|
<h3>“{item.content}”</h3>
|
||||||
|
<div className="info-item">
|
||||||
|
<div className="icon">
|
||||||
|
<i className="fa-solid fa-quote-right"></i>
|
||||||
|
</div>
|
||||||
|
<div className="content">
|
||||||
|
<h5>{item.name},</h5>
|
||||||
|
<span>{item.role}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default async function PricingPage() {
|
||||||
|
const data = await getPricingData();
|
||||||
|
|
||||||
|
// Fallback values if data is not available
|
||||||
|
const pricingSection = data?.pricingSection || {
|
||||||
|
subtitle: "pricing plan",
|
||||||
|
heading: "Flexible Plans to Suit Every Traveler",
|
||||||
|
description: "Choose the plan that fits your visa needs and enjoy expert guidance every step of the way.",
|
||||||
|
};
|
||||||
|
|
||||||
|
const plans = data?.plans || {
|
||||||
|
monthly: [],
|
||||||
|
yearly: [],
|
||||||
|
};
|
||||||
|
|
||||||
|
const testimonials = data?.testimonials || {
|
||||||
|
subtitle: "What Our Clients Say",
|
||||||
|
heading: "Immigration Success Stories",
|
||||||
|
buttonText: "View All Review",
|
||||||
|
buttonLink: "/contact",
|
||||||
|
buttonIcon: "fa-solid fa-arrow-right",
|
||||||
|
image: "/assets/img/home-3/test-thumb.jpg",
|
||||||
|
items: [],
|
||||||
|
};
|
||||||
|
|
||||||
|
const hero = data?.hero || {
|
||||||
|
title: "pricing plan",
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* Breadcrumb-Wrapper Section Start */}
|
{/* Breadcrumb-Wrapper Section Start */}
|
||||||
<section
|
<Breadcrumb title={hero.title} current={hero.title} />
|
||||||
className="breadcrumb-wrapper fix bg-cover"
|
|
||||||
style={{ backgroundImage: "url(/assets/img/inner-page/breadcrumb.jpg)" }}
|
|
||||||
>
|
|
||||||
<div className="shape">
|
|
||||||
<img src="/assets/img/inner-page/shape.png" alt="img" />
|
|
||||||
</div>
|
|
||||||
<div className="container">
|
|
||||||
<div className="page-heading">
|
|
||||||
<h1 className="breadcrumb-title">pricing plan</h1>
|
|
||||||
<ul className="breadcrumb-list">
|
|
||||||
<li>
|
|
||||||
<a href="/">Home</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevron-right"></i>
|
|
||||||
</li>
|
|
||||||
<li>Pricing Plan</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
{/* Pricing Section Start */}
|
{/* Pricing Section Start */}
|
||||||
<section className="pricing-section-2 section-padding fix section-bg-1">
|
<section className="pricing-section-2 section-padding fix section-bg-1">
|
||||||
@@ -34,15 +124,14 @@ export default function PricingPage() {
|
|||||||
<div className="pricing-content">
|
<div className="pricing-content">
|
||||||
<div className="section-title mb-0">
|
<div className="section-title mb-0">
|
||||||
<span className="sub-title-2 wow fadeInUp">
|
<span className="sub-title-2 wow fadeInUp">
|
||||||
pricing plan
|
{pricingSection.subtitle}
|
||||||
</span>
|
</span>
|
||||||
<h2 className="split-text-right split-text-in-right">
|
<h2 className="split-text-right split-text-in-right">
|
||||||
Flexible Plans to Suit Every Traveler
|
{pricingSection.heading}
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<p className="pricing-text wow fadeInUp" data-wow-delay=".5s">
|
<p className="pricing-text wow fadeInUp" data-wow-delay=".5s">
|
||||||
Choose the plan that fits your visa needs and enjoy expert
|
{pricingSection.description}
|
||||||
guidance every step of the way.
|
|
||||||
</p>
|
</p>
|
||||||
<div
|
<div
|
||||||
className="d-flex mt-3 mt-md-0 wow fadeInUp"
|
className="d-flex mt-3 mt-md-0 wow fadeInUp"
|
||||||
@@ -85,6 +174,7 @@ export default function PricingPage() {
|
|||||||
<div className="col-xl-6 col-lg-7">
|
<div className="col-xl-6 col-lg-7">
|
||||||
<div className="pricing__tab-content">
|
<div className="pricing__tab-content">
|
||||||
<div className="tab-content" id="nav-tabContent">
|
<div className="tab-content" id="nav-tabContent">
|
||||||
|
{/* Monthly Plans Tab */}
|
||||||
<div
|
<div
|
||||||
className="tab-pane fade active show"
|
className="tab-pane fade active show"
|
||||||
id="pt-1"
|
id="pt-1"
|
||||||
@@ -92,80 +182,12 @@ export default function PricingPage() {
|
|||||||
aria-labelledby="pt-1-tab"
|
aria-labelledby="pt-1-tab"
|
||||||
>
|
>
|
||||||
<div className="pricing-right-items">
|
<div className="pricing-right-items">
|
||||||
<div className="pricing-box-items">
|
{plans.monthly.map((plan, index) => (
|
||||||
<div className="pricing-header">
|
<PlanCard key={index} plan={plan} index={index} />
|
||||||
<h2>
|
))}
|
||||||
<sup>$</sup>
|
|
||||||
32
|
|
||||||
<sub>/mo</sub>
|
|
||||||
</h2>
|
|
||||||
<span className="sub-texts">Basic Plan</span>
|
|
||||||
</div>
|
|
||||||
<a href="/pricing" className="theme-btn">
|
|
||||||
Get Started Today
|
|
||||||
<i className="fa-solid fa-arrow-right"></i>
|
|
||||||
</a>
|
|
||||||
<ul className="pricing-list">
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Everything in Basic Plan
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Visa Interview Preparation
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Priority Processing Support
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Phone & Email Assistance
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Step-by-Step Application Support
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div className="pricing-box-items style-2">
|
|
||||||
<div className="pricing-header">
|
|
||||||
<h2>
|
|
||||||
<sup>$</sup>
|
|
||||||
32
|
|
||||||
<sub>/mo</sub>
|
|
||||||
</h2>
|
|
||||||
<span className="sub-texts">Premium Plan</span>
|
|
||||||
</div>
|
|
||||||
<a href="/pricing" className="theme-btn style-2">
|
|
||||||
Get Started Today
|
|
||||||
<i className="fa-solid fa-arrow-right"></i>
|
|
||||||
</a>
|
|
||||||
<ul className="pricing-list">
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Everything in Basic Plan
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Visa Interview Preparation
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Priority Processing Support
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Phone & Email Assistance
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Step-by-Step Application Support
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{/* Yearly Plans Tab */}
|
||||||
<div
|
<div
|
||||||
className="tab-pane fade"
|
className="tab-pane fade"
|
||||||
id="pt-2"
|
id="pt-2"
|
||||||
@@ -173,78 +195,9 @@ export default function PricingPage() {
|
|||||||
aria-labelledby="pt-2-tab"
|
aria-labelledby="pt-2-tab"
|
||||||
>
|
>
|
||||||
<div className="pricing-right-items">
|
<div className="pricing-right-items">
|
||||||
<div className="pricing-box-items">
|
{plans.yearly.map((plan, index) => (
|
||||||
<div className="pricing-header">
|
<PlanCard key={index} plan={plan} index={index} />
|
||||||
<h2>
|
))}
|
||||||
<sup>$</sup>
|
|
||||||
32
|
|
||||||
<sub>/mo</sub>
|
|
||||||
</h2>
|
|
||||||
<span className="sub-texts">Basic Plan</span>
|
|
||||||
</div>
|
|
||||||
<a href="/pricing" className="theme-btn">
|
|
||||||
Get Started Today
|
|
||||||
<i className="fa-solid fa-arrow-right"></i>
|
|
||||||
</a>
|
|
||||||
<ul className="pricing-list">
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Everything in Basic Plan
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Visa Interview Preparation
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Priority Processing Support
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Phone & Email Assistance
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Step-by-Step Application Support
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div className="pricing-box-items style-2">
|
|
||||||
<div className="pricing-header">
|
|
||||||
<h2>
|
|
||||||
<sup>$</sup>
|
|
||||||
32
|
|
||||||
<sub>/mo</sub>
|
|
||||||
</h2>
|
|
||||||
<span className="sub-texts">Premium Plan</span>
|
|
||||||
</div>
|
|
||||||
<a href="/pricing" className="theme-btn style-2">
|
|
||||||
Get Started Today
|
|
||||||
<i className="fa-solid fa-arrow-right"></i>
|
|
||||||
</a>
|
|
||||||
<ul className="pricing-list">
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Everything in Basic Plan
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Visa Interview Preparation
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Priority Processing Support
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Phone & Email Assistance
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i className="fa-solid fa-chevrons-right"></i>{" "}
|
|
||||||
Step-by-Step Application Support
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -261,82 +214,31 @@ export default function PricingPage() {
|
|||||||
<div className="section-title-area">
|
<div className="section-title-area">
|
||||||
<div className="section-title mb-0">
|
<div className="section-title mb-0">
|
||||||
<span className="sub-title-2 wow fadeInUp">
|
<span className="sub-title-2 wow fadeInUp">
|
||||||
What Our Clients Say
|
{testimonials.subtitle}
|
||||||
</span>
|
</span>
|
||||||
<h2 className="split-text-right split-text-in-right">
|
<h2 className="split-text-right split-text-in-right">
|
||||||
Immigration Success Stories
|
{testimonials.heading}
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<a href="/contact" className="theme-btn">
|
<a href={testimonials.buttonLink} className="theme-btn">
|
||||||
View All Review
|
{testimonials.buttonText}
|
||||||
<i className="fa-solid fa-arrow-right"></i>
|
<i className={testimonials.buttonIcon}></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="testimonial-wrapper-3">
|
<div className="testimonial-wrapper-3">
|
||||||
<div className="row g-4 align-items-center">
|
<div className="row g-4 align-items-center">
|
||||||
<div className="col-lg-4">
|
<div className="col-lg-4">
|
||||||
<div className="testimonial-thumb">
|
<div className="testimonial-thumb">
|
||||||
<img src="/assets/img/home-3/test-thumb.jpg" alt="img" />
|
<img src={testimonials.image} alt="testimonial" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-lg-8">
|
<div className="col-lg-8">
|
||||||
<div className="testimonial-content">
|
<div className="testimonial-content">
|
||||||
<div className="swiper testimonial-slider-3">
|
<div className="swiper testimonial-slider-3">
|
||||||
<div className="swiper-wrapper">
|
<div className="swiper-wrapper">
|
||||||
<div className="swiper-slide">
|
{testimonials.items.map((item, index) => (
|
||||||
<div className="content">
|
<TestimonialSlide key={index} item={item} />
|
||||||
<div className="star">
|
))}
|
||||||
<i className="fa-solid fa-star"></i>
|
|
||||||
<i className="fa-solid fa-star"></i>
|
|
||||||
<i className="fa-solid fa-star"></i>
|
|
||||||
<i className="fa-solid fa-star"></i>
|
|
||||||
<i className="fa-solid fa-star"></i>
|
|
||||||
</div>
|
|
||||||
<h3>
|
|
||||||
“The team provided exceptional guidance
|
|
||||||
throughout my immigration process. Their expertise,
|
|
||||||
personalized support, and attention to detail
|
|
||||||
ensured a smooth, stress-free experience and
|
|
||||||
successful visa approval.”
|
|
||||||
</h3>
|
|
||||||
<div className="info-item">
|
|
||||||
<div className="icon">
|
|
||||||
<i className="fa-solid fa-quote-right"></i>
|
|
||||||
</div>
|
|
||||||
<div className="content">
|
|
||||||
<h5>Mohammed Ali,</h5>
|
|
||||||
<span>Family Visa</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="swiper-slide">
|
|
||||||
<div className="content">
|
|
||||||
<div className="star">
|
|
||||||
<i className="fa-solid fa-star"></i>
|
|
||||||
<i className="fa-solid fa-star"></i>
|
|
||||||
<i className="fa-solid fa-star"></i>
|
|
||||||
<i className="fa-solid fa-star"></i>
|
|
||||||
<i className="fa-solid fa-star"></i>
|
|
||||||
</div>
|
|
||||||
<h3>
|
|
||||||
“The team provided exceptional guidance
|
|
||||||
throughout my immigration process. Their expertise,
|
|
||||||
personalized support, and attention to detail
|
|
||||||
ensured a smooth, stress-free experience and
|
|
||||||
successful visa approval.”
|
|
||||||
</h3>
|
|
||||||
<div className="info-item">
|
|
||||||
<div className="icon">
|
|
||||||
<i className="fa-solid fa-quote-right"></i>
|
|
||||||
</div>
|
|
||||||
<div className="content">
|
|
||||||
<h5>Mohammed Ali,</h5>
|
|
||||||
<span>Family Visa</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="array-buttons-3">
|
<div className="array-buttons-3">
|
||||||
|
|||||||
65
app/pricing/types.ts
Normal file
65
app/pricing/types.ts
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
// Type definitions for Pricing page
|
||||||
|
|
||||||
|
export interface BreadcrumbItem {
|
||||||
|
text: string;
|
||||||
|
link: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Hero {
|
||||||
|
title: string;
|
||||||
|
backgroundImage: string;
|
||||||
|
shapeImage: string;
|
||||||
|
breadcrumb: BreadcrumbItem[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PricingSection {
|
||||||
|
subtitle: string;
|
||||||
|
heading: string;
|
||||||
|
description: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Plan {
|
||||||
|
name: string;
|
||||||
|
price: string;
|
||||||
|
period: string;
|
||||||
|
currency: string;
|
||||||
|
buttonText: string;
|
||||||
|
buttonLink: string;
|
||||||
|
buttonIcon: string;
|
||||||
|
style: "default" | "style-2";
|
||||||
|
features: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Plans {
|
||||||
|
monthly: Plan[];
|
||||||
|
yearly: Plan[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface TestimonialItem {
|
||||||
|
name: string;
|
||||||
|
role: string;
|
||||||
|
rating: number;
|
||||||
|
content: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Testimonials {
|
||||||
|
subtitle: string;
|
||||||
|
heading: string;
|
||||||
|
buttonText: string;
|
||||||
|
buttonLink: string;
|
||||||
|
buttonIcon: string;
|
||||||
|
image: string;
|
||||||
|
items: TestimonialItem[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PricingData {
|
||||||
|
hero: Hero;
|
||||||
|
pricingSection: PricingSection;
|
||||||
|
plans: Plans;
|
||||||
|
testimonials: Testimonials;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PricingAPIResponse {
|
||||||
|
success: boolean;
|
||||||
|
data: PricingData;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user