import React, { useState, useEffect } from 'react'; import { Check, Server, Zap, Shield, Phone, Copy, ChevronDown } from 'lucide-react'; export default function HostingWebsite() { const [activeTab, setActiveTab] = useState('whm'); const [selectedPlan, setSelectedPlan] = useState(null); const [showPaymentModal, setShowPaymentModal] = useState(false); const [copySuccess, setCopySuccess] = useState(null); const [scrolled, setScrolled] = useState(false); useEffect(() => { const handleScroll = () => { setScrolled(window.scrollY > 50); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); const plans = { whm: [ { name: 'WHM Mini', price: '15.000', color: 'from-blue-600 to-cyan-500', features: [ 'Unlimited Accounts', 'Unlimited Disk Space', 'Unlimited Bandwidth', 'Free SSL Certificate', 'cPanel Control Panel', 'Email Accounts', 'Daily Backups', 'Priority Support 24/7' ], popular: false }, { name: 'WHM Medium', price: '25.000', color: 'from-purple-600 to-pink-500', features: [ 'Unlimited Accounts', 'Unlimited Disk Space', 'Unlimited Bandwidth', 'Free SSL Certificate', 'Advanced cPanel Features', 'Email Marketing Tools', 'Daily Backups + Cloud Backup', 'Priority Support 24/7', 'Free Domain Migration', 'Advanced Security' ], popular: true }, { name: 'WHM Extra', price: '30.000', color: 'from-emerald-600 to-teal-500', features: [ 'Unlimited Accounts', 'Unlimited Disk Space', 'Unlimited Bandwidth', 'Free SSL + Wildcard SSL', 'Full cPanel Control Panel', 'Email Marketing + Automation', 'Daily + Hourly Backups', 'Premium Support 24/7/365', 'Free Domain Migration', 'Advanced Security + DDoS Protection' ], popular: false }, { name: 'WHM Super', price: '35.000', color: 'from-orange-600 to-red-500', features: [ 'Unlimited Accounts', 'Unlimited Disk Space', 'Unlimited Bandwidth', 'Free SSL + Wildcard SSL + Comodo', 'Premium cPanel + WHM Full Access', 'Email Marketing + API Access', 'Real-time Backups', 'VIP Support 24/7/365', 'Free Domain Migration', 'Enterprise Security Suite', 'CDN Integration' ], popular: false } ], mwhm: [ { name: 'MWHM Mini', price: '40.000', color: 'from-indigo-600 to-blue-500', features: [ 'Managed WHM Service', 'Unlimited Accounts', 'Unlimited Disk Space', 'Unlimited Bandwidth', 'Free SSL Certificate', 'Full Server Management', 'Automatic Updates & Patches', 'Server Monitoring 24/7', 'Daily Backups', 'Expert Support' ], popular: false }, { name: 'MWHM Medium', price: '50.000', color: 'from-violet-600 to-purple-500', features: [ 'Managed WHM Service', 'Unlimited Accounts', 'Unlimited Disk Space', 'Unlimited Bandwidth', 'Free SSL + Wildcard SSL', 'Full Server Management', 'Automatic Updates & Security Patches', 'Real-time Server Monitoring', 'Daily + Hourly Backups', 'Performance Optimization', 'Expert Support with SLA' ], popular: true }, { name: 'MWHM Extra', price: '65.000', color: 'from-rose-600 to-pink-500', features: [ 'Managed WHM Service Premium', 'Unlimited Accounts', 'Unlimited Disk Space', 'Unlimited Bandwidth', 'Free SSL + Wildcard SSL + EV SSL', 'Full Server Management + Optimization', 'Automatic Updates & Security Patches', 'Real-time Server Monitoring + Alerts', 'Real-time Backups + Offsite', 'Advanced Performance Tuning', 'Enterprise Support 24/7/365', 'CDN Integration', 'WAF Protection' ], popular: false } ] }; const paymentMethods = [ { name: 'Dana', number: '085705151602', icon: '💳', type: 'phone' }, { name: 'QRIS', number: 'Scan QRIS Code di bawah', icon: '📱', type: 'qris' } ]; const copyToClipboard = (text, method) => { navigator.clipboard.writeText(text); setCopySuccess(method); setTimeout(() => setCopySuccess(null), 2000); }; const renderPlans = (type) => { return plans[type].map((plan, idx) => (
{/* Gradient Background */}
{plan.popular && (
Paling Populer ⭐
)}

{plan.name}

Rp{plan.price} /bulan
{plan.features.map((feature, i) => (
{feature}
))}
)); }; return (
{/* Animated Background */}
{/* Navigation */} {/* Hero Section */}

Hosting Server
Kelas Enterprise

Solusi hosting terpercaya dengan teknologi terdepan, uptime 99.9%, dan support 24/7 siap membantu Anda

{/* Features Section */}
{[ { icon: , title: 'Super Cepat', desc: '99.9% Uptime Guarantee' }, { icon: , title: 'Aman', desc: 'SSL & DDoS Protection' }, { icon: , title: 'Scalable', desc: 'Grow tanpa khawatir' }, { icon: , title: 'Support 24/7', desc: 'Bantuan kapan saja' } ].map((item, idx) => (
{item.icon}

{item.title}

{item.desc}

))}
{/* Pricing Section */}

Paket Hosting Premium

Pilih paket yang sesuai dengan kebutuhan Anda

{/* Tab Buttons */}
{['whm', 'mwhm'].map((tab) => ( ))}
{/* Plans Grid */}
{renderPlans(activeTab)}
{/* Payment Modal */} {showPaymentModal && (

{selectedPlan?.name}

Harga Bulanan

Rp{selectedPlan?.price}

Metode Pembayaran

{/* Dana Payment */}
💳

Dana Transfer

Transfer via Dana App

Nomor Dana

085705151602

{/* QRIS Payment */}
📱

QRIS Payment

Scan QRIS dengan mobile banking Anda

{/* QRIS Mock */}

QRIS Code

{[...Array(16)].map((_, i) => (
0.5 ? 'bg-white' : 'bg-transparent' }`} /> ))}

Rp{selectedPlan?.price}

{/* Features List */}

Fitur Included

{selectedPlan?.features.slice(0, 6).map((feature, i) => (
{feature}
))}
{/* Action Buttons */}
)} {/* Footer */}
); }