diff --git a/pages/apps/aurea/index.jsx b/pages/apps/aurea/index.jsx new file mode 100644 index 0000000..fb3ff67 --- /dev/null +++ b/pages/apps/aurea/index.jsx @@ -0,0 +1,11 @@ +export default function Aurea() { + return ( +
+
👑
+

Aurea

+

O Império Começa Aqui

+

Simulador de vida onde cada escolha te leva mais perto da riqueza. Construa impérios, domine o mercado.

+ Em Breve +
+ ) +} diff --git a/pages/apps/expedicao/index.jsx b/pages/apps/expedicao/index.jsx new file mode 100644 index 0000000..c1489bb --- /dev/null +++ b/pages/apps/expedicao/index.jsx @@ -0,0 +1,11 @@ +export default function ExpedicaoGold() { + return ( +
+
🗺️
+

Expedição Gold

+

Conquiste o Ouro do Mundo

+

Expedições terrestres, marítimas, espaciais e espirituais. Cada jornada é única. Cada conquista, sua.

+ Em Breve no 1000Apps +
+ ) +} diff --git a/pages/apps/humancity/index.jsx b/pages/apps/humancity/index.jsx new file mode 100644 index 0000000..a084cf6 --- /dev/null +++ b/pages/apps/humancity/index.jsx @@ -0,0 +1,11 @@ +export default function HumanCity() { + return ( +
+
🏙️
+

Human City

+

Simule. Construa. Viva.

+

Simulação de vida estilo The Sims. Crie personagens, construa cidades, escreva sua história.

+ Em Desenvolvimento +
+ ) +} diff --git a/pages/apps/terraverse/index.jsx b/pages/apps/terraverse/index.jsx new file mode 100644 index 0000000..bf8b047 --- /dev/null +++ b/pages/apps/terraverse/index.jsx @@ -0,0 +1,11 @@ +export default function TerraVerse() { + return ( +
+
🌍
+

TerraVerse

+

O Novo Mundo te Espera

+

Game de realidade aumentada que vai revolucionar como você explora, conquista e monetiza o mundo real.

+ Em Breve +
+ ) +} diff --git a/pages/apps/tictactoe/index.jsx b/pages/apps/tictactoe/index.jsx new file mode 100644 index 0000000..4f54a6c --- /dev/null +++ b/pages/apps/tictactoe/index.jsx @@ -0,0 +1 @@ +$(cat /tmp/tictactoe-src/pages/index.js) diff --git a/pages/dashboard.jsx.bak b/pages/dashboard.jsx.bak new file mode 100644 index 0000000..f3c50ef --- /dev/null +++ b/pages/dashboard.jsx.bak @@ -0,0 +1,175 @@ +import { useSession, signOut } from "next-auth/react" +import { useRouter } from "next/router" +import { useState, useEffect } from "react" +import AvatarSelector from "../components/AvatarSelector" +import CategoryMenu from "../components/CategoryMenu" + +// Apps organizados por categoria +const ALL_APPS = [ + // Produtividade + { id: 1, name: "Tendências Semanais", desc: "Notícias em alta • Top 100", path: "/apps/trendsnews", icon: "📈", category: "produtividade", favorite: false }, + { id: 2, name: "Conversor", desc: "Conversão de unidades", path: "/apps/converter", icon: "🔄", category: "produtividade", favorite: false }, + { id: 3, name: "Calculadora", desc: "Calculos rápidos", path: "/apps/calculator", icon: "🧮", category: "produtividade", favorite: false }, + + // Utilidades + { id: 4, name: "Relógio", desc: "Relógio mundial", path: "/apps/clock", icon: "⏰", category: "utilidades", favorite: false }, + { id: 5, name: "Gerador Senhas", desc: "Senhas seguras", path: "/apps/password-generator", icon: "🔐", category: "utilidades", favorite: false }, + { id: 6, name: "QR Code", desc: "Gerador QR", path: "/apps/qrcode", icon: "📱", category: "utilidades", favorite: false }, + { id: 7, name: "Cronômetro", desc: "Tempo e alarmes", path: "/apps/timer", icon: "⏱️", category: "utilidades", favorite: false }, + + // Games + { id: 8, name: "Jogo da Velha", desc: "Jogo da velha clássico 2 jogadores", path: "/apps/tictactoe", icon: "⭕", category: "games", favorite: false }, + { id: 14, name: "Expedição Gold", path: "/apps/expedicao", icon: "🗺️", category: "games", desc: "Expedições para conquistar ouro" }, + { id: 15, name: "Human City", path: "/apps/humancity", icon: "🏙️", category: "games", desc: "Simulação de cidade estilo Sims" }, + { id: 16, name: "Aurea", path: "/apps/aurea", icon: "👑", category: "games", desc: "Simulador de vida e riqueza" }, + { id: 17, name: "TerraVerse", path: "/apps/terraverse", icon: "🌍", category: "games", desc: "Game de realidade aumentada" }, + + // Ferramentas + { id: 9, name: "Editor Texto", desc: "Texto simples", path: "/apps/text-editor", icon: "📝", category: "ferramentas", favorite: false }, + { id: 10, name: "Conversor Moedas", desc: "Câmbio em tempo real", path: "/apps/currency", icon: "💱", category: "ferramentas", favorite: false }, + + // Educação + { id: 11, name: "Dicionário", desc: "Significados", path: "/apps/dictionary", icon: "📖", category: "educacao", favorite: false }, + { id: 12, name: "Tradutor", desc: "Multi-idiomas", path: "/apps/translator", icon: "🌐", category: "educacao", favorite: false }, + + // Esportes + { id: 13, name: "Copa do Mundo 2026", desc: "Tabela, grupos, notícias", path: "/apps/worldcup2026", icon: "⚽", category: "esportes", favorite: false } +] + +export default function Dashboard() { + const { data: session } = useSession() + const router = useRouter() + const [selectedAvatar, setSelectedAvatar] = useState("😀") + const [selectedCategory, setSelectedCategory] = useState("all") + const [favorites, setFavorites] = useState([]) + const [apps, setApps] = useState(ALL_APPS) + + // Carregar favoritos do localStorage + useEffect(() => { + const savedFavorites = localStorage.getItem("favorites") + const savedAvatar = localStorage.getItem("selectedAvatar") + if (savedFavorites) { + setFavorites(JSON.parse(savedFavorites)) + } + if (savedAvatar) { + setSelectedAvatar(savedAvatar) + } + }, []) + + // Salvar favoritos no localStorage + useEffect(() => { + localStorage.setItem("favorites", JSON.stringify(favorites)) + }, [favorites]) + + // Salvar avatar no localStorage + useEffect(() => { + localStorage.setItem("selectedAvatar", selectedAvatar) + }, [selectedAvatar]) + + const toggleFavorite = (appId) => { + setFavorites(prev => + prev.includes(appId) + ? prev.filter(id => id !== appId) + : [...prev, appId] + ) + } + + // Filtrar apps + const filteredApps = selectedCategory === "all" + ? apps + : apps.filter(app => app.category === selectedCategory) + + // Apps favoritos + const favoriteApps = apps.filter(app => favorites.includes(app.id)) + + return ( +
+ {/* Header */} + + +
+ {/* Favoritos Section */} + {favorites.length > 0 && ( +
+

+ Favoritos +

+
+ {favoriteApps.map(app => ( + + ))} +
+
+ )} + + {/* Category Filter */} + + + {/* Apps Grid */} +
+

+ {selectedCategory === "all" ? "Todos os Apps" : + selectedCategory === "produtividade" ? "Produtividade" : + selectedCategory === "utilidades" ? "Utilidades" : + selectedCategory === "games" ? "Games" : + selectedCategory === "ferramentas" ? "Ferramentas" : + selectedCategory === "educacao" ? "Educação" : + selectedCategory === "entretenimento" ? "Entretenimento" : + selectedCategory === "esportes" ? "Esportes" : "Apps"} +

+

+ {selectedCategory === "all" + ? `${apps.length} apps disponíveis` + : `${filteredApps.length} apps nesta categoria`} +

+
+ +
+ {filteredApps.map(app => ( +
+ + +
+ ))} +
+
+
+ ) +} + +export async function getServerSideProps() { + return { + props: {}, + } +} \ No newline at end of file