From f6a01a711f7adb93588dd45d405f33b41ba148e8 Mon Sep 17 00:00:00 2001 From: juancho Date: Sat, 14 Feb 2026 00:46:52 +0000 Subject: [PATCH] =?UTF-8?q?Actualizaci=C3=B3n=20a=20pagina=20est=C3=A1tica?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 541 +++++++++++++++++++++++++++++------------------------ 1 file changed, 296 insertions(+), 245 deletions(-) diff --git a/index.html b/index.html index 9fed8c3..e2ca940 100644 --- a/index.html +++ b/index.html @@ -1,265 +1,316 @@ -import React, { useState, useEffect } from 'react'; -import { User, MessageSquare, Palette, Smartphone, X, ChevronRight, ExternalLink } from 'lucide-react'; + + + + + + Telegram Mini App + + + + + + + + + + -// --- COMPONENTE PRINCIPAL --- -export default function App() { - const [userData, setUserData] = useState(null); - const [platformData, setPlatformData] = useState(null); - const [themeData, setThemeData] = useState(null); - const [chatData, setChatData] = useState(null); - - // Estado para el Modal - const [selectedCategory, setSelectedCategory] = useState(null); + + - useEffect(() => { - const tg = window.Telegram?.WebApp; + + + +
- if (tg && tg.initDataUnsafe && Object.keys(tg.initDataUnsafe).length > 0) { - // --- ENTORNO REAL DE TELEGRAM --- - tg.ready(); - tg.expand(); - - // Configurar colores de la barra de estado de Telegram - if (tg.setHeaderColor) tg.setHeaderColor('#3d0091'); - if (tg.setBackgroundColor) tg.setBackgroundColor('#121212'); + + + + \ No newline at end of file