Merge pull request 'arya-branch' (#2) from arya-branch into main
Reviewed-on: #2
This commit is contained in:
BIN
src/assets/landing-hero.webp
Normal file
BIN
src/assets/landing-hero.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 177 KiB |
@@ -179,7 +179,7 @@ export function LoginModal({ isOpen, onClose, }: LoginModalProps) {
|
||||
<Button
|
||||
onClick={handleSendOTP}
|
||||
disabled={isLoading}
|
||||
className="w-full h-12 bg-gray-800 hover:bg-gray-900 text-white font-poppins font-semibold rounded-xl transition-colors"
|
||||
className="w-full h-12 bg-gray-800 hover:bg-gray-900 cursor-pointer text-white font-poppins font-semibold rounded-xl transition-colors"
|
||||
>
|
||||
{isLoading ? (
|
||||
<div className="flex items-center gap-2">
|
||||
@@ -230,7 +230,7 @@ export function LoginModal({ isOpen, onClose, }: LoginModalProps) {
|
||||
onChange={(e) => handleOTPChange(index, e.target.value.replace(/\D/g, ''))}
|
||||
onKeyDown={(e) => handleOTPKeyDown(index, e)}
|
||||
data-otp-index={index}
|
||||
className="w-12 h-12 text-center font-poppins font-semibold text-lg bg-gray-50 border-0 rounded-xl focus:bg-white focus:ring-2 focus:ring-primary focus:outline-none transition-colors"
|
||||
className="w-12 h-12 text-center font-poppins font-semibold text-lg bg-gray-300 border-0 rounded-xl focus:bg-white focus:ring-2 focus:ring-primary focus:outline-none transition-colors"
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
@@ -247,7 +247,7 @@ export function LoginModal({ isOpen, onClose, }: LoginModalProps) {
|
||||
<Button
|
||||
onClick={handleVerifyLogin}
|
||||
disabled={isLoading || otp.join('').length !== 6}
|
||||
className="w-full h-12 bg-gray-800 hover:bg-gray-900 text-white font-poppins font-semibold rounded-xl transition-colors disabled:opacity-50"
|
||||
className="w-full h-12 bg-gray-800 hover:bg-gray-900 cursor-pointer text-white font-poppins font-semibold rounded-xl transition-colors disabled:opacity-50"
|
||||
>
|
||||
{isLoading ? (
|
||||
<div className="flex items-center gap-2">
|
||||
|
||||
@@ -4,21 +4,18 @@ import { Button } from './ui/button';
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './ui/card';
|
||||
import { RadioGroup, RadioGroupItem } from './ui/radio-group';
|
||||
import { Badge } from './ui/badge';
|
||||
import Navbar from './Navbar';
|
||||
import { EnhancedTestimonials } from './EnhancedTestimonials';
|
||||
import { Footer } from './Footer';
|
||||
import { ReviewsSection } from './ReviewsSection';
|
||||
import { Layout } from '../Layout';
|
||||
import { LoginModal } from './LoginModal';
|
||||
import { ImageWithFallback } from './figma/ImageWithFallback';
|
||||
import { useAuth } from '../context/AuthContext';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
interface PassesPageProps {
|
||||
onCheckoutClick?: () => void;
|
||||
onSignInClick: () => void;
|
||||
onSignOutClick?: () => void;
|
||||
user?: { email: string; name: string; } | null;
|
||||
onLoginSuccess?: (userData: { email: string; name: string }) => void;
|
||||
}
|
||||
|
||||
interface PassType {
|
||||
@@ -150,36 +147,23 @@ export function PassesPage({
|
||||
onCheckoutClick,
|
||||
onSignInClick,
|
||||
onSignOutClick,
|
||||
// user,
|
||||
onLoginSuccess
|
||||
}: PassesPageProps) {
|
||||
const [selectedPass, setSelectedPass] = useState<string>('unlimited');
|
||||
const [isLoginOpen, setIsLoginOpen] = useState(false);
|
||||
// const [userData, setUserData] = useState<{ email: string; name: string } | null>(user || null);
|
||||
const { user } = useAuth(); // from AuthContext
|
||||
|
||||
const { user } = useAuth(); // from AuthContext
|
||||
|
||||
// ✅ Handle purchase button click
|
||||
const handlePurchaseClick = () => {
|
||||
if (!user) {
|
||||
// User not logged in - show login modal
|
||||
setIsLoginOpen(true);
|
||||
} else {
|
||||
// User is logged in - proceed to checkout
|
||||
onCheckoutClick?.();
|
||||
}
|
||||
const navigate= useNavigate()
|
||||
|
||||
|
||||
|
||||
const handleCheckoutClick = () => {
|
||||
console.log('Proceeding to checkout for user:', user);
|
||||
// Add your checkout logic here
|
||||
navigate('/checkout');
|
||||
};
|
||||
|
||||
// ✅ Handle successful login
|
||||
const handleLoginSuccess = (data: { email: string; name: string }) => {
|
||||
// setUserData(data);
|
||||
setIsLoginOpen(false);
|
||||
console.log('Logged in user:', data);
|
||||
|
||||
// Call parent's onLoginSuccess if provided
|
||||
if (onLoginSuccess) {
|
||||
onLoginSuccess(data);
|
||||
}
|
||||
const handleSignInClick = () => {
|
||||
setIsLoginOpen(true);
|
||||
};
|
||||
|
||||
const renderFeatureValue = (value: boolean | string) => {
|
||||
@@ -195,7 +179,7 @@ export function PassesPage({
|
||||
|
||||
return (
|
||||
<Layout
|
||||
activeCity={sessionStorage.getItem("lastKnownCity")||"shared"}
|
||||
activeCity={sessionStorage.getItem("lastKnownCity") || "shared"}
|
||||
onSignInClick={onSignInClick}
|
||||
onSignOutClick={onSignOutClick}
|
||||
user={user} // ✅ Pass the updated user data
|
||||
@@ -215,21 +199,20 @@ export function PassesPage({
|
||||
|
||||
{/* Pass Comparison Section */}
|
||||
<div className="mb-20">
|
||||
<RadioGroup
|
||||
value={selectedPass}
|
||||
<RadioGroup
|
||||
value={selectedPass}
|
||||
onValueChange={setSelectedPass}
|
||||
className="grid md:grid-cols-2 gap-8 max-w-6xl mx-auto"
|
||||
>
|
||||
{passTypes.map((pass) => (
|
||||
<div key={pass.id} className="relative h-full">
|
||||
<Card className={`relative h-full flex flex-col transition-all duration-300 cursor-pointer ${
|
||||
pass.popular
|
||||
? 'ring-2 ring-primary shadow-xl'
|
||||
: selectedPass === pass.id
|
||||
? 'ring-2 ring-primary/50 shadow-lg'
|
||||
<Card className={`relative h-full flex flex-col transition-all duration-300 ${pass.popular
|
||||
? 'ring-2 ring-primary shadow-xl'
|
||||
: selectedPass === pass.id
|
||||
? 'ring-2 ring-primary/50 shadow-lg'
|
||||
: 'border-gray-200 shadow-md hover:shadow-lg hover:border-primary/30'
|
||||
}`}>
|
||||
|
||||
}`}>
|
||||
|
||||
{/* Popular Badge */}
|
||||
{pass.popular && (
|
||||
<div className="absolute -top-3 left-1/2 transform -translate-x-1/2 z-10">
|
||||
@@ -258,28 +241,28 @@ export function PassesPage({
|
||||
<div className="px-6 pb-4 flex-shrink-0">
|
||||
<div className="grid grid-cols-4 gap-3">
|
||||
<div className="aspect-square rounded-xl overflow-hidden shadow-md hover:shadow-lg transition-all duration-300 ring-1 ring-gray-200 hover:ring-primary/50 group">
|
||||
<ImageWithFallback
|
||||
<ImageWithFallback
|
||||
src="https://images.unsplash.com/photo-1639655001512-e4b58d4874b8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxNZWxib3VybmUlMjBGZWRlcmF0aW9uJTIwU3F1YXJlfGVufDF8fHx8MTc2MjQyMzkwMHww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral"
|
||||
alt="Federation Square"
|
||||
className="w-full h-full object-cover group-hover:scale-105 group-hover:brightness-110 transition-all duration-500"
|
||||
/>
|
||||
</div>
|
||||
<div className="aspect-square rounded-xl overflow-hidden shadow-md hover:shadow-lg transition-all duration-300 ring-1 ring-gray-200 hover:ring-primary/50 group">
|
||||
<ImageWithFallback
|
||||
<ImageWithFallback
|
||||
src="https://images.unsplash.com/photo-1721272962395-a848331ce92d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxNZWxib3VybmUlMjBSb3lhbCUyMEJvdGFuaWMlMjBHYXJkZW5zfGVufDF8fHx8MTc2MjQyMzk2NHww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral"
|
||||
alt="Royal Botanic Gardens"
|
||||
className="w-full h-full object-cover group-hover:scale-105 group-hover:brightness-110 transition-all duration-500"
|
||||
/>
|
||||
</div>
|
||||
<div className="aspect-square rounded-xl overflow-hidden shadow-md hover:shadow-lg transition-all duration-300 ring-1 ring-gray-200 hover:ring-primary/50 group">
|
||||
<ImageWithFallback
|
||||
<ImageWithFallback
|
||||
src="https://images.unsplash.com/photo-1720044109127-0aee490512be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxNZWxib3VybmUlMjBFdXJla2ElMjBTa3lkZWNrfGVufDF8fHx8MTc2MjQyMzk2NXww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral"
|
||||
alt="Eureka Skydeck"
|
||||
className="w-full h-full object-cover group-hover:scale-105 group-hover:brightness-110 transition-all duration-500"
|
||||
/>
|
||||
</div>
|
||||
<div className="aspect-square rounded-xl overflow-hidden shadow-md hover:shadow-lg transition-all duration-300 ring-1 ring-gray-200 hover:ring-primary/50 group">
|
||||
<ImageWithFallback
|
||||
<ImageWithFallback
|
||||
src="https://images.unsplash.com/photo-1705464079585-0975f0aa5013?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxNZWxib3VybmUlMjBOYXRpb25hbCUyMEdhbGxlcnl8ZW58MXx8fHwxNzYyNDIzOTY0fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral"
|
||||
alt="National Gallery"
|
||||
className="w-full h-full object-cover group-hover:scale-105 group-hover:brightness-110 transition-all duration-500"
|
||||
@@ -287,7 +270,7 @@ export function PassesPage({
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{/* Pricing Section - Fixed Height */}
|
||||
<div className="px-6 pb-6 flex-shrink-0">
|
||||
<div className="flex items-baseline justify-center gap-2 mb-2">
|
||||
@@ -303,7 +286,7 @@ export function PassesPage({
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{/* Content - Flexible Height with Fixed Features Area */}
|
||||
<CardContent className="pt-0 pb-6 px-6 flex-grow flex flex-col">
|
||||
{/* Features List - Fixed height */}
|
||||
@@ -320,17 +303,16 @@ export function PassesPage({
|
||||
|
||||
{/* CTA Button - Pushed to bottom */}
|
||||
<div className="flex-shrink-0 space-y-3">
|
||||
<Button
|
||||
className={`w-full h-12 rounded-lg font-semibold transition-all duration-300 font-poppins ${
|
||||
pass.popular
|
||||
? 'bg-primary hover:bg-primary/90 text-white shadow-md hover:shadow-lg'
|
||||
<Button
|
||||
className={`w-full h-12 rounded-lg font-semibold transition-all cursor-pointer duration-300 font-poppins ${pass.popular
|
||||
? 'bg-primary hover:bg-primary/90 text-white shadow-md hover:shadow-lg'
|
||||
: 'bg-gray-900 hover:bg-gray-800 text-white hover:shadow-md'
|
||||
}`}
|
||||
onClick={user ? onCheckoutClick : onSignInClick}
|
||||
}`}
|
||||
onClick={user ? handleCheckoutClick : handleSignInClick}
|
||||
>
|
||||
{user ? 'PURCHASE NOW' : 'LOGIN TO BUY PASS'}
|
||||
</Button>
|
||||
|
||||
|
||||
<p className="text-xs text-gray-500 text-center font-poppins font-normal leading-tight">
|
||||
✓ Free cancellation up to 24 hours • Instant delivery
|
||||
</p>
|
||||
@@ -342,135 +324,135 @@ export function PassesPage({
|
||||
</RadioGroup>
|
||||
</div>
|
||||
|
||||
{/* Good to Know Section */}
|
||||
{/* Good to Know Section */}
|
||||
<div className="mb-24">
|
||||
<div className="text-center mb-16">
|
||||
<h2 className="font-merchant text-4xl md:text-5xl text-gray-900 mb-6">
|
||||
<span className="font-light">Good to</span>{' '}
|
||||
<span className="font-bold italic bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent">Know</span>
|
||||
</h2>
|
||||
<p className="font-poppins text-lg text-gray-600 font-light max-w-2xl mx-auto leading-relaxed">
|
||||
Simple tips to help you get the most out of your CityCard experience
|
||||
</p>
|
||||
</div>
|
||||
<div className="text-center mb-16">
|
||||
<h2 className="font-merchant text-4xl md:text-5xl text-gray-900 mb-6">
|
||||
<span className="font-light">Good to</span>{' '}
|
||||
<span className="font-bold italic bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent">Know</span>
|
||||
</h2>
|
||||
<p className="font-poppins text-lg text-gray-600 font-light max-w-2xl mx-auto leading-relaxed">
|
||||
Simple tips to help you get the most out of your CityCard experience
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="max-w-7xl mx-auto">
|
||||
<div className="grid lg:grid-cols-12 gap-8 items-start">
|
||||
|
||||
{/* Left Column: The Rules */}
|
||||
<div className="lg:col-span-7 space-y-6">
|
||||
|
||||
{/* Rule 1: Calendar Days */}
|
||||
<div className="bg-white rounded-[2rem] p-8 border border-gray-100 shadow-[0_8px_30px_rgb(0,0,0,0.04)] hover:shadow-[0_8px_30px_rgb(0,0,0,0.08)] transition-all duration-500 relative overflow-hidden">
|
||||
<div className="absolute top-0 right-0 w-64 h-64 bg-blue-50/50 rounded-full blur-3xl -mr-32 -mt-32 pointer-events-none"></div>
|
||||
|
||||
<div className="flex flex-col sm:flex-row items-start gap-6 relative z-10">
|
||||
<div className="w-14 h-14 bg-blue-100/50 rounded-2xl flex items-center justify-center shrink-0 text-blue-600">
|
||||
<Clock className="w-7 h-7" strokeWidth={1.5} />
|
||||
</div>
|
||||
<div className="flex-1 w-full">
|
||||
<h3 className="font-merchant text-2xl text-gray-900 mb-3">Calendar Days Policy</h3>
|
||||
<p className="font-poppins text-gray-600 leading-relaxed mb-6">
|
||||
Unlimited passes work on a <span className="font-medium text-gray-900">consecutive calendar day basis</span>, not 24-hour periods. Your pass expires at 11:59 PM on your final day.
|
||||
</p>
|
||||
|
||||
{/* Visual Timeline Example */}
|
||||
<div className="bg-blue-50/30 rounded-xl p-5 border border-blue-100/50 flex flex-col sm:flex-row gap-4 sm:items-center justify-between w-full">
|
||||
<div className="flex-1">
|
||||
<div className="text-xs font-bold text-blue-800 uppercase tracking-wider mb-1">Start</div>
|
||||
<div className="font-poppins font-medium text-gray-900 text-sm sm:text-base">Monday 4:30 PM</div>
|
||||
<div className="text-xs text-gray-500 mt-1">First scan</div>
|
||||
</div>
|
||||
<div className="hidden sm:flex flex-col items-center px-4 shrink-0">
|
||||
<div className="text-[10px] font-medium text-blue-400 mb-1">3 Days</div>
|
||||
<div className="w-24 h-0.5 bg-blue-200 relative">
|
||||
<div className="absolute inset-0 bg-blue-400 w-1/2 animate-pulse"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex-1 text-left sm:text-right">
|
||||
<div className="text-xs font-bold text-blue-800 uppercase tracking-wider mb-1">End</div>
|
||||
<div className="font-poppins font-medium text-gray-900 text-sm sm:text-base">Wednesday 11:59 PM</div>
|
||||
<div className="text-xs text-gray-500 mt-1">Expiration</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="max-w-7xl mx-auto">
|
||||
<div className="grid lg:grid-cols-12 gap-8 items-start">
|
||||
|
||||
{/* Rule 2: Fair Use */}
|
||||
<div className="bg-white rounded-[2rem] p-8 border border-gray-100 shadow-[0_8px_30px_rgb(0,0,0,0.04)] hover:shadow-[0_8px_30px_rgb(0,0,0,0.08)] transition-all duration-500 relative overflow-hidden">
|
||||
<div className="absolute top-0 right-0 w-64 h-64 bg-orange-50/50 rounded-full blur-3xl -mr-32 -mt-32 pointer-events-none"></div>
|
||||
|
||||
<div className="flex flex-col sm:flex-row items-start gap-6 relative z-10">
|
||||
<div className="w-14 h-14 bg-orange-100/50 rounded-2xl flex items-center justify-center shrink-0 text-orange-600">
|
||||
<Shield className="w-7 h-7" strokeWidth={1.5} />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<h3 className="font-merchant text-2xl text-gray-900 mb-3">60-Minute Adventure Gap</h3>
|
||||
<p className="font-poppins text-gray-600 leading-relaxed">
|
||||
To keep the journey smooth for everyone, there's a simple <span className="font-medium text-gray-900">60-minute wait</span> between scanning your pass at attractions.
|
||||
</p>
|
||||
<div className="mt-4 flex flex-wrap items-center gap-3 text-sm text-orange-800 bg-orange-50/50 py-2 px-4 rounded-full w-fit">
|
||||
<span className="w-2 h-2 bg-orange-400 rounded-full animate-pulse shrink-0"></span>
|
||||
Perfect for grabbing a coffee or traveling to your next stop!
|
||||
</div>
|
||||
{/* Left Column: The Rules */}
|
||||
<div className="lg:col-span-7 space-y-6">
|
||||
|
||||
{/* Rule 1: Calendar Days */}
|
||||
<div className="bg-white rounded-[2rem] p-8 border border-gray-100 shadow-[0_8px_30px_rgb(0,0,0,0.04)] hover:shadow-[0_8px_30px_rgb(0,0,0,0.08)] transition-all duration-500 relative overflow-hidden">
|
||||
<div className="absolute top-0 right-0 w-64 h-64 bg-blue-50/50 rounded-full blur-3xl -mr-32 -mt-32 pointer-events-none"></div>
|
||||
|
||||
<div className="flex flex-col sm:flex-row items-start gap-6 relative z-10">
|
||||
<div className="w-14 h-14 bg-blue-100/50 rounded-2xl flex items-center justify-center shrink-0 text-blue-600">
|
||||
<Clock className="w-7 h-7" strokeWidth={1.5} />
|
||||
</div>
|
||||
<div className="flex-1 w-full">
|
||||
<h3 className="font-merchant text-2xl text-gray-900 mb-3">Calendar Days Policy</h3>
|
||||
<p className="font-poppins text-gray-600 leading-relaxed mb-6">
|
||||
Unlimited passes work on a <span className="font-medium text-gray-900">consecutive calendar day basis</span>, not 24-hour periods. Your pass expires at 11:59 PM on your final day.
|
||||
</p>
|
||||
|
||||
{/* Visual Timeline Example */}
|
||||
<div className="bg-blue-50/30 rounded-xl p-5 border border-blue-100/50 flex flex-col sm:flex-row gap-4 sm:items-center justify-between w-full">
|
||||
<div className="flex-1">
|
||||
<div className="text-xs font-bold text-blue-800 uppercase tracking-wider mb-1">Start</div>
|
||||
<div className="font-poppins font-medium text-gray-900 text-sm sm:text-base">Monday 4:30 PM</div>
|
||||
<div className="text-xs text-gray-500 mt-1">First scan</div>
|
||||
</div>
|
||||
<div className="hidden sm:flex flex-col items-center px-4 shrink-0">
|
||||
<div className="text-[10px] font-medium text-blue-400 mb-1">3 Days</div>
|
||||
<div className="w-24 h-0.5 bg-blue-200 relative">
|
||||
<div className="absolute inset-0 bg-blue-400 w-1/2 animate-pulse"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex-1 text-left sm:text-right">
|
||||
<div className="text-xs font-bold text-blue-800 uppercase tracking-wider mb-1">End</div>
|
||||
<div className="font-poppins font-medium text-gray-900 text-sm sm:text-base">Wednesday 11:59 PM</div>
|
||||
<div className="text-xs text-gray-500 mt-1">Expiration</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Right Column: The "Card Types" Summary */}
|
||||
<div className="lg:col-span-5 h-full min-h-[400px]">
|
||||
<div className="bg-gradient-to-br from-[#F95F62] to-[#ff8f92] rounded-[2rem] p-8 border border-white/20 shadow-[0_8px_30px_rgb(249,95,98,0.3)] h-full relative overflow-hidden flex flex-col justify-center text-white">
|
||||
{/* Abstract Shapes */}
|
||||
<div className="absolute top-0 right-0 w-64 h-64 bg-white/10 rounded-full blur-3xl -mr-10 -mt-10 pointer-events-none"></div>
|
||||
<div className="absolute bottom-0 left-0 w-64 h-64 bg-black/5 rounded-full blur-3xl -ml-10 -mb-10 pointer-events-none"></div>
|
||||
{/* Rule 2: Fair Use */}
|
||||
<div className="bg-white rounded-[2rem] p-8 border border-gray-100 shadow-[0_8px_30px_rgb(0,0,0,0.04)] hover:shadow-[0_8px_30px_rgb(0,0,0,0.08)] transition-all duration-500 relative overflow-hidden">
|
||||
<div className="absolute top-0 right-0 w-64 h-64 bg-orange-50/50 rounded-full blur-3xl -mr-32 -mt-32 pointer-events-none"></div>
|
||||
|
||||
<div className="relative z-10">
|
||||
<h3 className="font-merchant text-3xl mb-2 text-white">Your Pass, Your Way</h3>
|
||||
<p className="text-white/90 font-poppins mb-8 font-light leading-relaxed">Choose the flexibility that matches your travel style.</p>
|
||||
|
||||
<div className="space-y-4">
|
||||
{/* Flex Option - White Card */}
|
||||
<div className="bg-white rounded-2xl p-5 shadow-lg border border-white/50 hover:scale-[1.02] transition-transform duration-300 cursor-default group relative overflow-hidden">
|
||||
<div className="absolute left-0 top-0 bottom-0 w-1.5 bg-[#F95FAF]"></div>
|
||||
<div className="flex justify-between items-center mb-2 pl-3">
|
||||
<span className="font-poppins font-semibold text-lg text-gray-900 group-hover:text-[#F95FAF] transition-colors">Flexi Card</span>
|
||||
<span className="text-[10px] uppercase tracking-wider bg-[#F95FAF]/10 px-2 py-1 rounded-md text-[#F95FAF] font-bold">Casual</span>
|
||||
</div>
|
||||
<p className="text-sm text-gray-600 font-light mb-4 pl-3">Best for visiting specific attractions at your own pace.</p>
|
||||
<div className="flex gap-2 pl-3">
|
||||
{[3, 5, 7].map(n => (
|
||||
<div key={n} className="text-xs border border-[#F95FAF]/30 text-[#F95FAF] rounded-lg px-3 py-1.5 font-medium bg-[#F95FAF]/5">{n}</div>
|
||||
))}
|
||||
<span className="text-xs flex items-center text-gray-400 ml-1">Attractions</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Unlimited Option - White Card with Highlight */}
|
||||
<div className="bg-white rounded-2xl p-5 shadow-lg border border-white/50 hover:scale-[1.02] transition-transform duration-300 cursor-default group relative overflow-hidden">
|
||||
<div className="absolute top-0 right-0 bg-[#F95F62] text-white text-[10px] font-bold px-3 py-1 rounded-bl-xl shadow-sm z-10">POPULAR</div>
|
||||
<div className="absolute left-0 top-0 bottom-0 w-1.5 bg-[#F95F62]"></div>
|
||||
<div className="flex justify-between items-center mb-2 pl-3">
|
||||
<span className="font-poppins font-semibold text-lg text-gray-900 group-hover:text-[#F95F62] transition-colors">Unlimited Card</span>
|
||||
<span className="text-[10px] uppercase tracking-wider bg-[#F95F62]/10 px-2 py-1 rounded-md text-[#F95F62] border border-[#F95F62]/20 font-bold">Power User</span>
|
||||
</div>
|
||||
<p className="text-sm text-gray-600 font-light mb-4 pl-3">Unlimited access for full days of exploration.</p>
|
||||
<div className="flex gap-2 flex-wrap pl-3">
|
||||
{[2, 3, 5, 7].map(n => (
|
||||
<div key={n} className="text-xs bg-white text-[#F95F62] border border-[#F95F62]/20 rounded-lg px-3 py-1.5 font-medium shadow-sm">{n}</div>
|
||||
))}
|
||||
<span className="text-xs flex items-center text-gray-500 ml-1">Days</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex flex-col sm:flex-row items-start gap-6 relative z-10">
|
||||
<div className="w-14 h-14 bg-orange-100/50 rounded-2xl flex items-center justify-center shrink-0 text-orange-600">
|
||||
<Shield className="w-7 h-7" strokeWidth={1.5} />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<h3 className="font-merchant text-2xl text-gray-900 mb-3">60-Minute Adventure Gap</h3>
|
||||
<p className="font-poppins text-gray-600 leading-relaxed">
|
||||
To keep the journey smooth for everyone, there's a simple <span className="font-medium text-gray-900">60-minute wait</span> between scanning your pass at attractions.
|
||||
</p>
|
||||
<div className="mt-4 flex flex-wrap items-center gap-3 text-sm text-orange-800 bg-orange-50/50 py-2 px-4 rounded-full w-fit">
|
||||
<span className="w-2 h-2 bg-orange-400 rounded-full animate-pulse shrink-0"></span>
|
||||
Perfect for grabbing a coffee or traveling to your next stop!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{/* Right Column: The "Card Types" Summary */}
|
||||
<div className="lg:col-span-5 h-full min-h-[400px]">
|
||||
<div className="bg-gradient-to-br from-[#F95F62] to-[#ff8f92] rounded-[2rem] p-8 border border-white/20 shadow-[0_8px_30px_rgb(249,95,98,0.3)] h-full relative overflow-hidden flex flex-col justify-center text-white">
|
||||
{/* Abstract Shapes */}
|
||||
<div className="absolute top-0 right-0 w-64 h-64 bg-white/10 rounded-full blur-3xl -mr-10 -mt-10 pointer-events-none"></div>
|
||||
<div className="absolute bottom-0 left-0 w-64 h-64 bg-black/5 rounded-full blur-3xl -ml-10 -mb-10 pointer-events-none"></div>
|
||||
|
||||
<div className="relative z-10">
|
||||
<h3 className="font-merchant text-3xl mb-2 text-white">Your Pass, Your Way</h3>
|
||||
<p className="text-white/90 font-poppins mb-8 font-light leading-relaxed">Choose the flexibility that matches your travel style.</p>
|
||||
|
||||
<div className="space-y-4">
|
||||
{/* Flex Option - White Card */}
|
||||
<div className="bg-white rounded-2xl p-5 shadow-lg border border-white/50 hover:scale-[1.02] transition-transform duration-300 cursor-default group relative overflow-hidden">
|
||||
<div className="absolute left-0 top-0 bottom-0 w-1.5 bg-[#F95FAF]"></div>
|
||||
<div className="flex justify-between items-center mb-2 pl-3">
|
||||
<span className="font-poppins font-semibold text-lg text-gray-900 group-hover:text-[#F95FAF] transition-colors">Flexi Card</span>
|
||||
<span className="text-[10px] uppercase tracking-wider bg-[#F95FAF]/10 px-2 py-1 rounded-md text-[#F95FAF] font-bold">Casual</span>
|
||||
</div>
|
||||
<p className="text-sm text-gray-600 font-light mb-4 pl-3">Best for visiting specific attractions at your own pace.</p>
|
||||
<div className="flex gap-2 pl-3">
|
||||
{[3, 5, 7].map(n => (
|
||||
<div key={n} className="text-xs border border-[#F95FAF]/30 text-[#F95FAF] rounded-lg px-3 py-1.5 font-medium bg-[#F95FAF]/5">{n}</div>
|
||||
))}
|
||||
<span className="text-xs flex items-center text-gray-400 ml-1">Attractions</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Unlimited Option - White Card with Highlight */}
|
||||
<div className="bg-white rounded-2xl p-5 shadow-lg border border-white/50 hover:scale-[1.02] transition-transform duration-300 cursor-default group relative overflow-hidden">
|
||||
<div className="absolute top-0 right-0 bg-[#F95F62] text-white text-[10px] font-bold px-3 py-1 rounded-bl-xl shadow-sm z-10">POPULAR</div>
|
||||
<div className="absolute left-0 top-0 bottom-0 w-1.5 bg-[#F95F62]"></div>
|
||||
<div className="flex justify-between items-center mb-2 pl-3">
|
||||
<span className="font-poppins font-semibold text-lg text-gray-900 group-hover:text-[#F95F62] transition-colors">Unlimited Card</span>
|
||||
<span className="text-[10px] uppercase tracking-wider bg-[#F95F62]/10 px-2 py-1 rounded-md text-[#F95F62] border border-[#F95F62]/20 font-bold">Power User</span>
|
||||
</div>
|
||||
<p className="text-sm text-gray-600 font-light mb-4 pl-3">Unlimited access for full days of exploration.</p>
|
||||
<div className="flex gap-2 flex-wrap pl-3">
|
||||
{[2, 3, 5, 7].map(n => (
|
||||
<div key={n} className="text-xs bg-white text-[#F95F62] border border-[#F95F62]/20 rounded-lg px-3 py-1.5 font-medium shadow-sm">{n}</div>
|
||||
))}
|
||||
<span className="text-xs flex items-center text-gray-500 ml-1">Days</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Detailed Features Comparison Table */}
|
||||
<Card className="overflow-hidden mb-20 bg-white shadow-lg">
|
||||
@@ -762,6 +744,13 @@ export function PassesPage({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<LoginModal
|
||||
isOpen={isLoginOpen}
|
||||
onClose={() => {
|
||||
setIsLoginOpen(false);
|
||||
}}
|
||||
/>
|
||||
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,8 @@ import { ChevronDown, MapPin, Star, Shield, Clock, Smartphone } from 'lucide-rea
|
||||
import Navbar from '../components/Navbar';
|
||||
import { Footer } from '../components/Footer';
|
||||
// import { CitySubmenu } from '../components/CitySubmenu';
|
||||
import heroBannerImage from '../assets/landing-hero.png';
|
||||
// import heroBannerImage from '../assets/landing-hero.png';
|
||||
import heroBannerImage from '../assets/landing-hero.webp';
|
||||
import { Button } from '../components/ui/button';
|
||||
import { LandingWhyChooseCityCards } from '../components/LandingWhyChooseCityCards';
|
||||
import { LandingVarietyOfAdventures } from '../components/LandingVarietyOfAdventures';
|
||||
|
||||
Reference in New Issue
Block a user