Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b7f12a2c31 | |||
| ce2f011ef0 | |||
| a9e652038f | |||
| f965684397 | |||
| 0949234b4e | |||
| b8f96e5f23 |
331
src/app/checkout/page.tsx
Normal file
331
src/app/checkout/page.tsx
Normal file
@@ -0,0 +1,331 @@
|
||||
"use client";
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
|
||||
import ContactCTA from "@/components/sections/contact/ContactCTA";
|
||||
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
|
||||
import { MessageSquare } from "lucide-react";
|
||||
import { useState } from "react";
|
||||
|
||||
export default function CheckoutPage() {
|
||||
const [formData, setFormData] = useState({
|
||||
firstName: "", lastName: "", email: "", phone: "", address: "", city: "", state: "", zipCode: "", cardNumber: "", expiryDate: "", cvv: ""});
|
||||
|
||||
const [orderPlaced, setOrderPlaced] = useState(false);
|
||||
|
||||
const navItems = [
|
||||
{ name: "Home", id: "/" },
|
||||
{ name: "Menu", id: "/menu" },
|
||||
{ name: "Order", id: "/order" },
|
||||
{ name: "Locations", id: "/locations" },
|
||||
{ name: "Promotions", id: "/promotions" },
|
||||
];
|
||||
|
||||
const footerColumns = [
|
||||
{
|
||||
title: "Quick Links", items: [
|
||||
{ label: "Home", href: "/" },
|
||||
{ label: "Menu", href: "/menu" },
|
||||
{ label: "Order Online", href: "/order" },
|
||||
{ label: "Locations", href: "/locations" },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Company", items: [
|
||||
{ label: "About Us", href: "/about" },
|
||||
{ label: "Careers", href: "/careers" },
|
||||
{ label: "Blog", href: "/blog" },
|
||||
{ label: "Press", href: "/press" },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Support", items: [
|
||||
{ label: "Contact", href: "/contact" },
|
||||
{ label: "FAQ", href: "#faq" },
|
||||
{ label: "Track Order", href: "/track" },
|
||||
{ label: "Returns", href: "/returns" },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Social", items: [
|
||||
{ label: "Facebook", href: "https://facebook.com/mcdonalds" },
|
||||
{ label: "Instagram", href: "https://instagram.com/mcdonalds" },
|
||||
{ label: "Twitter", href: "https://twitter.com/mcdonalds" },
|
||||
{ label: "YouTube", href: "https://youtube.com/mcdonalds" },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const handleChange = (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>) => {
|
||||
const { name, value } = e.target;
|
||||
setFormData(prev => ({
|
||||
...prev,
|
||||
[name]: value
|
||||
}));
|
||||
};
|
||||
|
||||
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
setOrderPlaced(true);
|
||||
setTimeout(() => {
|
||||
window.location.href = "/";
|
||||
}, 3000);
|
||||
};
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="hover-bubble"
|
||||
defaultTextAnimation="background-highlight"
|
||||
borderRadius="pill"
|
||||
contentWidth="smallMedium"
|
||||
sizing="large"
|
||||
background="blurBottom"
|
||||
cardStyle="gradient-bordered"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="glass"
|
||||
headingFontWeight="light"
|
||||
>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarStyleApple brandName="McDonald's" navItems={navItems} />
|
||||
</div>
|
||||
|
||||
<div className="min-h-screen py-16">
|
||||
<div className="max-w-2xl mx-auto px-4">
|
||||
{orderPlaced ? (
|
||||
<div className="text-center py-20">
|
||||
<div className="mb-6">
|
||||
<div className="w-16 h-16 bg-green-500 rounded-full flex items-center justify-center mx-auto mb-4">
|
||||
<svg className="w-8 h-8 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 13l4 4L19 7" />
|
||||
</svg>
|
||||
</div>
|
||||
<h2 className="text-3xl font-bold text-green-600 mb-2">Order Placed Successfully!</h2>
|
||||
<p className="text-gray-600 mb-2">Thank you for your order.</p>
|
||||
<p className="text-gray-500 text-sm">Redirecting to home page...</p>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div>
|
||||
<h1 className="text-4xl font-bold mb-2">Checkout</h1>
|
||||
<p className="text-gray-600 mb-8">Complete your order by providing your details and payment information.</p>
|
||||
|
||||
<form onSubmit={handleSubmit} className="space-y-8">
|
||||
{/* Personal Information */}
|
||||
<div className="bg-white rounded-lg p-6 shadow-md">
|
||||
<h2 className="text-2xl font-semibold mb-6">Personal Information</h2>
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label className="block text-sm font-medium mb-2">First Name *</label>
|
||||
<input
|
||||
type="text"
|
||||
name="firstName"
|
||||
value={formData.firstName}
|
||||
onChange={handleChange}
|
||||
required
|
||||
className="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="John"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-sm font-medium mb-2">Last Name *</label>
|
||||
<input
|
||||
type="text"
|
||||
name="lastName"
|
||||
value={formData.lastName}
|
||||
onChange={handleChange}
|
||||
required
|
||||
className="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="Doe"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 gap-4 mt-4">
|
||||
<div>
|
||||
<label className="block text-sm font-medium mb-2">Email *</label>
|
||||
<input
|
||||
type="email"
|
||||
name="email"
|
||||
value={formData.email}
|
||||
onChange={handleChange}
|
||||
required
|
||||
className="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="john@example.com"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-sm font-medium mb-2">Phone *</label>
|
||||
<input
|
||||
type="tel"
|
||||
name="phone"
|
||||
value={formData.phone}
|
||||
onChange={handleChange}
|
||||
required
|
||||
className="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="(555) 123-4567"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Delivery Address */}
|
||||
<div className="bg-white rounded-lg p-6 shadow-md">
|
||||
<h2 className="text-2xl font-semibold mb-6">Delivery Address</h2>
|
||||
<div className="mb-4">
|
||||
<label className="block text-sm font-medium mb-2">Street Address *</label>
|
||||
<input
|
||||
type="text"
|
||||
name="address"
|
||||
value={formData.address}
|
||||
onChange={handleChange}
|
||||
required
|
||||
className="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="123 Main Street"
|
||||
/>
|
||||
</div>
|
||||
<div className="grid grid-cols-3 gap-4">
|
||||
<div>
|
||||
<label className="block text-sm font-medium mb-2">City *</label>
|
||||
<input
|
||||
type="text"
|
||||
name="city"
|
||||
value={formData.city}
|
||||
onChange={handleChange}
|
||||
required
|
||||
className="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="New York"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-sm font-medium mb-2">State *</label>
|
||||
<input
|
||||
type="text"
|
||||
name="state"
|
||||
value={formData.state}
|
||||
onChange={handleChange}
|
||||
required
|
||||
className="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="NY"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-sm font-medium mb-2">ZIP Code *</label>
|
||||
<input
|
||||
type="text"
|
||||
name="zipCode"
|
||||
value={formData.zipCode}
|
||||
onChange={handleChange}
|
||||
required
|
||||
className="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="10001"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Payment Information */}
|
||||
<div className="bg-white rounded-lg p-6 shadow-md">
|
||||
<h2 className="text-2xl font-semibold mb-6">Payment Information</h2>
|
||||
<div className="mb-4">
|
||||
<label className="block text-sm font-medium mb-2">Card Number *</label>
|
||||
<input
|
||||
type="text"
|
||||
name="cardNumber"
|
||||
value={formData.cardNumber}
|
||||
onChange={handleChange}
|
||||
required
|
||||
className="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="1234 5678 9012 3456"
|
||||
maxLength={19}
|
||||
/>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label className="block text-sm font-medium mb-2">Expiry Date *</label>
|
||||
<input
|
||||
type="text"
|
||||
name="expiryDate"
|
||||
value={formData.expiryDate}
|
||||
onChange={handleChange}
|
||||
required
|
||||
className="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="MM/YY"
|
||||
maxLength={5}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-sm font-medium mb-2">CVV *</label>
|
||||
<input
|
||||
type="text"
|
||||
name="cvv"
|
||||
value={formData.cvv}
|
||||
onChange={handleChange}
|
||||
required
|
||||
className="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
placeholder="123"
|
||||
maxLength={3}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Order Summary */}
|
||||
<div className="bg-blue-50 rounded-lg p-6 border border-blue-200">
|
||||
<h2 className="text-2xl font-semibold mb-4">Order Summary</h2>
|
||||
<div className="space-y-2 mb-4">
|
||||
<div className="flex justify-between">
|
||||
<span>Subtotal:</span>
|
||||
<span>$24.97</span>
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
<span>Delivery Fee:</span>
|
||||
<span>$3.99</span>
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
<span>Tax:</span>
|
||||
<span>$2.23</span>
|
||||
</div>
|
||||
<div className="border-t pt-2 flex justify-between font-bold text-lg">
|
||||
<span>Total:</span>
|
||||
<span>$31.19</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Submit Button */}
|
||||
<button
|
||||
type="submit"
|
||||
className="w-full bg-blue-600 text-white font-bold py-3 px-6 rounded-lg hover:bg-blue-700 transition"
|
||||
>
|
||||
Complete Order
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="contact" data-section="contact">
|
||||
<ContactCTA
|
||||
tag="Need Help?"
|
||||
tagIcon={MessageSquare}
|
||||
title="Questions About Your Order?"
|
||||
description="Our customer support team is here to help. Contact us anytime for assistance."
|
||||
background={{ variant: "animated-grid" }}
|
||||
useInvertedBackground={false}
|
||||
buttons={[
|
||||
{ text: "Contact Support", href: "/contact" },
|
||||
{ text: "Track Order", href: "/track" },
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterBaseCard
|
||||
logoText="McDonald's"
|
||||
columns={footerColumns}
|
||||
copyrightText="© 2025 McDonald's Corporation. All rights reserved."
|
||||
/>
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
275
src/app/page.tsx
275
src/app/page.tsx
@@ -2,6 +2,7 @@
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import Link from "next/link";
|
||||
import { useState } from "react";
|
||||
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
|
||||
import HeroCentered from "@/components/sections/hero/HeroCentered";
|
||||
import ProductCardTwo from "@/components/sections/product/ProductCardTwo";
|
||||
@@ -14,6 +15,9 @@ import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
|
||||
import { Sparkles, Star, Heart, MapPin, Globe, Users, Zap, MessageSquare } from "lucide-react";
|
||||
|
||||
export default function HomePage() {
|
||||
const [selectedProduct, setSelectedProduct] = useState<string | null>(null);
|
||||
const [isModalOpen, setIsModalOpen] = useState(false);
|
||||
|
||||
const navItems = [
|
||||
{ name: "Home", id: "/" },
|
||||
{ name: "Menu", id: "/menu" },
|
||||
@@ -24,8 +28,7 @@ export default function HomePage() {
|
||||
|
||||
const footerColumns = [
|
||||
{
|
||||
title: "Quick Links",
|
||||
items: [
|
||||
title: "Quick Links", items: [
|
||||
{ label: "Home", href: "/" },
|
||||
{ label: "Menu", href: "/menu" },
|
||||
{ label: "Order Online", href: "/order" },
|
||||
@@ -33,8 +36,7 @@ export default function HomePage() {
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Company",
|
||||
items: [
|
||||
title: "Company", items: [
|
||||
{ label: "About Us", href: "/about" },
|
||||
{ label: "Careers", href: "/careers" },
|
||||
{ label: "Blog", href: "/blog" },
|
||||
@@ -42,8 +44,7 @@ export default function HomePage() {
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Support",
|
||||
items: [
|
||||
title: "Support", items: [
|
||||
{ label: "Contact", href: "/contact" },
|
||||
{ label: "FAQ", href: "#faq" },
|
||||
{ label: "Track Order", href: "/track" },
|
||||
@@ -51,8 +52,7 @@ export default function HomePage() {
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Social",
|
||||
items: [
|
||||
title: "Social", items: [
|
||||
{ label: "Facebook", href: "https://facebook.com/mcdonalds" },
|
||||
{ label: "Instagram", href: "https://instagram.com/mcdonalds" },
|
||||
{ label: "Twitter", href: "https://twitter.com/mcdonalds" },
|
||||
@@ -61,6 +61,60 @@ export default function HomePage() {
|
||||
},
|
||||
];
|
||||
|
||||
const products = [
|
||||
{
|
||||
id: "1", brand: "McDonald's Classic", name: "Big Mac", price: "$5.49", rating: 5,
|
||||
reviewCount: "12.5k", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-hamburgers-arrangement_23-2148614059.jpg?_wi=1", imageAlt: "Big Mac hamburger"},
|
||||
{
|
||||
id: "2", brand: "McDonald's Premium", name: "Double Quarter Pounder", price: "$7.99", rating: 5,
|
||||
reviewCount: "8.3k", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-tasty-smash-burgers-french-fries-red-spicy-pepper-white-background_181624-50909.jpg?_wi=1", imageAlt: "Double Quarter Pounder"},
|
||||
{
|
||||
id: "3", brand: "McDonald's Combo", name: "Meal Bundle", price: "$9.99", rating: 5,
|
||||
reviewCount: "15.2k", imageSrc: "http://img.b2bpic.net/free-photo/classic-cheeseburger-with-fries-beer_140725-935.jpg?_wi=1", imageAlt: "McDonald's meal combo"},
|
||||
];
|
||||
|
||||
const features = [
|
||||
{
|
||||
id: 1,
|
||||
title: "Browse Our Menu", description:
|
||||
"Explore our complete selection of burgers, fries, sides, drinks, and desserts. Filter by category or search for your favorite items.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-woman-ordering-takeaway-food-smartphone_23-2149025816.jpg?_wi=1", onProductClick: () => {
|
||||
setSelectedProduct("Browse Menu");
|
||||
setIsModalOpen(true);
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Add to Cart", description:
|
||||
"Select your items, customize them to your liking, and add them to your cart. Review your order and adjust quantities as needed.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-woman-ordering-takeaway-food-smartphone_23-2149025816.jpg?_wi=2", onProductClick: () => {
|
||||
setSelectedProduct("Add to Cart");
|
||||
setIsModalOpen(true);
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Checkout", description:
|
||||
"Choose your delivery or pickup option, enter your address or preferred location, and proceed to secure payment.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-afraid-courier-girl-wearing-medical-mask-gloves-standing-motorcycle-holding-coffee-small-cakes-pastel-peach-color-background_179666-41139.jpg?_wi=1", onProductClick: () => {
|
||||
setSelectedProduct("Checkout");
|
||||
setIsModalOpen(true);
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Enjoy Your Meal", description:
|
||||
"Sit back and relax while we prepare your food fresh. Track your order in real-time and receive it hot and ready.", imageSrc: "http://img.b2bpic.net/free-photo/classic-cheeseburger-with-fries-beer_140725-935.jpg?_wi=2", onProductClick: () => {
|
||||
setSelectedProduct("Enjoy Meal");
|
||||
setIsModalOpen(true);
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
const productsWithHandlers = products.map((product) => ({
|
||||
...product,
|
||||
onProductClick: () => {
|
||||
window.location.href = "/checkout";
|
||||
},
|
||||
}));
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="hover-bubble"
|
||||
@@ -87,17 +141,11 @@ export default function HomePage() {
|
||||
background={{ variant: "downward-rays-static" }}
|
||||
avatars={[
|
||||
{
|
||||
src: "http://img.b2bpic.net/free-photo/medium-shot-friends-eating-pizza_23-2149872404.jpg",
|
||||
alt: "Happy customer",
|
||||
},
|
||||
src: "http://img.b2bpic.net/free-photo/medium-shot-friends-eating-pizza_23-2149872404.jpg", alt: "Happy customer"},
|
||||
{
|
||||
src: "http://img.b2bpic.net/free-photo/happy-man-feeding-his-girlfriend-while-having-lunch-with-friends-home_637285-3195.jpg",
|
||||
alt: "Family enjoying meal",
|
||||
},
|
||||
src: "http://img.b2bpic.net/free-photo/happy-man-feeding-his-girlfriend-while-having-lunch-with-friends-home_637285-3195.jpg", alt: "Family enjoying meal"},
|
||||
{
|
||||
src: "http://img.b2bpic.net/free-photo/smiling-woman-clicking-photo-burger-from-mobile-phone_1170-742.jpg",
|
||||
alt: "Satisfied customer",
|
||||
},
|
||||
src: "http://img.b2bpic.net/free-photo/smiling-woman-clicking-photo-burger-from-mobile-phone_1170-742.jpg", alt: "Satisfied customer"},
|
||||
]}
|
||||
avatarText="Join millions of happy customers"
|
||||
buttons={[
|
||||
@@ -117,38 +165,7 @@ export default function HomePage() {
|
||||
useInvertedBackground={false}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
animationType="slide-up"
|
||||
products={[
|
||||
{
|
||||
id: "1",
|
||||
brand: "McDonald's Classic",
|
||||
name: "Big Mac",
|
||||
price: "$5.49",
|
||||
rating: 5,
|
||||
reviewCount: "12.5k",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/high-angle-hamburgers-arrangement_23-2148614059.jpg?_wi=1",
|
||||
imageAlt: "Big Mac hamburger",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
brand: "McDonald's Premium",
|
||||
name: "Double Quarter Pounder",
|
||||
price: "$7.99",
|
||||
rating: 5,
|
||||
reviewCount: "8.3k",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-tasty-smash-burgers-french-fries-red-spicy-pepper-white-background_181624-50909.jpg?_wi=1",
|
||||
imageAlt: "Double Quarter Pounder",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
brand: "McDonald's Combo",
|
||||
name: "Meal Bundle",
|
||||
price: "$9.99",
|
||||
rating: 5,
|
||||
reviewCount: "15.2k",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/classic-cheeseburger-with-fries-beer_140725-935.jpg?_wi=1",
|
||||
imageAlt: "McDonald's meal combo",
|
||||
},
|
||||
]}
|
||||
products={productsWithHandlers}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -160,36 +177,7 @@ export default function HomePage() {
|
||||
tag="Quick Process"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={true}
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
title: "Browse Our Menu",
|
||||
description:
|
||||
"Explore our complete selection of burgers, fries, sides, drinks, and desserts. Filter by category or search for your favorite items.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/high-angle-woman-ordering-takeaway-food-smartphone_23-2149025816.jpg?_wi=1",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Add to Cart",
|
||||
description:
|
||||
"Select your items, customize them to your liking, and add them to your cart. Review your order and adjust quantities as needed.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/high-angle-woman-ordering-takeaway-food-smartphone_23-2149025816.jpg?_wi=2",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Checkout",
|
||||
description:
|
||||
"Choose your delivery or pickup option, enter your address or preferred location, and proceed to secure payment.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/top-view-afraid-courier-girl-wearing-medical-mask-gloves-standing-motorcycle-holding-coffee-small-cakes-pastel-peach-color-background_179666-41139.jpg?_wi=1",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Enjoy Your Meal",
|
||||
description:
|
||||
"Sit back and relax while we prepare your food fresh. Track your order in real-time and receive it hot and ready.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/classic-cheeseburger-with-fries-beer_140725-935.jpg?_wi=2",
|
||||
},
|
||||
]}
|
||||
features={features}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -204,42 +192,19 @@ export default function HomePage() {
|
||||
animationType="slide-up"
|
||||
plans={[
|
||||
{
|
||||
id: "1",
|
||||
badge: "Best Value",
|
||||
badgeIcon: Sparkles,
|
||||
price: "$2.99",
|
||||
subtitle: "Big Mac",
|
||||
features: [
|
||||
"Fresh beef patties",
|
||||
"Special sauce",
|
||||
"Lettuce, cheese, pickles, onions",
|
||||
],
|
||||
id: "1", badge: "Best Value", badgeIcon: Sparkles,
|
||||
price: "$2.99", subtitle: "Big Mac", features: [
|
||||
"Fresh beef patties", "Special sauce", "Lettuce, cheese, pickles, onions"],
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
badge: "Most Popular",
|
||||
badgeIcon: Star,
|
||||
price: "$4.49",
|
||||
subtitle: "Big Mac Meal",
|
||||
features: [
|
||||
"Big Mac sandwich",
|
||||
"Medium fries",
|
||||
"Medium drink",
|
||||
"Free cookie",
|
||||
],
|
||||
id: "2", badge: "Most Popular", badgeIcon: Star,
|
||||
price: "$4.49", subtitle: "Big Mac Meal", features: [
|
||||
"Big Mac sandwich", "Medium fries", "Medium drink", "Free cookie"],
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
badge: "Family Special",
|
||||
badgeIcon: Heart,
|
||||
price: "$19.99",
|
||||
subtitle: "Family Bundle",
|
||||
features: [
|
||||
"4 burgers",
|
||||
"Large fries",
|
||||
"4 drinks",
|
||||
"Desserts for all",
|
||||
],
|
||||
id: "3", badge: "Family Special", badgeIcon: Heart,
|
||||
price: "$19.99", subtitle: "Family Bundle", features: [
|
||||
"4 burgers", "Large fries", "4 drinks", "Desserts for all"],
|
||||
},
|
||||
]}
|
||||
/>
|
||||
@@ -256,59 +221,23 @@ export default function HomePage() {
|
||||
animationType="slide-up"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1",
|
||||
name: "Sarah Johnson",
|
||||
handle: "@sarahj_foodlover",
|
||||
testimonial:
|
||||
"Fastest delivery ever! My burger arrived hot and fresh. Highly recommend the online ordering system!",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-friends-eating-pizza_23-2149872404.jpg?_wi=1",
|
||||
imageAlt: "Sarah Johnson",
|
||||
},
|
||||
id: "1", name: "Sarah Johnson", handle: "@sarahj_foodlover", testimonial:
|
||||
"Fastest delivery ever! My burger arrived hot and fresh. Highly recommend the online ordering system!", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-friends-eating-pizza_23-2149872404.jpg?_wi=1", imageAlt: "Sarah Johnson"},
|
||||
{
|
||||
id: "2",
|
||||
name: "Michael Chen",
|
||||
handle: "@mchen_foodie",
|
||||
testimonial:
|
||||
"McDonald's online ordering has saved me so much time. The app is super easy to use and the deals are amazing!",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-man-feeding-his-girlfriend-while-having-lunch-with-friends-home_637285-3195.jpg?_wi=1",
|
||||
imageAlt: "Michael Chen",
|
||||
},
|
||||
id: "2", name: "Michael Chen", handle: "@mchen_foodie", testimonial:
|
||||
"McDonald's online ordering has saved me so much time. The app is super easy to use and the deals are amazing!", imageSrc: "http://img.b2bpic.net/free-photo/happy-man-feeding-his-girlfriend-while-having-lunch-with-friends-home_637285-3195.jpg?_wi=1", imageAlt: "Michael Chen"},
|
||||
{
|
||||
id: "3",
|
||||
name: "Emily Rodriguez",
|
||||
handle: "@emily_eats",
|
||||
testimonial:
|
||||
"Love the customization options. I can make my burger exactly how I want it. Perfect for my family's quick dinners!",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-woman-clicking-photo-burger-from-mobile-phone_1170-742.jpg?_wi=1",
|
||||
imageAlt: "Emily Rodriguez",
|
||||
},
|
||||
id: "3", name: "Emily Rodriguez", handle: "@emily_eats", testimonial:
|
||||
"Love the customization options. I can make my burger exactly how I want it. Perfect for my family's quick dinners!", imageSrc: "http://img.b2bpic.net/free-photo/smiling-woman-clicking-photo-burger-from-mobile-phone_1170-742.jpg?_wi=1", imageAlt: "Emily Rodriguez"},
|
||||
{
|
||||
id: "4",
|
||||
name: "David Kim",
|
||||
handle: "@davidk_lunches",
|
||||
testimonial:
|
||||
"Consistently delicious, consistently fast. McDonald's online ordering is my go-to for lunch breaks at work.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-eating-delicious-street-food-outdoors_23-2148952920.jpg?_wi=1",
|
||||
imageAlt: "David Kim",
|
||||
},
|
||||
id: "4", name: "David Kim", handle: "@davidk_lunches", testimonial:
|
||||
"Consistently delicious, consistently fast. McDonald's online ordering is my go-to for lunch breaks at work.", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-eating-delicious-street-food-outdoors_23-2148952920.jpg?_wi=1", imageAlt: "David Kim"},
|
||||
{
|
||||
id: "5",
|
||||
name: "Jessica Martinez",
|
||||
handle: "@jess_loves_burgers",
|
||||
testimonial:
|
||||
"The loyalty program rewards are incredible. I save money every time I order. Worth every click!",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-friends-eating-pizza_23-2149872404.jpg?_wi=2",
|
||||
imageAlt: "Jessica Martinez",
|
||||
},
|
||||
id: "5", name: "Jessica Martinez", handle: "@jess_loves_burgers", testimonial:
|
||||
"The loyalty program rewards are incredible. I save money every time I order. Worth every click!", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-friends-eating-pizza_23-2149872404.jpg?_wi=2", imageAlt: "Jessica Martinez"},
|
||||
{
|
||||
id: "6",
|
||||
name: "Robert Wilson",
|
||||
handle: "@rob_food_critic",
|
||||
testimonial:
|
||||
"Great quality, great value, great service. McDonald's online platform sets the standard for fast food delivery.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-man-feeding-his-girlfriend-while-having-lunch-with-friends-home_637285-3195.jpg?_wi=2",
|
||||
imageAlt: "Robert Wilson",
|
||||
},
|
||||
id: "6", name: "Robert Wilson", handle: "@rob_food_critic", testimonial:
|
||||
"Great quality, great value, great service. McDonald's online platform sets the standard for fast food delivery.", imageSrc: "http://img.b2bpic.net/free-photo/happy-man-feeding-his-girlfriend-while-having-lunch-with-friends-home_637285-3195.jpg?_wi=2", imageAlt: "Robert Wilson"},
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
@@ -324,29 +253,17 @@ export default function HomePage() {
|
||||
animationType="slide-up"
|
||||
metrics={[
|
||||
{
|
||||
id: "1",
|
||||
icon: MapPin,
|
||||
title: "Restaurants",
|
||||
value: "40,000+",
|
||||
},
|
||||
id: "1", icon: MapPin,
|
||||
title: "Restaurants", value: "40,000+"},
|
||||
{
|
||||
id: "2",
|
||||
icon: Globe,
|
||||
title: "Countries",
|
||||
value: "100+",
|
||||
},
|
||||
id: "2", icon: Globe,
|
||||
title: "Countries", value: "100+"},
|
||||
{
|
||||
id: "3",
|
||||
icon: Users,
|
||||
title: "Customers Daily",
|
||||
value: "69M+",
|
||||
},
|
||||
id: "3", icon: Users,
|
||||
title: "Customers Daily", value: "69M+"},
|
||||
{
|
||||
id: "4",
|
||||
icon: Zap,
|
||||
title: "Quick Service",
|
||||
value: "5 min avg",
|
||||
},
|
||||
id: "4", icon: Zap,
|
||||
title: "Quick Service", value: "5 min avg"},
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user