import { useState, useEffect } from 'react';
import { ShoppingCart, ArrowRight, Menu, X, Plus, Info, Zap, Globe, Share2, Instagram, ChevronRight, TrendingUp, Heart, ShoppingBag } from 'lucide-react';
export default function HypeTheme({ posts, categories }: { posts?: any[], categories?: any[] }) {
const handleSimulatedAction = (e: React.MouseEvent | React.FormEvent, msg: string) => {
e.preventDefault();
window.alert(`[SaaS Preview] Ação simulada: ${msg}\n\nEsta funcionalidade estará ativa após a publicação do seu ecommerce.`);
};
const [view, setView] = useState<'home' | 'product'>('home');
const [cartOpen, setCartOpen] = useState(false);
const [timeLeft, setTimeLeft] = useState({ h: 23, m: 59, s: 59 });
useEffect(() => {
const timer = setInterval(() => {
setTimeLeft(prev => {
if (prev.s > 0) return { ...prev, s: prev.s - 1 };
if (prev.m > 0) return { h: prev.h, m: prev.m - 1, s: 59 };
if (prev.h > 0) return { h: prev.h - 1, m: 59, s: 59 };
return prev;
});
}, 1000);
return () => clearInterval(timer);
}, []);
useEffect(() => {
window.scrollTo(0, 0);
}, [view]);
const products = [
{ id: 1, name: "OSMIUM PUFFER JACKET", price: "$380.00", image: "https://images.unsplash.com/photo-1551028719-00167b16eac5?auto=format&fit=crop&q=80&w=1200" },
{ id: 2, name: "TACTICAL CARGO PANTS", price: "$145.00", image: "https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&q=80&w=800" },
{ id: 3, name: "HEAVYWEIGHT HOODIE", price: "$120.00", image: "https://images.unsplash.com/photo-1556821840-3a63f95609a7?auto=format&fit=crop&q=80&w=800" },
{ id: 4, name: "COMBAT BOOTS HT-1", price: "$290.00", image: "https://images.unsplash.com/photo-1608256246200-53e635b5b65f?auto=format&fit=crop&q=80&w=800" },
];
return (
{/* Dynamic Marquee Bar */}
{[1,2,3,4].map(i => (
⚡ NEXT DROP IN: {String(timeLeft.h).padStart(2,'0')}:{String(timeLeft.m).padStart(2,'0')}:{String(timeLeft.s).padStart(2,'0')}
NO RESTOCKS. NO REFUNDS. ALL SALES FINAL.
))}
{/* Brutalist Navigation */}
setCartOpen(true)} className="bg-black text-white px-6 md:px-10 py-3 md:py-4 font-black uppercase tracking-widest text-[10px] md:text-xs hover:bg-[#ff0000] transition-colors flex items-center gap-3">
CART 1
{view === 'home' ? (
{/* Section 1: Split Hero */}
Drop_ID: 04.26_X
{products[0].name.split(' ')[0]} {products[0].name.split(' ').slice(1).join(' ')}
Blindagem térmica de alta performance para o caos urbano. Resistência extrema. Edição absoluta.
setView('product')} className="bg-[#ff0000] text-white border-4 border-black px-12 py-6 font-black uppercase tracking-widest text-sm shadow-[8px_8px_0_0_black] hover:translate-x-1 hover:translate-y-1 hover:shadow-none transition-all inline-flex items-center justify-center gap-4">
GET_ACCESS
LOOKBOOK
CORE_COLLECTION
{/* Section 2: Product Grid */}
LATEST_DROPS
View Archive
{products.map((p, idx) => (
setView('product')}>
Authorized_Asset // Protocol_Verified
Drop_0{idx+1}
2026_COLLECTION
{p.name}
))}
{/* Section 3: High Intensity CTA */}
THE_SYSTEM_IS_LIVE
Junte-se à rede de elite. Receba alertas via SMS 15 minutos antes de cada drop. Sem spam. Apenas hardware.
AUTHORIZE
) : (
/* --- PRODUCT DETAIL VIEW --- */
Featured_Asset
{[1,2,3,4].map(i => (
))}
Asset_Code: OS_PUFF_V4
{products[0].name}
{products[0].price}
DROP_MANIFESTO
Projetado para resistir ao vácuo urbano. Casca exterior em nylon ripstop 100% à prova d'água com preenchimento sintético de alta densidade. Hardware de metal pesado e branding minimalista de alto contraste.
Material Matrix
RIPSTOP // SYNTH_DOWN
Temp_Rating
-20°C // ACTIVE
Select_Size
{['S', 'M', 'L', 'XL'].map(s => (
{s}
))}
setCartOpen(true)} className="w-full bg-[#ff0000] text-white border-4 border-black py-8 text-3xl font-black uppercase italic tracking-tighter shadow-[12px_12px_0_0_black] hover:translate-x-2 hover:translate-y-2 hover:shadow-none transition-all flex justify-center items-center gap-6">
ACQUIRE_ASSET
{/* Section: Similar Assets */}
{view === 'product' && (
SIMILAR_ASSETS // PROTOCOL
{products.slice(1).map((p) => (
setView('product')}>
{p.name}
{p.price}
))}
)}
)}
{/* Massive Brutalist Footer */}
HYPEBEAST
ESTABELECENDO O PROTOCOLO DE ESTILO URBANO DESDE 2026. SEM DESCULPAS. SEM RETROCESSOS.
handleSimulatedAction(e, 'Instagram')} className="w-16 h-16 border-4 border-white/20 flex items-center justify-center hover:bg-[#ff0000] hover:border-[#ff0000] transition-all">
handleSimulatedAction(e, 'Site')} className="w-16 h-16 border-4 border-white/20 flex items-center justify-center hover:bg-[#ff0000] hover:border-[#ff0000] transition-all">
handleSimulatedAction(e, 'Share')} className="w-16 h-16 border-4 border-white/20 flex items-center justify-center hover:bg-[#ff0000] hover:border-[#ff0000] transition-all">
© {new Date().getFullYear()} HYPEBEAST_OPERATIONS. DECODED BY AUTOBLOG.
{/* Brutalist Cart Sidebar */}
{cartOpen && (
setCartOpen(false)}>
BUFFER_01
setCartOpen(false)} className="hover:text-[#ff0000] transition-all">
{products[0].name}
Protocol: OS_PUFF_V4 | Size: M
-
01
+
{products[0].price}
TOTAL_VAL
{products[0].price}
CHECKOUT_SYNC
)}
);
}