%PDF- %PDF-
| Direktori : /home2/rezakur1/muakita.rezakurnia.com/Mua-Kita-Web/src/components/ |
| Current File : //home2/rezakur1/muakita.rezakurnia.com/Mua-Kita-Web/src/components/WebsiteBuilderSection.tsx |
import React, { useState } from 'react';
import {
Globe, Laptop, Smartphone, Layout, Sparkles, CheckCircle2, ArrowRight,
Palette, Share2, Camera, Video, Star, Calendar, MapPin, Clock,
MessageSquare, ShieldCheck, Check, ExternalLink, RefreshCw,
Plus, Instagram, Copy, CreditCard, Eye, Zap, Layers, ChevronRight, Play, Heart, Users, Lock
} from 'lucide-react';
interface WebsiteBuilderSectionProps {
onOpenLogin: () => void;
onOpenDemo: () => void;
onNavigateToPaket?: () => void;
}
export const WebsiteBuilderSection: React.FC<WebsiteBuilderSectionProps> = ({
onOpenLogin,
onOpenDemo,
onNavigateToPaket
}) => {
// Preview mode: 'desktop' | 'mobile' | 'builder'
const [previewMode, setPreviewMode] = useState<'desktop' | 'mobile' | 'builder'>('desktop');
// Theme selection in Builder Mode
const [selectedTheme, setSelectedTheme] = useState<'pink' | 'gold' | 'rose' | 'dark'>('pink');
// Active section toggle in Builder Mode
const [activeSections, setActiveSections] = useState({
profile: true,
services: true,
portfolio: true,
testimonials: true,
team: true,
wedding: true,
booking: true
});
// Copied website link toast
const [copiedDomain, setCopiedDomain] = useState(false);
const toggleSection = (key: keyof typeof activeSections) => {
setActiveSections(prev => ({ ...prev, [key]: !prev[key] }));
};
const handleCopyWebsiteLink = () => {
navigator.clipboard.writeText('https://glowbridal.muakita.com');
setCopiedDomain(true);
setTimeout(() => setCopiedDomain(false), 2000);
};
// Theme styles helper
const themeStyles = {
pink: {
accent: 'bg-[#EC167F]',
accentText: 'text-[#EC167F]',
border: 'border-[#EC167F]',
badgeBg: 'bg-pink-50 text-[#EC167F]',
gradient: 'from-pink-500 to-rose-600',
heroBg: 'bg-gradient-to-r from-pink-500/10 via-rose-50 to-pink-50/50'
},
gold: {
accent: 'bg-amber-600',
accentText: 'text-amber-600',
border: 'border-amber-500',
badgeBg: 'bg-amber-50 text-amber-700',
gradient: 'from-amber-500 to-yellow-600',
heroBg: 'bg-gradient-to-r from-amber-500/10 via-amber-50 to-orange-50/50'
},
rose: {
accent: 'bg-rose-500',
accentText: 'text-rose-500',
border: 'border-rose-400',
badgeBg: 'bg-rose-50 text-rose-600',
gradient: 'from-rose-400 to-pink-600',
heroBg: 'bg-gradient-to-r from-rose-500/10 via-rose-50 to-pink-50/50'
},
dark: {
accent: 'bg-purple-600',
accentText: 'text-purple-600',
border: 'border-purple-500',
badgeBg: 'bg-purple-50 text-purple-700',
gradient: 'from-purple-600 to-indigo-600',
heroBg: 'bg-gradient-to-r from-purple-900/10 via-purple-50 to-slate-100'
}
};
const currentTheme = themeStyles[selectedTheme];
return (
<section id="website-builder" className="py-16 sm:py-24 bg-gradient-to-b from-white via-slate-50/70 to-pink-50/30 relative overflow-hidden">
{/* Decorative background glow blobs */}
<div className="absolute top-1/4 left-0 w-96 h-96 bg-pink-200/30 rounded-full blur-3xl pointer-events-none -translate-x-1/2" />
<div className="absolute bottom-10 right-0 w-96 h-96 bg-purple-200/30 rounded-full blur-3xl pointer-events-none translate-x-1/2" />
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10 space-y-12 sm:space-y-16">
{/* 1. SECTION HEADER */}
<div className="text-center max-w-3xl mx-auto space-y-4">
<div className="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-pink-100/90 text-[#EC167F] text-[11px] font-extrabold shadow-2xs">
<Globe className="w-3.5 h-3.5" />
<span>WEBSITE BUILDER TANPA CODING</span>
<span className="w-1.5 h-1.5 rounded-full bg-[#EC167F] animate-pulse" />
</div>
<h2 className="text-2xl sm:text-4xl lg:text-5xl font-black text-slate-900 tracking-tight leading-[1.15]">
Website MUA Profesional Anda, <span className="text-[#EC167F]">Instan & Auto-Sync</span>
</h2>
<p className="text-xs sm:text-base text-slate-600 font-medium leading-relaxed max-w-2xl mx-auto">
Tampilkan portofolio karya, katalog harga, dan terima booking online 24/7 dengan website pribadi Anda sendiri. Tanpa perlu skill coding — langsung terhubung otomatis ke dashboard MuaKita.
</p>
{/* Quick Stats Badges */}
<div className="flex flex-wrap items-center justify-center gap-2 sm:gap-4 pt-2 text-[11px] font-bold text-slate-600">
<div className="px-3 py-1 rounded-lg bg-white border border-slate-200 shadow-2xs flex items-center gap-1.5">
<CheckCircle2 className="w-3.5 h-3.5 text-emerald-500" />
<span>0% Coding (Siap Pakai)</span>
</div>
<div className="px-3 py-1 rounded-lg bg-white border border-slate-200 shadow-2xs flex items-center gap-1.5">
<RefreshCw className="w-3.5 h-3.5 text-pink-500" />
<span>Auto-Sync Real-time</span>
</div>
<div className="px-3 py-1 rounded-lg bg-white border border-slate-200 shadow-2xs flex items-center gap-1.5">
<Globe className="w-3.5 h-3.5 text-purple-500" />
<span>Custom Domain (.com/.id)</span>
</div>
<div className="px-3 py-1 rounded-lg bg-white border border-slate-200 shadow-2xs flex items-center gap-1.5">
<Smartphone className="w-3.5 h-3.5 text-blue-500" />
<span>Mobile Responsive</span>
</div>
</div>
</div>
{/* 2. INTERACTIVE DEMO PREVIEW SWITCHER */}
<div className="bg-white rounded-3xl border border-slate-200/90 shadow-2xl overflow-hidden">
{/* Mockup Control Bar */}
<div className="bg-slate-900 text-white p-3 sm:p-4 flex flex-col sm:flex-row items-center justify-between gap-3 border-b border-slate-800">
{/* Left: Window Dots & Title */}
<div className="flex items-center gap-3 w-full sm:w-auto justify-between sm:justify-start">
<div className="flex items-center gap-1.5">
<span className="w-3 h-3 rounded-full bg-rose-500 inline-block" />
<span className="w-3 h-3 rounded-full bg-amber-500 inline-block" />
<span className="w-3 h-3 rounded-full bg-emerald-500 inline-block" />
</div>
<span className="text-xs font-bold text-slate-300 flex items-center gap-1.5">
<Sparkles className="w-3.5 h-3.5 text-pink-400" />
<span>Simulasi Live Website MUA</span>
</span>
</div>
{/* Center: View Switcher Tabs */}
<div className="flex items-center gap-1 bg-slate-800 p-1 rounded-xl text-xs font-bold w-full sm:w-auto justify-center">
<button
onClick={() => setPreviewMode('desktop')}
className={`px-3 py-1.5 rounded-lg transition-all flex items-center gap-1.5 cursor-pointer ${
previewMode === 'desktop' ? 'bg-[#EC167F] text-white shadow-2xs' : 'text-slate-400 hover:text-white'
}`}
>
<Laptop className="w-3.5 h-3.5" />
<span>Tampilan Desktop</span>
</button>
<button
onClick={() => setPreviewMode('mobile')}
className={`px-3 py-1.5 rounded-lg transition-all flex items-center gap-1.5 cursor-pointer ${
previewMode === 'mobile' ? 'bg-[#EC167F] text-white shadow-2xs' : 'text-slate-400 hover:text-white'
}`}
>
<Smartphone className="w-3.5 h-3.5" />
<span>Tampilan HP</span>
</button>
<button
onClick={() => setPreviewMode('builder')}
className={`px-3 py-1.5 rounded-lg transition-all flex items-center gap-1.5 cursor-pointer ${
previewMode === 'builder' ? 'bg-purple-600 text-white shadow-2xs' : 'text-slate-400 hover:text-white'
}`}
>
<Layout className="w-3.5 h-3.5" />
<span>Drag & Drop Builder</span>
</button>
</div>
{/* Right: Domain bar simulation */}
<div className="hidden lg:flex items-center gap-2 bg-slate-800/80 px-3 py-1 rounded-lg text-[11px] font-mono text-slate-300 border border-slate-700">
<Lock className="w-3 h-3 text-emerald-400" />
<span>www.glowbridalstudio.com</span>
<button
onClick={handleCopyWebsiteLink}
className="hover:text-white transition-colors cursor-pointer ml-1"
title="Salin Link Website"
>
<Copy className="w-3 h-3 text-slate-400" />
</button>
{copiedDomain && (
<span className="text-[10px] text-emerald-400 font-sans font-bold">Tersalin!</span>
)}
</div>
</div>
{/* PREVIEW CONTAINER BODY */}
<div className="bg-slate-100/60 p-4 sm:p-6 lg:p-8 min-h-[500px]">
{/* A. DESKTOP VIEW MOCKUP */}
{previewMode === 'desktop' && (
<div className="max-w-5xl mx-auto bg-white rounded-2xl border border-slate-200/90 shadow-xl overflow-hidden transition-all duration-300">
{/* Browser Address Bar */}
<div className="bg-slate-50 px-4 py-2 border-b border-slate-200 flex items-center justify-between text-xs text-slate-600">
<div className="flex items-center gap-2 font-mono text-[11px] bg-white border border-slate-200 px-3 py-1 rounded-md text-slate-700 w-2/3 max-w-md">
<Lock className="w-3 h-3 text-emerald-600" />
<span className="truncate">https://glowbridalstudio.com</span>
<span className="ml-auto text-[9px] font-sans font-extrabold bg-emerald-100 text-emerald-800 px-1.5 rounded">
SSL Aktif
</span>
</div>
<div className="flex items-center gap-2 text-[10px] font-bold text-slate-500">
<span className="w-2 h-2 rounded-full bg-emerald-500 inline-block" />
<span>Auto-Sync Aktif</span>
</div>
</div>
{/* Website Header */}
<header className="bg-white border-b border-slate-100 px-6 py-3.5 flex items-center justify-between sticky top-0 z-10">
<div className="flex items-center gap-2.5">
<div className="w-8 h-8 rounded-full bg-[#EC167F] text-white font-black flex items-center justify-center text-xs shadow-xs">
GB
</div>
<div>
<h3 className="font-extrabold text-slate-900 text-sm leading-tight">Glow Bridal Studio</h3>
<p className="text-[10px] text-slate-400 font-medium">Professional MUA & Bridal Service</p>
</div>
</div>
<nav className="hidden md:flex items-center gap-6 text-xs font-bold text-slate-600">
<a href="#bio" className="hover:text-[#EC167F] transition-colors">Profil</a>
<a href="#layanan" className="hover:text-[#EC167F] transition-colors">Layanan & Harga</a>
<a href="#portofolio" className="hover:text-[#EC167F] transition-colors">Portofolio</a>
<a href="#testimoni" className="hover:text-[#EC167F] transition-colors">Testimoni</a>
<a href="#tim" className="hover:text-[#EC167F] transition-colors">Tim MUA</a>
</nav>
<button
onClick={onOpenDemo}
className="px-4 py-2 bg-[#EC167F] text-white rounded-xl text-xs font-extrabold shadow-md hover:bg-[#D41270] transition-colors cursor-pointer flex items-center gap-1.5"
>
<Calendar className="w-3.5 h-3.5" />
<span>Reservasi Online</span>
</button>
</header>
{/* Simulated Website Content */}
<div className="p-6 space-y-8">
{/* Hero Banner Section */}
<div className="relative rounded-2xl overflow-hidden bg-gradient-to-r from-pink-500/10 via-rose-50 to-pink-50/50 p-6 sm:p-8 border border-pink-100 flex flex-col md:flex-row items-center justify-between gap-6">
<div className="space-y-3 max-w-lg text-left">
<span className="px-2.5 py-1 rounded-full bg-pink-100 text-[#EC167F] text-[10px] font-black uppercase">
Official Website MUA
</span>
<h3 className="text-2xl sm:text-3xl font-black text-slate-900 leading-tight">
Wujudkan Penampilan Impian di Hari Istimewa Anda
</h3>
<p className="text-xs text-slate-600 font-medium leading-relaxed">
Spesialis Rias Pengantin Akad, Resepsi, Engagement, & Graduation. Menggunakan produk premium berkualitas tinggi untuk ketahanan hingga 16 jam.
</p>
<div className="flex flex-wrap items-center gap-3 pt-1">
<button
onClick={onOpenDemo}
className="px-5 py-2.5 bg-[#EC167F] text-white rounded-xl text-xs font-extrabold shadow-md hover:bg-[#D41270] transition-all cursor-pointer flex items-center gap-1.5"
>
<span>Pilih Paket & Booking</span>
<ArrowRight className="w-3.5 h-3.5" />
</button>
<a
href="https://wa.me/628123456789"
target="_blank"
rel="noopener noreferrer"
className="px-4 py-2.5 bg-white text-slate-800 border border-slate-200 rounded-xl text-xs font-extrabold hover:bg-slate-50 transition-colors flex items-center gap-1.5"
>
<MessageSquare className="w-3.5 h-3.5 text-emerald-600" />
<span>Konsultasi WA</span>
</a>
</div>
</div>
{/* Preview Image Visual */}
<div className="relative shrink-0">
<div className="w-48 h-48 sm:w-56 sm:h-56 rounded-2xl bg-gradient-to-tr from-pink-400 to-purple-500 p-1 shadow-lg">
<div className="w-full h-full rounded-xl bg-slate-900 overflow-hidden relative group">
<img
src="https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&w=600&q=80"
alt="Makeup Portfolio"
className="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"
/>
<div className="absolute inset-0 bg-gradient-to-t from-slate-900/80 via-transparent to-transparent p-3 flex flex-col justify-end text-white">
<span className="text-[10px] font-black text-pink-300">Wedding Flawless Look</span>
<span className="text-[9px] text-slate-300">By Anisa Rahma (Owner)</span>
</div>
</div>
</div>
<div className="absolute -bottom-3 -left-3 bg-white p-2 rounded-xl shadow-md border border-slate-100 text-[10px] font-bold text-slate-800 flex items-center gap-1.5">
<Star className="w-3.5 h-3.5 text-amber-400 fill-amber-400" />
<span>4.9/5.0 (150+ Ulasan)</span>
</div>
</div>
</div>
{/* Section 2: Katalog Layanan & Harga */}
<div className="space-y-4">
<div className="flex items-center justify-between border-b border-slate-100 pb-2">
<div>
<h4 className="font-extrabold text-slate-900 text-sm">Katalog Layanan & Harga</h4>
<p className="text-[11px] text-slate-500">Otomatis tersinkronisasi dari MuaKita Dashboard</p>
</div>
<span className="text-[10px] font-extrabold bg-pink-50 text-[#EC167F] px-2.5 py-1 rounded-md">
3 Kategori Utama
</span>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-3">
{/* Package Card 1 */}
<div className="bg-slate-50/80 p-3.5 rounded-xl border border-slate-200/80 hover:border-pink-300 transition-all space-y-2">
<div className="flex justify-between items-start">
<span className="text-[10px] font-bold text-pink-600 bg-pink-100 px-2 py-0.5 rounded">Wedding Akad</span>
<span className="text-xs font-black text-slate-900">Rp 2.500.000</span>
</div>
<h5 className="font-bold text-slate-900 text-xs">Rias Pengantin Akad Nikah</h5>
<p className="text-[11px] text-slate-500">Makeup Flawless 16 Jam, Hijab Do/Hair Do, Softlens, Touch up 1x.</p>
<button
onClick={onOpenDemo}
className="w-full py-1.5 bg-white hover:bg-pink-50 text-[#EC167F] border border-pink-200 font-extrabold text-[11px] rounded-lg transition-colors cursor-pointer"
>
Booking Sekarang
</button>
</div>
{/* Package Card 2 */}
<div className="bg-slate-50/80 p-3.5 rounded-xl border border-slate-200/80 hover:border-pink-300 transition-all space-y-2">
<div className="flex justify-between items-start">
<span className="text-[10px] font-bold text-purple-600 bg-purple-100 px-2 py-0.5 rounded">Resepsi Grand</span>
<span className="text-xs font-black text-slate-900">Rp 4.800.000</span>
</div>
<h5 className="font-bold text-slate-900 text-xs">Paket Rias Pengantin Lengkap</h5>
<p className="text-[11px] text-slate-500">Makeup Pengantin (2x ganti baju), Makeup 2 Ibu, Touch up 2x, Free Melati.</p>
<button
onClick={onOpenDemo}
className="w-full py-1.5 bg-white hover:bg-pink-50 text-[#EC167F] border border-pink-200 font-extrabold text-[11px] rounded-lg transition-colors cursor-pointer"
>
Booking Sekarang
</button>
</div>
{/* Package Card 3 */}
<div className="bg-slate-50/80 p-3.5 rounded-xl border border-slate-200/80 hover:border-pink-300 transition-all space-y-2">
<div className="flex justify-between items-start">
<span className="text-[10px] font-bold text-emerald-600 bg-emerald-100 px-2 py-0.5 rounded">Graduation/Party</span>
<span className="text-xs font-black text-slate-900">Rp 450.000</span>
</div>
<h5 className="font-bold text-slate-900 text-xs">Makeup Graduasi & Pesta</h5>
<p className="text-[11px] text-slate-500">Natural Glam Look, Hair Do/Hijab Styling, Bulu Mata Premium.</p>
<button
onClick={onOpenDemo}
className="w-full py-1.5 bg-white hover:bg-pink-50 text-[#EC167F] border border-pink-200 font-extrabold text-[11px] rounded-lg transition-colors cursor-pointer"
>
Booking Sekarang
</button>
</div>
</div>
</div>
{/* Section 3: Portofolio & Direct Booking Form Banner */}
<div className="grid grid-cols-1 md:grid-cols-12 gap-4">
{/* Gallery Showcase (7 cols) */}
<div className="md:col-span-7 bg-slate-900 text-white p-4 rounded-2xl space-y-3">
<div className="flex items-center justify-between">
<span className="text-xs font-bold text-pink-400 flex items-center gap-1">
<Camera className="w-3.5 h-3.5" />
<span>Galeri Portofolio Hasil Makeup</span>
</span>
<span className="text-[10px] text-slate-400">Terintegrasi Media Instagram</span>
</div>
<div className="grid grid-cols-3 gap-2">
<div className="aspect-square rounded-lg overflow-hidden relative group">
<img src="https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&w=300&q=80" alt="Makeup 1" className="w-full h-full object-cover group-hover:scale-110 transition-transform" />
<span className="absolute bottom-1 left-1 bg-black/60 text-[8px] px-1 rounded text-white font-bold">Akad Nikah</span>
</div>
<div className="aspect-square rounded-lg overflow-hidden relative group">
<img src="https://images.unsplash.com/photo-1512496015851-a90fb38ba796?auto=format&fit=crop&w=300&q=80" alt="Makeup 2" className="w-full h-full object-cover group-hover:scale-110 transition-transform" />
<span className="absolute bottom-1 left-1 bg-black/60 text-[8px] px-1 rounded text-white font-bold">Lamaran</span>
</div>
<div className="aspect-square rounded-lg overflow-hidden relative group">
<img src="https://images.unsplash.com/photo-1516975080664-ed2fc6a32937?auto=format&fit=crop&w=300&q=80" alt="Makeup 3" className="w-full h-full object-cover group-hover:scale-110 transition-transform" />
<span className="absolute bottom-1 left-1 bg-black/60 text-[8px] px-1 rounded text-white font-bold">Resepsi</span>
</div>
</div>
</div>
{/* Booking Form Widget Simulation (5 cols) */}
<div className="md:col-span-5 bg-pink-50/60 p-4 rounded-2xl border border-pink-200/80 space-y-2.5">
<div className="flex items-center gap-2">
<div className="w-6 h-6 rounded-lg bg-[#EC167F] text-white flex items-center justify-center">
<Calendar className="w-3.5 h-3.5" />
</div>
<h5 className="font-extrabold text-slate-900 text-xs">Form Booking Direct 24/7</h5>
</div>
<p className="text-[10px] text-slate-500">
Klien memilih tanggal, jam, dan paket — reservasi langsung masuk ke Kalender MuaKita & WA Anda.
</p>
<div className="space-y-1.5 text-[10px]">
<input type="text" readOnly value="Nama: Siska Amalia" className="w-full bg-white p-1.5 rounded border border-slate-200 font-medium" />
<input type="text" readOnly value="Tanggal: 14 Agustus 2026 (08:00 WIB)" className="w-full bg-white p-1.5 rounded border border-slate-200 font-medium" />
<button
onClick={onOpenDemo}
className="w-full py-2 bg-[#EC167F] text-white font-extrabold rounded-lg shadow-sm hover:bg-[#D41270] transition-colors cursor-pointer text-center block"
>
Kirim Reservasi Ke WA Studio
</button>
</div>
</div>
</div>
</div>
{/* Footer simulation */}
<div className="bg-slate-50 px-6 py-3 border-t border-slate-200 text-[10px] text-slate-500 flex flex-col sm:flex-row items-center justify-between gap-2">
<span>© 2026 Glow Bridal Studio. Powered by <strong className="text-[#EC167F]">MuaKita Website Builder</strong></span>
<div className="flex items-center gap-3 font-bold text-slate-600">
<span className="hover:text-[#EC167F]">Instagram</span>
<span className="hover:text-[#EC167F]">TikTok</span>
<span className="hover:text-[#EC167F]">WhatsApp</span>
</div>
</div>
</div>
)}
{/* B. MOBILE VIEW MOCKUP */}
{previewMode === 'mobile' && (
<div className="max-w-xs mx-auto bg-slate-900 rounded-[40px] p-3 shadow-2xl border-4 border-slate-800 relative">
{/* Phone Notch */}
<div className="w-28 h-4 bg-slate-800 rounded-full mx-auto mb-2 relative z-20" />
{/* Mobile Inner Screen */}
<div className="bg-white rounded-[32px] overflow-hidden text-slate-900 text-left min-h-[480px] flex flex-col justify-between">
{/* Top Mobile Bar */}
<div className="bg-white px-4 py-2 border-b border-slate-100 flex items-center justify-between text-[10px] font-bold">
<span className="text-slate-900 font-black">Glow Bridal MUA</span>
<span className="px-2 py-0.5 rounded-full bg-emerald-100 text-emerald-800 text-[8px]">
Online
</span>
</div>
{/* Body Content */}
<div className="p-3 space-y-3 overflow-y-auto max-h-[380px]">
{/* Header Card */}
<div className="text-center bg-gradient-to-b from-pink-50 to-white p-3 rounded-2xl border border-pink-100 space-y-2">
<div className="w-14 h-14 rounded-full bg-[#EC167F] text-white font-black text-sm flex items-center justify-center mx-auto shadow-md">
GB
</div>
<div>
<h4 className="font-black text-slate-900 text-xs">Glow Bridal Studio</h4>
<p className="text-[9px] text-slate-500 font-medium">Professional MUA Jakarta & BSD</p>
</div>
<div className="flex items-center justify-center gap-1 text-[9px] text-amber-500 font-bold">
<Star className="w-3 h-3 fill-amber-400" />
<span>4.9 (150+ Happy Brides)</span>
</div>
</div>
{/* Social Link Tree Buttons */}
<div className="space-y-1.5 text-[10px] font-bold">
<button
onClick={onOpenDemo}
className="w-full py-2 px-3 bg-[#EC167F] text-white rounded-xl flex items-center justify-between shadow-2xs cursor-pointer"
>
<span className="flex items-center gap-1.5">
<Calendar className="w-3.5 h-3.5" />
<span>Form Reservasi Online</span>
</span>
<ChevronRight className="w-3.5 h-3.5" />
</button>
<a
href="https://wa.me/628123456789"
target="_blank"
rel="noopener noreferrer"
className="w-full py-2 px-3 bg-emerald-50 text-emerald-800 border border-emerald-200 rounded-xl flex items-center justify-between cursor-pointer"
>
<span className="flex items-center gap-1.5">
<MessageSquare className="w-3.5 h-3.5 text-emerald-600" />
<span>Chat WhatsApp Direct</span>
</span>
<ChevronRight className="w-3.5 h-3.5" />
</a>
<a
href="https://instagram.com"
target="_blank"
rel="noopener noreferrer"
className="w-full py-2 px-3 bg-slate-50 text-slate-800 border border-slate-200 rounded-xl flex items-center justify-between cursor-pointer"
>
<span className="flex items-center gap-1.5">
<Instagram className="w-3.5 h-3.5 text-pink-600" />
<span>Portofolio Instagram</span>
</span>
<ChevronRight className="w-3.5 h-3.5" />
</a>
</div>
{/* Quick Package Preview */}
<div className="bg-slate-50 p-2.5 rounded-xl border border-slate-200/80 space-y-1.5 text-[10px]">
<span className="font-black text-slate-900 block">Paket Populer Hari Ini</span>
<div className="flex justify-between items-center bg-white p-1.5 rounded border border-slate-200">
<span>Rias Akad Nikah</span>
<strong className="text-[#EC167F]">Rp 2,5jt</strong>
</div>
<div className="flex justify-between items-center bg-white p-1.5 rounded border border-slate-200">
<span>Makeup Graduasi</span>
<strong className="text-[#EC167F]">Rp 450rb</strong>
</div>
</div>
</div>
{/* Mobile Bottom Sticky Bar */}
<div className="p-2 bg-slate-50 border-t border-slate-100 flex items-center justify-between gap-1 text-[9px] font-bold">
<span className="text-slate-400">Link Bio & Web MUA</span>
<button
onClick={handleCopyWebsiteLink}
className="px-2.5 py-1 bg-[#EC167F] text-white rounded-lg flex items-center gap-1 cursor-pointer"
>
<Share2 className="w-2.5 h-2.5" />
<span>Bagikan</span>
</button>
</div>
</div>
</div>
)}
{/* C. DRAG & DROP BUILDER SIMULATOR VIEW */}
{previewMode === 'builder' && (
<div className="max-w-4xl mx-auto bg-white rounded-2xl border border-slate-200 shadow-xl p-4 sm:p-6 space-y-6">
<div className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 border-b border-slate-100 pb-4">
<div>
<span className="text-[10px] font-black text-purple-600 uppercase tracking-widest bg-purple-50 px-2 py-0.5 rounded">
NO-CODE EDITOR SIMULATION
</span>
<h3 className="text-lg font-black text-slate-900">Customizer & Builder Website MUA</h3>
</div>
{/* Theme Color Selector */}
<div className="flex items-center gap-2">
<span className="text-xs font-extrabold text-slate-500">Pilih Tema Color:</span>
<div className="flex items-center gap-1.5 bg-slate-100 p-1 rounded-xl">
<button
onClick={() => setSelectedTheme('pink')}
className={`w-6 h-6 rounded-full bg-[#EC167F] border-2 cursor-pointer transition-transform ${selectedTheme === 'pink' ? 'scale-110 border-slate-900' : 'border-transparent'}`}
title="Pink Glamour"
/>
<button
onClick={() => setSelectedTheme('gold')}
className={`w-6 h-6 rounded-full bg-amber-500 border-2 cursor-pointer transition-transform ${selectedTheme === 'gold' ? 'scale-110 border-slate-900' : 'border-transparent'}`}
title="Luxury Gold"
/>
<button
onClick={() => setSelectedTheme('rose')}
className={`w-6 h-6 rounded-full bg-rose-500 border-2 cursor-pointer transition-transform ${selectedTheme === 'rose' ? 'scale-110 border-slate-900' : 'border-transparent'}`}
title="Rose Elegance"
/>
<button
onClick={() => setSelectedTheme('dark')}
className={`w-6 h-6 rounded-full bg-purple-700 border-2 cursor-pointer transition-transform ${selectedTheme === 'dark' ? 'scale-110 border-slate-900' : 'border-transparent'}`}
title="Royal Purple"
/>
</div>
</div>
</div>
{/* Builder Layout Grid */}
<div className="grid grid-cols-1 md:grid-cols-12 gap-6 items-start">
{/* Left Controls (5 cols) */}
<div className="md:col-span-5 space-y-3 bg-slate-50 p-4 rounded-2xl border border-slate-200">
<h4 className="font-black text-slate-900 text-xs flex items-center justify-between">
<span>Komponen & Section Website</span>
<span className="text-[10px] text-slate-400 font-normal">Klik untuk ON/OFF</span>
</h4>
{/* Toggles List */}
<div className="space-y-2 text-xs font-bold text-slate-700">
<div className="flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200">
<span className="flex items-center gap-2">
<Eye className="w-3.5 h-3.5 text-pink-500" />
<span>Profil & Bio Studio</span>
</span>
<input
type="checkbox"
checked={activeSections.profile}
onChange={() => toggleSection('profile')}
className="accent-[#EC167F] w-4 h-4 cursor-pointer"
/>
</div>
<div className="flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200">
<span className="flex items-center gap-2">
<Layers className="w-3.5 h-3.5 text-pink-500" />
<span>Katalog Layanan & Harga</span>
</span>
<input
type="checkbox"
checked={activeSections.services}
onChange={() => toggleSection('services')}
className="accent-[#EC167F] w-4 h-4 cursor-pointer"
/>
</div>
<div className="flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200">
<span className="flex items-center gap-2">
<Camera className="w-3.5 h-3.5 text-pink-500" />
<span>Portofolio Photo/Video</span>
</span>
<input
type="checkbox"
checked={activeSections.portfolio}
onChange={() => toggleSection('portfolio')}
className="accent-[#EC167F] w-4 h-4 cursor-pointer"
/>
</div>
<div className="flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200">
<span className="flex items-center gap-2">
<Star className="w-3.5 h-3.5 text-pink-500" />
<span>Testimoni Pelanggan</span>
</span>
<input
type="checkbox"
checked={activeSections.testimonials}
onChange={() => toggleSection('testimonials')}
className="accent-[#EC167F] w-4 h-4 cursor-pointer"
/>
</div>
<div className="flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200">
<span className="flex items-center gap-2">
<Users className="w-3.5 h-3.5 text-pink-500" />
<span>Tim & Asisten MUA</span>
</span>
<input
type="checkbox"
checked={activeSections.team}
onChange={() => toggleSection('team')}
className="accent-[#EC167F] w-4 h-4 cursor-pointer"
/>
</div>
<div className="flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200">
<span className="flex items-center gap-2">
<Heart className="w-3.5 h-3.5 text-pink-500" />
<span>Paket Wedding & Event</span>
</span>
<input
type="checkbox"
checked={activeSections.wedding}
onChange={() => toggleSection('wedding')}
className="accent-[#EC167F] w-4 h-4 cursor-pointer"
/>
</div>
<div className="flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200">
<span className="flex items-center gap-2">
<Calendar className="w-3.5 h-3.5 text-pink-500" />
<span>Form Booking Online</span>
</span>
<input
type="checkbox"
checked={activeSections.booking}
onChange={() => toggleSection('booking')}
className="accent-[#EC167F] w-4 h-4 cursor-pointer"
/>
</div>
</div>
<div className="pt-2 text-[10px] text-slate-500 italic bg-purple-50 p-2.5 rounded-xl border border-purple-100 flex items-center gap-1.5">
<Zap className="w-3.5 h-3.5 text-purple-600 shrink-0" />
<span>Semua perubahan disimpan otomatis tanpa tombol Save!</span>
</div>
</div>
{/* Right Canvas Live Preview (7 cols) */}
<div className="md:col-span-7 bg-white p-4 rounded-2xl border-2 border-slate-200 space-y-3">
<div className="flex items-center justify-between border-b border-slate-100 pb-2">
<span className="text-xs font-black text-slate-800">Live Preview Canvas</span>
<span className={`text-[10px] font-bold px-2 py-0.5 rounded ${currentTheme.badgeBg}`}>
Tema: {selectedTheme.toUpperCase()}
</span>
</div>
{/* Canvas Inner Sections according to state */}
<div className="space-y-2.5 text-xs">
{activeSections.profile && (
<div className={`p-3 rounded-xl ${currentTheme.heroBg} border ${currentTheme.border} space-y-1 transition-all`}>
<span className={`text-[10px] font-extrabold ${currentTheme.accentText}`}>PROFIL BISNIS</span>
<h5 className="font-extrabold text-slate-900">Glow Bridal MUA Studio</h5>
<p className="text-[11px] text-slate-600">Layanan Make up Profesional untuk Wedding & Graduation</p>
</div>
)}
{activeSections.services && (
<div className="p-3 bg-slate-50 rounded-xl border border-slate-200 space-y-1">
<span className="text-[10px] font-bold text-slate-400">KATALOG LAYANAN (3 Paket)</span>
<div className="flex justify-between font-bold text-[11px]">
<span>Rias Pengantin Akad</span>
<span className={currentTheme.accentText}>Rp 2.500.000</span>
</div>
</div>
)}
{activeSections.portfolio && (
<div className="p-3 bg-slate-50 rounded-xl border border-slate-200 space-y-1">
<span className="text-[10px] font-bold text-slate-400">PORTOFOLIO MAKEUP</span>
<div className="flex gap-2">
<div className="w-10 h-10 rounded bg-pink-200 flex items-center justify-center text-[9px] font-bold">Foto 1</div>
<div className="w-10 h-10 rounded bg-pink-200 flex items-center justify-center text-[9px] font-bold">Foto 2</div>
<div className="w-10 h-10 rounded bg-pink-200 flex items-center justify-center text-[9px] font-bold">Foto 3</div>
</div>
</div>
)}
{activeSections.testimonials && (
<div className="p-3 bg-slate-50 rounded-xl border border-slate-200 space-y-1">
<span className="text-[10px] font-bold text-slate-400">TESTIMONI PELANGGAN</span>
<p className="text-[10px] italic text-slate-600">"Makeup-nya awet banget dari akad pagi sampai resepsi malam!" — Dita (Pengantin)</p>
</div>
)}
{activeSections.team && (
<div className="p-3 bg-slate-50 rounded-xl border border-slate-200 space-y-1">
<span className="text-[10px] font-bold text-slate-400">TIM & SENIOR MUA</span>
<div className="flex items-center gap-2 text-[10px] font-bold text-slate-700">
<span>Anisa (Lead MUA)</span> • <span>Rina (Hair Stylist)</span>
</div>
</div>
)}
{activeSections.booking && (
<div className={`p-3 rounded-xl ${currentTheme.accent} text-white font-bold text-center text-xs flex items-center justify-center gap-2 shadow-sm`}>
<Calendar className="w-3.5 h-3.5" />
<span>Form Reservasi Online (Direct Booking)</span>
</div>
)}
</div>
</div>
</div>
</div>
)}
</div>
</div>
{/* 3. AUTO-SYNC INTEGRATION CALLOUT BANNER */}
<div className="bg-gradient-to-r from-slate-900 via-purple-950 to-slate-900 text-white rounded-3xl p-6 sm:p-8 border border-purple-900/50 shadow-2xl relative overflow-hidden">
<div className="grid grid-cols-1 lg:grid-cols-12 gap-6 items-center">
{/* Left Info (7 cols) */}
<div className="lg:col-span-7 space-y-3 text-left">
<div className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-pink-500/20 text-pink-300 text-[10px] font-extrabold border border-pink-500/30">
<RefreshCw className="w-3 h-3 text-pink-400 animate-spin" />
<span>INTEGRASI AUTO-SYNC SINKRONISASI DUA ARAH</span>
</div>
<h3 className="text-xl sm:text-2xl lg:text-3xl font-black text-white leading-tight">
Update Data di Dashboard, Website <span className="text-pink-400">Otomatis Berubah!</span>
</h3>
<p className="text-xs sm:text-sm text-slate-300 font-medium leading-relaxed">
Tidak perlu pusing edit manual atau bayar web developer lagi. Ketika Anda menambah paket baru, mengubah harga, atau meng-upload foto hasil makeup di MuaKita Dashboard, seluruh data di website publik Anda otomatis diperbarui detik itu juga.
</p>
{/* Sync Modules Checklist */}
<div className="grid grid-cols-2 sm:grid-cols-3 gap-2 pt-2 text-[11px] font-bold text-slate-200">
<div className="flex items-center gap-1.5">
<Check className="w-3.5 h-3.5 text-pink-400 stroke-[3]" />
<span>Katalog & Harga</span>
</div>
<div className="flex items-center gap-1.5">
<Check className="w-3.5 h-3.5 text-pink-400 stroke-[3]" />
<span>Kalender Reservasi</span>
</div>
<div className="flex items-center gap-1.5">
<Check className="w-3.5 h-3.5 text-pink-400 stroke-[3]" />
<span>Portofolio Makeup</span>
</div>
<div className="flex items-center gap-1.5">
<Check className="w-3.5 h-3.5 text-pink-400 stroke-[3]" />
<span>Testimoni Klien</span>
</div>
<div className="flex items-center gap-1.5">
<Check className="w-3.5 h-3.5 text-pink-400 stroke-[3]" />
<span>Notifikasi WhatsApp</span>
</div>
<div className="flex items-center gap-1.5">
<Check className="w-3.5 h-3.5 text-pink-400 stroke-[3]" />
<span>Metode Pembayaran</span>
</div>
</div>
</div>
{/* Right Visual Flow Diagram (5 cols) */}
<div className="lg:col-span-5 bg-slate-800/80 p-4 rounded-2xl border border-slate-700 space-y-3 text-center">
<span className="text-[10px] font-bold text-slate-400 uppercase tracking-widest block">
ALUR KERJA OTOMATIS
</span>
<div className="flex items-center justify-between text-xs font-extrabold gap-2">
<div className="bg-slate-900 p-2.5 rounded-xl border border-pink-500/30 text-pink-300 w-1/3 text-center space-y-1">
<Layout className="w-4 h-4 mx-auto text-pink-400" />
<span className="block text-[10px]">Dashboard MuaKita</span>
</div>
<div className="flex-1 flex flex-col items-center">
<span className="text-[9px] font-mono text-emerald-400 font-bold">1 Detik Sync</span>
<div className="w-full h-0.5 bg-gradient-to-r from-pink-500 to-emerald-400 rounded-full" />
</div>
<div className="bg-slate-900 p-2.5 rounded-xl border border-emerald-500/30 text-emerald-300 w-1/3 text-center space-y-1">
<Globe className="w-4 h-4 mx-auto text-emerald-400" />
<span className="block text-[10px]">Website Publik MUA</span>
</div>
</div>
<div className="bg-slate-900/90 p-2 rounded-xl text-[10px] text-slate-400 font-mono text-left space-y-0.5">
<span className="text-emerald-400 font-bold">✓ Event Webhook Active</span>
<p>Status: All 7 modules synchronized and cached on CDN.</p>
</div>
</div>
</div>
</div>
{/* 4. 9 CORE CAPABILITIES ICON CARDS */}
<div className="space-y-8">
<div className="text-center max-w-2xl mx-auto space-y-2">
<span className="text-[11px] font-black uppercase tracking-widest text-[#EC167F] block">
LENGKAP & DIDESAIN KHUSUS MUA
</span>
<h3 className="text-2xl sm:text-3xl font-black text-slate-900 tracking-tight">
Segala yang Anda Butuhkan dalam <span className="text-[#EC167F]">Satu Website MUA</span>
</h3>
<p className="text-xs text-slate-500 font-medium">
Dirancang khusus untuk memenuhi standar industri kecantikan, bridal studio, dan MUA profesional.
</p>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
{/* Capability 1 */}
<div className="bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3">
<div className="w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center">
<Globe className="w-5 h-5" />
</div>
<h4 className="font-extrabold text-slate-900 text-sm">Profil Bisnis MUA Professional</h4>
<p className="text-xs text-slate-500 leading-relaxed font-medium">
Tampilkan nama studio, bio branding, kontak resmi, alamat lengkap, lokasi Google Maps, dan jam operasional dengan tampilan eksklusif.
</p>
</div>
{/* Capability 2 */}
<div className="bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3">
<div className="w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center">
<Layers className="w-5 h-5" />
</div>
<h4 className="font-extrabold text-slate-900 text-sm">Katalog Layanan & Harga Transparan</h4>
<p className="text-xs text-slate-500 leading-relaxed font-medium">
Sajikan daftar layanan (Bridal, Engagement, Graduation, Party) lengkap dengan rincian harga, estimasi durasi, dan item yang didapatkan.
</p>
</div>
{/* Capability 3 */}
<div className="bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3">
<div className="w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center">
<Camera className="w-5 h-5" />
</div>
<h4 className="font-extrabold text-slate-900 text-sm">Portofolio Foto & Video HD</h4>
<p className="text-xs text-slate-500 leading-relaxed font-medium">
Showcase galeri foto sebelum-sesudah (Before-After) dan video riasan beresolusi tinggi yang membuat calon pengantin terpukau.
</p>
</div>
{/* Capability 4 */}
<div className="bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3">
<div className="w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center">
<Star className="w-5 h-5" />
</div>
<h4 className="font-extrabold text-slate-900 text-sm">Testimoni & Rating Klien</h4>
<p className="text-xs text-slate-500 leading-relaxed font-medium">
Tampilkan ulasan nyata dan bintang kepuasan dari para pengantin terdahulu untuk membangun kepercayaan calon klien baru.
</p>
</div>
{/* Capability 5 */}
<div className="bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3">
<div className="w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center">
<Users className="w-5 h-5" />
</div>
<h4 className="font-extrabold text-slate-900 text-sm">Informasi Tim & Senior MUA</h4>
<p className="text-xs text-slate-500 leading-relaxed font-medium">
Perkenalkan tim makeup artist, hair stylist, dan perias asisten lengkap dengan keahlian masing-masing (opsional untuk studio/tim).
</p>
</div>
{/* Capability 6 */}
<div className="bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3">
<div className="w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center">
<Heart className="w-5 h-5" />
</div>
<h4 className="font-extrabold text-slate-900 text-sm">Paket Wedding & Event Spesial</h4>
<p className="text-xs text-slate-500 leading-relaxed font-medium">
Rincian paket rias pengantin lengkap dengan rundown acara, fasilitas gaun/aksesoris, dan opsi custom request untuk event besar.
</p>
</div>
{/* Capability 7 */}
<div className="bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3">
<div className="w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center">
<Calendar className="w-5 h-5" />
</div>
<h4 className="font-extrabold text-slate-900 text-sm">Form Reservasi Direct Online 24/7</h4>
<p className="text-xs text-slate-500 leading-relaxed font-medium">
Menerima booking otomatis kapan saja tanpa perlu balas chat satu per satu. Slot jadwal langsung terkunci di kalender Anda.
</p>
</div>
{/* Capability 8 */}
<div className="bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3">
<div className="w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center">
<Share2 className="w-5 h-5" />
</div>
<h4 className="font-extrabold text-slate-900 text-sm">Bagikan ke Instagram, TikTok, & WA</h4>
<p className="text-xs text-slate-500 leading-relaxed font-medium">
Link website cantik dan fleksibel untuk dicantumkan di Bio Instagram, TikTok Linktree, status WhatsApp, hingga QR Code kartu nama.
</p>
</div>
{/* Capability 9 */}
<div className="bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3">
<div className="w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center">
<ShieldCheck className="w-5 h-5" />
</div>
<h4 className="font-extrabold text-slate-900 text-sm">Custom Domain (.com / .id)</h4>
<p className="text-xs text-slate-500 leading-relaxed font-medium">
Gunakan nama domain sendiri seperti <strong className="text-slate-900">www.namastudiomua.com</strong> pada paket pilihan untuk kesan brand super premium.
</p>
</div>
</div>
</div>
{/* 5. STRONG CALL TO ACTION BAR */}
<div className="bg-gradient-to-r from-pink-500 via-[#EC167F] to-rose-600 rounded-3xl p-6 sm:p-10 text-white shadow-2xl relative overflow-hidden flex flex-col md:flex-row items-center justify-between gap-6 text-left">
<div className="space-y-2 max-w-xl">
<span className="px-3 py-1 rounded-full bg-white/20 text-white text-[10px] font-black uppercase tracking-wider">
GRATIS TRIAL 14 HARI
</span>
<h3 className="text-2xl sm:text-3xl font-black tracking-tight leading-tight">
Siap Memiliki Website MUA Profesional Pertama Anda?
</h3>
<p className="text-xs sm:text-sm text-pink-100 font-medium leading-relaxed">
Buat website MUA Anda hanya dalam 3 menit. Tanpa butuh kartu kredit, tanpa perlu sewa web developer mahal.
</p>
</div>
<div className="flex flex-col sm:flex-row items-center gap-3 shrink-0 w-full md:w-auto">
<button
onClick={onOpenLogin}
className="w-full sm:w-auto px-6 py-3.5 bg-white hover:bg-pink-50 text-[#EC167F] rounded-xl text-xs font-black shadow-lg hover:shadow-xl transition-all flex items-center justify-center gap-2 cursor-pointer group"
>
<span>Buat Website MUA Anda Sekarang</span>
<ArrowRight className="w-4 h-4 group-hover:translate-x-1 transition-transform" />
</button>
<button
onClick={onOpenDemo}
className="w-full sm:w-auto px-5 py-3.5 bg-black/20 hover:bg-black/30 text-white border border-white/30 rounded-xl text-xs font-bold transition-colors cursor-pointer flex items-center justify-center gap-2"
>
<Play className="w-3.5 h-3.5 fill-white" />
<span>Lihat Template Website</span>
</button>
</div>
</div>
</div>
</section>
);
};