import React, { useState } from "react"; import { ScreenId, AppState } from "../types"; import { Volume2, ArrowRight, X, ShieldAlert, Landmark, Share2, Headset, Eye, RefreshCw } from "lucide-react"; import { BrandLogo } from "./BrandLogo"; import { translations } from "../lib/translations"; import electronicLogo from "../assets/images/home-categories/home-category-electronic.png"; import sportsLogo from "../assets/images/home-categories/home-category-sports.png"; import lotteryLogo from "../assets/images/home-categories/home-category-lottery.png"; import fishingLogo from "../assets/images/home-categories/home-category-fishing.png"; import markSixLogo from "../assets/images/home-categories/home-category-mark-six.png"; import moviesLogo from "../assets/images/home-categories/home-category-movies.png"; import liveLogo from "../assets/images/home-categories/home-category-live.png"; interface HomeViewProps { state: AppState; onNavigate: (screen: ScreenId) => void; onSetState: (updater: (prev: AppState) => AppState) => void; } const CategoryLogo: React.FC<{ src: string; alt: string; className?: string }> = ({ src, alt, className = "" }) => ( {alt} ); export const HomeView: React.FC = ({ state, onNavigate, onSetState }) => { const [showInstallBanner, setShowInstallBanner] = useState(true); const t = translations[state.language || "zh"]; const displayUsername = state.username.length > 6 ? `${state.username.slice(0, 5)}...` : state.username; return (
{/* Hero Section */}
Shengda casino lobby

{t.entityBacking}

{t.realPersonVideo}

{state.language === "zh" ? "认证:" : "Certified:"} SDYL.PH
{/* User Stats / Actions Bar */}
{state.isLoggedIn ? (
onNavigate(ScreenId.PROFILE)} className="w-[43%] pr-3 border-r border-[#414755]/60 flex flex-col cursor-pointer group" >
{displayUsername} VIP {state.vipLevel}
{state.balance.toFixed(2)}
) : (
onNavigate(ScreenId.LOGIN)} className="flex flex-col gap-1 cursor-pointer group" >

{state.language === "zh" ? "您还未登录" : "You are guest"}

{state.language === "zh" ? "登录/注册后查看 >" : "Login/Register to view >"}

)}
onNavigate(ScreenId.FINANCE)} className="flex flex-col items-center gap-1 group cursor-pointer" >
{state.language === "zh" ? "财务" : "Finance"}
onNavigate(ScreenId.REVENUE_DASHBOARD)} className="flex flex-col items-center gap-1 group cursor-pointer" >
{state.language === "zh" ? "我的收入" : "Agency"}
onNavigate(ScreenId.CUSTOMER_SUPPORT)} className="flex flex-col items-center gap-1 group cursor-pointer" >
{state.language === "zh" ? "在线客服" : "Support"}
{/* Marquee Announcement */}
来到 盛大娱乐城 游戏平台 — 在这里,您可以畅玩最热门的棋牌、电子、捕鱼、真人视讯、体育竞技等海量精彩游戏! 业内公平背书,充提秒级到账,祝您好运连连!
{/* Main Categories Grid (Asymmetric Bento) */}
{/* Large Feature: Live Casino (视讯) */}
onNavigate(ScreenId.GAME_CATEGORIES)} className="row-span-2 relative rounded-2xl overflow-hidden bg-[#071726] border border-[#afc6ff]/10 shadow-[0_8px_24px_rgba(0,0,0,0.5)] group active:scale-[0.98] transition-all cursor-pointer h-[190px]" > Live Casino {/* Elegant overlay with bottom glassmorphism badge */}

视讯

{/* Lottery (彩票) */}
onNavigate(ScreenId.GAME_CENTER)} className="relative rounded-2xl overflow-hidden bg-[#071726] border border-[#afc6ff]/10 shadow-[0_4px_16px_rgba(0,0,0,0.4)] group active:scale-[0.98] transition-all cursor-pointer h-[90px]" > Lottery {/* Custom interactive Gold/Glass Lottery Draw Machine (抽奖滚筒) SVG element */} {/* The gold circular rail loop surrounding the drawing machine */} {/* Pedestal Stand (Base) */} {/* Central spinning axle bearing hub */} {/* Hexagonal Gold Cage Drum */} {/* Inner wires crossing to form the gold wire cage */} {/* Bouncing colorful lottery balls inside the spinning drum */} {/* Ball 1: Gold ball bottom left */} 8 {/* Ball 2: Blue ball top right */} 6 {/* Ball 3: Gold ball at the center bottom */} 2 {/* The Gold Ball Slide release chute track going down to left */} {/* Gold Ball currently rolling down the tray (number 28) */} 28 {/* Tiny shiny stars */} {/* Elegant overlay with floating badge */}

彩票

{/* Slots (电子) */}
onNavigate(ScreenId.PG_SOFT_GAMES)} className="relative rounded-2xl overflow-hidden bg-[#071726] border border-[#afc6ff]/10 shadow-[0_4px_16px_rgba(0,0,0,0.4)] group active:scale-[0.98] transition-all cursor-pointer h-[90px]" > Slots {/* Custom interactive Golden Slot Machine (777 老虎机) SVG element */} {/* Slot machine housing center-aligned on the right */} {/* Gold cabinet border */} {/* Neon header */} {/* Twinkling mini bulb ticks */} 777 {/* Main Reels Screen */} {/* Reels divides */} {/* Classic 7-7-7 Jackpot Combination */} 7 7 7 {/* Coin output slot */} {/* Lever Arm & Ruby lever sphere */} {/* Stars decorations */} {/* Elegant overlay with floating badge */}

电子

{/* Small 4-column Grid */}
onNavigate(ScreenId.GAME_RECOMMENDATIONS)} className="flex flex-col items-center justify-center aspect-square gap-1.5 p-1 rounded-xl bg-[#0b2135]/65 border border-white/5 active:scale-95 hover:border-amber-400/30 transition-all cursor-pointer" > {/* Custom Interactive Gold-Sapphire Soccer Ball (体育) SVG */} {/* Gold pentagons/hexagons panel outlines */} {/* Specular gloss highlight */} 体育
onNavigate(ScreenId.PROVIDERS)} className="flex flex-col items-center justify-center aspect-square gap-1.5 p-1 rounded-xl bg-[#0b2135]/65 border border-white/5 active:scale-95 hover:border-amber-400/30 transition-all cursor-pointer" > {/* Custom Interactive Gold Shark popping out of waves (捕鱼) SVG */} {/* Splashing Waves */} {/* Golden Shark leaping */} 捕鱼
onNavigate(ScreenId.ANNOUNCEMENTS)} className="flex flex-col items-center justify-center aspect-square gap-1.5 p-1 rounded-xl bg-[#0b2135]/65 border border-white/5 active:scale-95 hover:border-amber-400/30 transition-all cursor-pointer" > {/* Custom Interactive Crowned Dolphin and Mark Six lucky balls (香港六合彩) SVG */} {/* Crowned Dolphin */} {/* Royal Crown */} {/* Question mark on whale body */} {/* Floating numbered spheres: 2, 9, 9 */} 2 9 9 香港六合彩
onNavigate(ScreenId.GAME_CENTER)} className="flex flex-col items-center justify-center aspect-square gap-1.5 p-1 rounded-xl bg-[#0b2135]/65 border border-white/5 active:scale-95 hover:border-amber-400/30 transition-all cursor-pointer" > {/* Custom Interactive Movie Film Clapperboard (影视) SVG */} {/* Clapper board upper bars */} {/* Hinged arm open! */} {/* Play symbol on clapperboard body */} 影视
{/* Install Banner */} {showInstallBanner && (
添加 盛大娱乐城 到手机主屏幕
setShowInstallBanner(false)} className="text-[#c1c6d7] w-5 h-5 cursor-pointer hover:text-white" />
)} {/* Floating Recharge Access FAB */}
{/* Bottom Nav Bar */}
); };