Files
Wdipl-react/components/GlobalOffices.tsx

99 lines
3.6 KiB
TypeScript
Raw Permalink Normal View History

2025-07-28 19:57:37 +05:30
import React from "react";
import { Phone, Mail } from "lucide-react";
import { motion } from "framer-motion";
import { number } from "yup";
2025-07-28 19:57:37 +05:30
const offices = [
{
2025-09-19 18:43:00 +05:30
region: "India",
2025-07-28 19:57:37 +05:30
address: `614, 6th Floor, Palms Spring center,\nLink Road, Malad (West), Mumbai - 400064, India`,
image: "https://wordpress.betadelivery.com/headerr/assets/images/new-img/mapone.webp",
number: "+91 7700900039",
email: "ideas@wdipl.com",
2025-07-28 19:57:37 +05:30
},
{
2025-09-19 18:43:00 +05:30
region: "USA",
2025-07-28 19:57:37 +05:30
address: `215 Jefferson Street, Fort Collins,\nCO 80524, USA`,
image: "https://wordpress.betadelivery.com/headerr/assets/images/new-img/maptwo.webp",
2025-09-19 18:43:00 +05:30
number: "+1 970 292 6650",
email: "ideas@wdipl.com",
2025-07-28 19:57:37 +05:30
},
{
2025-09-19 18:43:00 +05:30
region: "UK",
address: `2, Frederick Street, Kings Cross, London, WC1X 0ND, England, UK. CRN-14194669, UK`,
2025-07-28 19:57:37 +05:30
image: "https://wordpress.betadelivery.com/headerr/assets/images/new-img/mapthree.webp",
number: "+44 7464741335",
email: "ideas@wdipl.com",
2025-07-28 19:57:37 +05:30
},
2025-09-19 18:43:00 +05:30
// {
// region: "Middle East",
// address: `Perth, WA 6000`,
// image: "https://wordpress.betadelivery.com/headerr/assets/images/new-img/mapfour.webp",
// number: "+44 7464741335",
// email: "ideas@wdipl.com",
// },
2025-07-28 19:57:37 +05:30
];
export default function GlobalOffices() {
return (
<section className="text-white py-20 lg:px-8 container mx-auto">
2025-07-28 19:57:37 +05:30
{/* Section Heading */}
<motion.h2
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8 }}
viewport={{ once: true }}
className="text-3xl lg:text-4xl font-semibold leading-tight mb-16 text-center"
>
<span className="text-white">We serve customers </span>
<span className="text-[#E5195E]">globally</span>
</motion.h2>
{/* Office Cards */}
2025-09-19 18:43:00 +05:30
<div className="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-8 max-w-7xl mx-auto">
2025-07-28 19:57:37 +05:30
{offices.map((office, index) => (
<motion.div
key={index}
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5, delay: index * 0.01 }}
2025-07-28 19:57:37 +05:30
viewport={{ once: true }}
className="group relative p-6 rounded-xl overflow-hidden min-h-[250px] flex flex-col justify-between backdrop-blur-sm border border-gray-700/30 hover:border-[#E5195E]/30 transition-all duration-300"
>
{/* Background Image with Scale on Hover */}
<div
className="absolute inset-0 bg-cover bg-center opacity-20 transform transition-transform duration-500 group-hover:scale-105"
style={{ backgroundImage: `url(${office.image})` }}
></div>
{/* Foreground Content */}
<div className="relative z-10 flex flex-col justify-between h-full">
{/* Top Content */}
<div>
<h3 className="text-2xl font-semibold text-[#E5195E] mb-2">
{office.region}
</h3>
<p className="text-sm whitespace-pre-line leading-relaxed">
{office.address}
</p>
</div>
{/* Bottom Contact Info */}
<div className="mt-4 space-y-2 text-sm">
<div className="flex items-center gap-2">
<Phone size={16} />
<span>{office.number}</span>
2025-07-28 19:57:37 +05:30
</div>
<div className="flex items-center gap-2">
<Mail size={16} />
<span>{office.email}</span>
2025-07-28 19:57:37 +05:30
</div>
</div>
</div>
</motion.div>
))}
</div>
</section>
);
}