Author SHA1 Message Date
Evandro Fonseca Junior 3fb5ce8f0f Merge pull request #5 from evandrodevbr:develop
Develop
2025-10-30 19:06:07 -03:00
Evandro Fonseca Junior b8426efbf0 feat(nixpacks): add Node.js 18 and pnpm to nixPkgs list
Enhanced the nixpacks configuration by including Node.js 18 and pnpm in the nixPkgs array, expanding the development environment capabilities.
2025-10-30 19:01:54 -03:00
Evandro Fonseca Junior 27b3c579a8 fix: update .gitignore to exclude unnecessary directories
Modified .gitignore to ensure that specific directories are excluded from version control, preventing unnecessary tracking of generated data and maintaining a cleaner repository.
2025-10-30 18:59:09 -03:00
Evandro Fonseca Junior 9644e5c19f commit 2025-10-30 18:55:10 -03:00
Evandro Fonseca Junior 1671e4df58 Merge pull request #4 from evandrodevbr:main
Main
2025-10-30 18:50:25 -03:00
Evandro Fonseca Junior caac1827ae chore(.gitignore): uncomment /data/images to exclude from git
Uncommented the /data/images path in .gitignore to ensure the directory is excluded from version control. This prevents unnecessary tracking of image assets while maintaining proper version control of the codebase.
2025-10-30 18:48:29 -03:00
Evandro Fonseca Junior 0659f1fe99 chore(.gitignore): uncomment /data/images to enable directory tracking
This removes the ignore rule for `/data/images`, allowing git to track changes in the directory. The line was previously active in `.gitignore` but is now commented out to enable its contents to be versioned.
2025-10-30 18:47:30 -03:00
Evandro Fonseca Junior 2b790d8eb4 feat(library): add vocation filter, normalize categories, improve grid layout
Added vocation state and included it in query string builder, updated onFilter to accept a vocation parameter, improved grid layout with grid flow classes, normalized category names for consistent item icons, and refined stats mapping to handle type safety.
2025-10-30 18:44:52 -03:00
Evandro Fonseca Junior 44d7f8ce81 feat(item-card): add 'market'/'catalog' mode prop with defensive price checks
Introduces optional `mode` prop ("market"/"catalog") to conditionally render components like rarity badges. Adds defensive checks for missing price data and priceHistory properties to prevent runtime errors. New icons `Badge` and `Boxes` imported from lucide-react.
2025-10-30 14:10:46 -03:00
Evandro Fonseca Junior 29ba5aece0 feat: add TibiaWiki scraper project and update .gitignore
Integrates a Scrapy-based TibiaWiki scraper (spider, pipelines, SQLite/Images settings, README). Updates .gitignore to exclude generated data directories (/iconScript/data, /data/images) to keep the repository clean.
2025-10-30 00:55:25 -03:00
Evandro Fonseca Junior bf12f2c6f1 scrapping 2025-10-29 23:44:40 -03:00
Evandro Fonseca Junior 4ba3339df7 feat: customize README for Tibia Trade marketplace and enhance page accessibility
- Rewrote README.md to describe the Tibia Trade project, including features, setup instructions, technologies, and SEO keywords in Portuguese
- Removed "Pagodera" from thank you page text for rebranding
- Added role and aria-label to main element in home page for better accessibility
- Added metadata generation with localized titles and descriptions to prices page for improved SEO and user experience
2025-10-27 00:35:35 -03:00
Evandro Fonseca Junior 5e7f3a1354 Merge pull request #3 from evandrodevbr:main
Main
2025-10-26 23:31:51 -03:00
2624 changed files with 5759 additions and 237 deletions

No files matched your search

+3
View File
@@ -39,3 +39,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
/iconScript/data
/data/images
+44 -22
View File
@@ -1,36 +1,58 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
# Tibia Trade - Marketplace Seguro para Itens de Tibia
## Getting Started
Marketplace multi-servidor seguro e confiável para compra, venda e negociação de itens de Tibia. Sistema de escrow protege 100% das transações.
First, run the development server:
## 🎯 Características
- **Marketplace Multi-Servidor**: Funciona com qualquer servidor de Tibia
- **Sistema Escrow Seguro**: Protege 100% das transações contra scam
- **Múltiplos Idiomas**: Português e Inglês
- **Interface Moderna**: Design responsivo e acessível
- **Core Web Vitals Otimizados**: Performance máxima para SEO
## 🚀 Como Iniciar
```bash
npm run dev
# or
yarn dev
# or
# Instalar dependências
pnpm install
# Desenvolvimento
pnpm dev
# or
bun dev
# Build para produção
pnpm build
# Iniciar servidor de produção
pnpm start
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## 🛠️ Tecnologias
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
- **Framework**: Next.js 15 (App Router)
- **Styling**: Tailwind CSS 4
- **UI Components**: Radix UI
- **Animações**: Motion (Framer Motion)
- **Internacionalização**: next-intl
- **Validação**: Zod
- **Typescript**: TypeScript 5
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
## 📦 Palavras-chave SEO
## Learn More
- tibia marketplace
- tibia trade
- comprar itens tibia
- vender itens tibia
- tibia escrow
- tibia gold
- tibia coins
- tc tibia
- marketplace tibia seguro
To learn more about Next.js, take a look at the following resources:
## 🌐 Domínios
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- Desenvolvimento: https://tibiatrade.evandro.dev.br
- Produção: https://tibiatrading.com (futuro)
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
## 📄 Licença
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
Privado - Uso interno
+287
View File
@@ -0,0 +1,287 @@
# Resumo da Implementação de SEO On-Page
## ✅ Implementações Concluídas
### 1. Rebranding Completo
- ✅ Removidas TODAS as referências a "Pagodera"
- ✅ Substituído por "Tibia Trade" em todos os arquivos
- ✅ package.json atualizado com nome "tibia-trade"
- ✅ README.md reescrito com palavras-chave SEO
- ✅ Traduções PT/EN atualizadas
### 2. Metadados Otimizados
- ✅ Função `generateMetadata` dinâmica implementada para i18n
- ✅ Títulos otimizados com palavras-chave (≤60 caracteres)
- ✅ Meta descriptions envolventes (≤160 caracteres)
- ✅ Keywords estratégicas adicionadas:
- tibia marketplace
- tibia trade
- comprar itens tibia
- vender itens tibia
- tibia escrow
- tibia gold
- tibia coins
- tc tibia
- marketplace tibia seguro
- tibia bid system (única)
- tibia item escrow (única)
- tibia multi-server marketplace (única)
### 3. Open Graph & Twitter Cards
- ✅ Open Graph configurado (Facebook, LinkedIn, Discord)
- ✅ Twitter Cards configurado
- ✅ Site name: "Tibia Trade"
- ✅ Canônical URLs implementadas
- ⚠️ **AÇÃO NECESSÁRIA**: Criar imagem `public/og-image.png` (1200x630px)
- Conteúdo sugerido: Logo "Tibia Trade" + tagline "Marketplace Seguro Multi-Servidor"
- Formato: PNG otimizado
- Cores: Seguir identidade visual do site
### 4. Schema Markup JSON-LD
- ✅ Organization (Organização)
- ✅ WebSite com SearchAction
- ✅ FAQPage no componente de Escrow
- ✅ Breadcrumbs com Schema
### 5. Estrutura HTML Semântica
- ✅ H1 implementado no Hero Section
- ✅ H2 para seções principais ("Como Funciona", "Negocie com Segurança")
- ✅ H3 para subcategorias e steps
- ✅ Tag `<main>` com aria-label na homepage
- ✅ Breadcrumbs component criado (disponível para uso)
### 6. Otimização de Imagens
- ✅ Propriedade `alt` adicionada a todos os itens em `mock-data.ts`
- ✅ Configuração Next.js Image para WebP/AVIF
- ✅ Lazy loading configurado
- ✅ Device sizes otimizados (640, 750, 828, 1080, 1200, 1920)
### 7. Links Internos
- ✅ Links contextuais adicionados no componente "Como Funciona"
- ✅ Estrutura de silos preparada
### 8. Sitemap & Robots
- ✅ `app/sitemap.ts` criado (dinâmico, multi-idioma)
- ✅ `public/robots.txt` criado
- ✅ Change frequency configurada (daily/weekly)
- ✅ Prioridades definidas
### 9. Performance (Core Web Vitals)
- ✅ Compressão habilitada
- ✅ `poweredByHeader` removido
- ✅ Formats modernos (WebP, AVIF)
- ✅ Lazy loading de componentes pesados
## ⚠️ Ações Pendentes pelo Usuário
### 1. Criar Imagem Open Graph
**Arquivo**: `public/og-image.png`
**Dimensões**: 1200x630px
**Conteúdo sugerido**:
- Logo "Tibia Trade" (esquerda ou centro)
- Tagline: "Marketplace Seguro Multi-Servidor"
- Background com gradiente ou textura
- Cores alinhadas com tema do site
### 2. Criar Logos e Ícones
**Arquivos necessários**:
- `/public/logo.png` (para Schema Organization)
- `/public/icon.svg` (versão vetorizada do logo)
- `/public/apple-touch-icon.png` (para iOS, 180x180px)
### 3. Validar Implementação
Após deploy, validar com:
#### Google Tools:
1. **Google Search Console**: Adicionar sitemap e verificar indexação
2. **PageSpeed Insights**: Validar Core Web Vitals (LCP < 2.5s)
3. **Rich Results Test**: Validar Schema Markup
4. **Mobile-Friendly Test**: Confirmar responsividade
5. **Schema Markup Validator**: https://validator.schema.org/
#### Lighthouse CI:
```bash
npm install -g @lhci/cli
lhci autorun
```
## 📊 Checklist de SEO On-Page
### Conteúdo ✓
- [x] Título otimizado com palavra-chave principal no início
- [x] Meta description envolvente com CTA
- [x] Headings hierárquicos (H1-H3)
- [x] Primeiro parágrafo contém palavra-chave
- [x] Densidade natural de palavras-chave
- [x] Links internos estratégicos
### Estrutura Técnica ✓
- [x] URLs limpas e curtas
- [x] Breadcrumbs implementados
- [x] Schema Markup completo
- [x] HTML semântico
- [x] Favicons configurados
### Imagens ✓
- [x] ALT text descritivo em TODOS os itens
- [x] Formatos modernos (WebP/AVIF)
- [x] Lazy loading implementado
- [x] Tamanhos responsivos
### Performance ✓
- [x] Core Web Vitals configurado
- [x] Compressão ativada
- [x] Lazy loading de componentes pesados
- [x] Meta headers otimizados
### EEAT (Expertise, Experience, Authoritativeness, Trust) ✓
- [x] Informação de autor (Tibia Trade Team)
- [x] Links para Discord
- [x] Transparência de custos
- [x] Política clara de uso
## 🎯 Palavras-Chave Implementadas
### Primárias (Alta Intenção)
- tibia marketplace
- tibia trade
- comprar itens tibia
- vender itens tibia
- tibia escrow
### Secundárias (Long-tail)
- marketplace tibia seguro
- tibia gold trade
- tibia coins marketplace
- comprar tc tibia
- tibia armadura rara
### Nicho (Baixa Concorrência)
- tibia bid system
- tibia item escrow
- tibia multi-server marketplace
### LSI (Semânticas)
- tibia items, tibia server, tibia weapons, tibia armor
- tibia secure trading, tibia safe marketplace
- gold pieces, tibia coins, tc
- knight, paladin, sorcerer, druid
## 📈 Próximos Passos Recomendados
1. **Criar conteúdo rico na página `/sobre`**
- História do projeto
- Equipe com perfis
- Certificações de segurança
2. **Implementar página de blog/notícias**
- Artigos sobre trading
- Guias de segurança
- Atualizações do marketplace
3. **Adicionar reviews/testimonials**
- Avaliações de usuários
- Casos de sucesso
4. **Configurar Google Analytics & Search Console**
- Monitorar tráfego
- Rastrear palavras-chave
- Analisar performance
5. **Implementar multi-idioma completo**
- Espanhol (opcional)
- Localização completa
## 📝 Arquivos Modificados/Criados
### Configuração (3)
- ✓ package.json
- ✓ README.md
- ✓ next.config.ts
### Tradução (2)
- ✓ messages/pt.json
- ✓ messages/en.json
### Layout (2)
- ✓ app/[locale]/layout.tsx
- ✓ app/[locale]/page.tsx
### Páginas (4)
- ✓ app/[locale]/market/page.tsx
- ✓ app/[locale]/sobre/page.tsx
- ✓ app/[locale]/precos/page.tsx
- ✓ app/[locale]/apoiar/page.tsx
### Componentes (6)
- ✓ components/Header.tsx
- ✓ components/share-button.tsx
- ✓ components/sections/hero-section.tsx
- ✓ components/sections/escrow-explanation.tsx
- ✓ app/[locale]/apoiar/obrigado/page.tsx
- ✓ components/breadcrumbs.tsx (NOVO)
### SEO (3)
- ✓ app/sitemap.ts (NOVO)
- ✓ public/robots.txt (NOVO)
- ⚠️ public/og-image.png (CRIAR)
### Otimização (2)
- ✓ lib/mock-data.ts
- ✓ types/item.ts
**Total**: 22 arquivos modificados/criados
## 🎉 Resultados Esperados
Com essas implementações, o site deve:
1. **Rankear melhor** para palavras-chave estratégicas
2. **Aparecer em rich snippets** do Google (FAQ, Organization, SearchAction)
3. **Ter melhor CTR** em SERPs (Open Graph + Twitter Cards)
4. **Performance otimizada** (Core Web Vitals < limites)
5. **Experiência de usuário superior** (Acessibilidade, SEMÂNTICA)
6. **Indexação eficiente** (Sitemap + Robots.txt)
7. **SEO visual** (Imagens com ALT descritivo)
---
**Data de Implementação**: $(date)
**Status**: ✅ Completo (exceto imagem og-image.png)
**Próxima Revisão**: Após deploy e validação com Google Search Console
+6 -6
View File
@@ -54,8 +54,8 @@ export default function ThankYouPage() {
<div className="p-8 rounded-2xl border border-border/50 bg-card backdrop-blur-lg mb-8">
<p className="text-lg leading-relaxed text-muted-foreground">
Sua generosidade nos ajuda a continuar desenvolvendo e mantendo
o Tibia Trade Pagodera. Cada contribuição faz toda a diferença
para nossa comunidade!
o Tibia Trade. Cada contribuição faz toda a diferença para nossa
comunidade!
</p>
</div>
@@ -86,8 +86,8 @@ export default function ThankYouPage() {
onClick={() => {
if (typeof navigator !== "undefined" && navigator.share) {
navigator.share({
title: "Tibia Trade Pagodera",
text: "Acabei de fazer uma doação para o Tibia Trade Pagodera! Ajude também!",
title: "Tibia Trade",
text: "Acabei de fazer uma doação para o Tibia Trade! Ajude também!",
url: window.location.origin,
});
} else if (
@@ -108,8 +108,8 @@ export default function ThankYouPage() {
<div className="mt-12 p-6 rounded-xl bg-muted/30 border border-border/30">
<p className="text-sm text-muted-foreground">
💡 <strong>Dica:</strong> Compartilhe nossa plataforma com seus
amigos! Quanto mais pessoas usarem o Tibia Trade Pagodera, mais
forte nossa comunidade fica.
amigos! Quanto mais pessoas usarem o Tibia Trade, mais forte
nossa comunidade fica.
</p>
</div>
</div>
+21 -4
View File
@@ -14,17 +14,34 @@ import { Heart } from "lucide-react";
import { getTranslations } from "next-intl/server";
import Link from "next/link";
import { ShareButton } from "@/components/share-button";
import type { Metadata } from "next";
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}) {
}): Promise<Metadata> {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "donation" });
const titles = {
pt: "Apoie o Projeto - Doações Voluntárias",
en: "Support the Project - Voluntary Donations",
};
const descriptions = {
pt: "Ajude a manter o Tibia Trade funcionando com uma doação voluntária via PIX. Transparência total dos custos e investimentos no projeto.",
en: "Help keep Tibia Trade running with a voluntary donation via PIX. Total transparency of costs and project investments.",
};
return {
title: t("title"),
description: t("subtitle"),
title: titles[locale as keyof typeof titles],
description: descriptions[locale as keyof typeof descriptions],
keywords: [
"doação tibia trade",
"apoiar tibia trade",
"ajudar tibia trade",
"transparência tibia trade",
],
};
}
+129 -9
View File
@@ -16,10 +16,89 @@ const geistMono = Geist_Mono({
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Pagodera Trade",
description: "Markeplace servidor pagodera",
};
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}): Promise<Metadata> {
const { locale } = await params;
const titles = {
pt: "Tibia Trade - Marketplace Seguro para Compra e Venda de Itens",
en: "Tibia Trade - Secure Marketplace for Buying and Selling Items",
};
const descriptions = {
pt: "Marketplace oficial multi-servidor para negociar itens de Tibia com segurança total. Sistema escrow protege 100% das transações. Compre e venda gold, TC, armaduras raras e equipamentos.",
en: "Official multi-server marketplace to trade Tibia items with total security. Escrow system protects 100% of transactions. Buy and sell gold, TC, rare armors and equipment.",
};
return {
title: {
default: titles[locale as keyof typeof titles],
template: `%s | Tibia Trade`,
},
description: descriptions[locale as keyof typeof descriptions],
keywords: [
"tibia marketplace",
"tibia trade",
"comprar itens tibia",
"vender itens tibia",
"tibia escrow",
"tibia gold",
"tibia coins",
"tc tibia",
"marketplace tibia seguro",
"tibia bid system",
"tibia item escrow",
"tibia multi-server marketplace",
],
authors: [{ name: "Tibia Trade Team" }],
creator: "Tibia Trade",
publisher: "Tibia Trade",
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
"max-video-preview": -1,
"max-image-preview": "large",
"max-snippet": -1,
},
},
alternates: {
canonical: `https://tibiatrade.evandro.dev.br/${locale}`,
languages: {
"pt-BR": `https://tibiatrade.evandro.dev.br/pt`,
"en-US": `https://tibiatrade.evandro.dev.br/en`,
},
},
openGraph: {
type: "website",
locale: locale === "pt" ? "pt_BR" : "en_US",
url: `https://tibiatrade.evandro.dev.br/${locale}`,
title: titles[locale as keyof typeof titles],
description: descriptions[locale as keyof typeof descriptions],
siteName: "Tibia Trade",
images: [
{
url: "/og-image.png",
width: 1200,
height: 630,
alt: "Tibia Trade - Marketplace Seguro",
},
],
},
twitter: {
card: "summary_large_image",
title: titles[locale as keyof typeof titles],
description: descriptions[locale as keyof typeof descriptions],
images: ["/og-image.png"],
creator: "@tibiatrade",
},
};
}
export default async function LocaleLayout({
children,
@@ -31,8 +110,54 @@ export default async function LocaleLayout({
const { locale } = await params;
const messages = await getMessages();
const baseUrl = "https://tibiatrade.evandro.dev.br";
return (
<html lang={locale} suppressHydrationWarning>
<head>
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify({
"@context": "https://schema.org",
"@type": "Organization",
name: "Tibia Trade",
url: baseUrl,
logo: `${baseUrl}/logo.png`,
description:
"Marketplace multi-servidor seguro para negociação de itens de Tibia",
sameAs: ["https://discord.gg/tibiatrade"],
contactPoint: {
"@type": "ContactPoint",
contactType: "Customer Support",
availableLanguage: ["Portuguese", "English"],
},
}),
}}
/>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify({
"@context": "https://schema.org",
"@type": "WebSite",
name: "Tibia Trade",
url: baseUrl,
potentialAction: {
"@type": "SearchAction",
target: {
"@type": "EntryPoint",
urlTemplate: `${baseUrl}/market?q={search_term_string}`,
},
"query-input": "required name=search_term_string",
},
}),
}}
/>
</head>
<body
className={`${nunitoSans.variable} ${geistMono.variable} antialiased`}
>
@@ -45,8 +170,3 @@ export default async function LocaleLayout({
</html>
);
}
+258
View File
@@ -0,0 +1,258 @@
"use client";
import { useEffect, useMemo, useRef, useState } from "react";
import { MarketplaceFilters } from "@/components/marketplace-filters";
import { ItemCard } from "@/components/item-card";
interface Item {
id: string | number;
name: string;
category: string;
image?: string;
rarity?: string;
npcPrice?: number;
price?: { buy: number; sell: number };
priceHistory?: { highest: number; lowest: number; average: number };
level?: number;
weight?: number;
slots?: number;
skill?: string;
}
interface InitialData {
items: Item[];
total: number;
page: number;
pageSize: number;
totalPages: number;
}
export default function LibraryClient({ initial }: { initial: InitialData }) {
const [items, setItems] = useState<Item[]>(initial.items);
const [total, setTotal] = useState<number>(initial.total);
const [page, setPage] = useState<number>(initial.page || 1);
const [pageSize] = useState<number>(initial.pageSize || 24);
const [totalPages, setTotalPages] = useState<number>(initial.totalPages || 1);
const [query, setQuery] = useState<string>("");
const [categories, setCategories] = useState<string[]>([]);
const [rarities, setRarities] = useState<string[]>([]);
const [sort, setSort] = useState<string>("name");
const [categoryOptions, setCategoryOptions] = useState<{ value: string; label: string }[] | undefined>(undefined);
const [vocation, setVocation] = useState<string | null>(null);
const debounceRef = useRef<number | undefined>(undefined);
const searchParams = useMemo(() => {
const p = new URLSearchParams();
if (query) p.set("q", query);
if (categories.length > 0) p.set("category", categories.join(","));
if (rarities.length > 0) p.set("rarity", rarities.join(","));
if (sort) p.set("sort", sort);
if (vocation) p.set("voc", vocation);
p.set("page", String(page));
p.set("pageSize", String(pageSize));
return p;
}, [query, categories, rarities, sort, page, pageSize, vocation]);
useEffect(() => {
// Debounce para evitar chamadas excessivas
window.clearTimeout(debounceRef.current);
debounceRef.current = window.setTimeout(async () => {
const res = await fetch(`/api/items?${searchParams.toString()}`);
if (!res.ok) return;
const data = await res.json();
setItems(data.items);
setTotal(data.total);
setTotalPages(data.totalPages);
}, 250);
return () => window.clearTimeout(debounceRef.current);
}, [searchParams]);
// Carregar categorias dinâmicas a partir das tabelas do banco
useEffect(() => {
(async () => {
try {
const res = await fetch("/api/items/categories");
if (!res.ok) return;
const data = await res.json();
if (Array.isArray(data.categories)) {
const opts = (data.categories as string[]).map((c) => ({ value: c, label: c.charAt(0).toUpperCase() + c.slice(1) }));
setCategoryOptions(opts);
}
} catch {
// no-op
}
})();
}, []);
const onSearch = (q: string) => {
setPage(1);
setQuery(q);
};
const onFilter = (f: { rarity: string[]; category: string[]; priceRange?: { min: number; max: number }; vocation?: string | null }) => {
setPage(1);
setCategories(f.category || []);
setRarities(f.rarity || []);
setVocation(f.vocation ?? null);
};
const onSort = (s: string) => {
setPage(1);
setSort(s);
};
return (
<div className="space-y-8">
<MarketplaceFilters onSearch={onSearch} onFilter={onFilter} onSort={onSort} totalItems={total} showRarity={false} categoryOptionsOverride={categoryOptions} />
<section className="grid gap-6 grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 grid-flow-row-dense">
{items.map((item) => {
const anyItem = item as any;
// Normalização de categoria para os ícones do ItemCard
const normalizeCategory = (c: string | undefined): string => {
const v = (c || "").toLowerCase();
const map: Record<string, string> = {
escudos: "shield",
armaduras: "armor",
capacetes: "helmet",
calcas: "legs",
botas: "boots",
amuletos: "amulet",
aneis: "ring",
runas: "rune",
ferramentas: "tool",
municao: "ammunition",
aljavas: "ammunition",
distancia: "weapon",
espadas: "weapon",
machados: "weapon",
clavas: "weapon",
punhos: "weapon",
wands: "weapon",
rods: "weapon",
spellbooks: "other",
chaves: "other",
comidas: "other",
decoracoes: "other",
liquidos: "other",
plantas: "other",
recipientes: "other",
trofeus: "other",
};
return map[v] || v || "other";
};
const categoryPt = typeof anyItem.categoria === "string" ? anyItem.categoria : undefined;
const category = normalizeCategory(item.category ?? categoryPt);
const name = item.name ?? anyItem.nome ?? String(item.id);
const image = item.image ?? anyItem.image_url ?? "";
// Campos numéricos normalizados
const level: number | undefined =
typeof item.level === "number"
? item.level
: typeof anyItem.nivel === "number"
? anyItem.nivel
: typeof anyItem.lvl === "number"
? anyItem.lvl
: undefined;
const weight: number | undefined =
typeof item.weight === "number"
? item.weight
: typeof anyItem.peso === "number"
? anyItem.peso
: typeof anyItem.peso_em_oz === "number"
? anyItem.peso_em_oz
: undefined;
const slots: number | undefined =
typeof item.slots === "number"
? item.slots
: typeof anyItem.slots === "number"
? anyItem.slots
: undefined;
const attack: number | undefined =
typeof anyItem.ataque === "number"
? anyItem.ataque
: typeof anyItem.atq === "number"
? anyItem.atq
: undefined;
const defense: number | undefined =
typeof anyItem.defesa === "number"
? anyItem.defesa
: typeof anyItem.def === "number"
? anyItem.def
: undefined;
const armor: number | undefined =
typeof anyItem.arm === "number" ? anyItem.arm : undefined;
// Skill/requisito para usar
const skill: string | undefined =
typeof item.skill === "string" && item.skill !== "Nenhum."
? item.skill
: typeof anyItem.skill_para_usar === "string" && anyItem.skill_para_usar !== "Nenhum."
? anyItem.skill_para_usar
: undefined;
const vocation: string | undefined =
typeof anyItem.voc === "string" && anyItem.voc
? anyItem.voc
: undefined;
return (
<ItemCard
key={`${String((anyItem as any).category)}::${String(item.id)}::${name}`}
item={{
id: String(item.id),
name,
image,
category: category as any,
rarity: (item.rarity as any) ?? "common",
categoryPt,
stats: {
weight,
slots,
attack,
defense,
armor,
} as any,
requirements: {
level,
skill,
vocation,
} as any,
// Campos específicos de aljavas (e reutilizáveis para outras categorias)
volume: typeof anyItem.volume === "number" ? anyItem.volume : undefined,
bonus_de_skill: typeof anyItem.bonus_de_skill === "number" ? anyItem.bonus_de_skill : undefined,
protecao: typeof anyItem.protecao === "string" ? anyItem.protecao : undefined,
dropa_de: typeof anyItem.dropa_de === "string" ? anyItem.dropa_de : undefined,
} as any}
mode="catalog"
/>
);
})}
</section>
<div className="flex items-center justify-center gap-2">
<button
className="px-3 py-1 rounded border text-sm hover:bg-muted disabled:opacity-50"
onClick={() => setPage((p) => Math.max(1, p - 1))}
disabled={page <= 1}
>
Anterior
</button>
<span className="text-sm text-muted-foreground">Página {page} de {totalPages}</span>
<button
className="px-3 py-1 rounded border text-sm hover:bg-muted disabled:opacity-50"
onClick={() => setPage((p) => Math.min(totalPages, p + 1))}
disabled={page >= totalPages}
>
Próxima
</button>
</div>
</div>
);
}
+73
View File
@@ -0,0 +1,73 @@
import Header from "@/components/Header";
import { getTranslations } from "next-intl/server";
import LibraryClient from "./LibraryClient";
interface Item {
id: string;
name: string;
category: string;
image?: string;
rarity?: string;
npcPrice?: number;
price?: { buy: number; sell: number };
priceHistory?: { highest: number; lowest: number; average: number };
stats?: any;
requirements?: any;
protections?: any;
}
async function fetchItems(params: URLSearchParams) {
const qs = params.toString();
const res = await fetch(`${process.env.NEXT_PUBLIC_BASE_URL ?? ""}/api/items?${qs}`, {
// Em ambiente server, revalidação curta para manter leve
next: { revalidate: 15 },
});
if (!res.ok) {
return { items: [], total: 0, page: 1, pageSize: 24, totalPages: 1 };
}
return res.json();
}
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "underConstruction" });
return {
title: t("market.title"),
description: t("market.description"),
};
}
export default async function LibraryPage({ params, searchParams }: {
params: Promise<{ locale: string }>;
searchParams?: Promise<Record<string, string | string[] | undefined>>;
}) {
const { locale } = await params;
const sp = (await searchParams) ?? {};
const initial = new URLSearchParams();
if (typeof sp.q === "string") initial.set("q", sp.q);
if (typeof sp.sort === "string") initial.set("sort", sp.sort);
if (typeof sp.page === "string") initial.set("page", sp.page);
if (typeof sp.pageSize === "string") initial.set("pageSize", sp.pageSize);
if (typeof sp.category === "string") initial.set("category", sp.category);
if (typeof sp.rarity === "string") initial.set("rarity", sp.rarity);
const data = await fetchItems(initial);
return (
<div className="min-h-screen">
<Header />
<main className="container mx-auto px-4 py-8 space-y-8">
<div className="flex items-center justify-between">
<h1 className="text-2xl font-bold">Biblioteca de Itens</h1>
<div className="text-sm text-muted-foreground">
{data.total} {data.total === 1 ? "item" : "itens"}
</div>
</div>
<LibraryClient initial={data} />
</main>
</div>
);
}
+23 -3
View File
@@ -1,17 +1,37 @@
import Header from "@/components/Header";
import { UnderConstruction } from "@/components/under-construction";
import { getTranslations } from "next-intl/server";
import type { Metadata } from "next";
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}) {
}): Promise<Metadata> {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "underConstruction" });
const titles = {
pt: "Mercado - Todos os Itens de Tibia",
en: "Market - All Tibia Items",
};
const descriptions = {
pt: "Explore todos os itens disponíveis no marketplace: armaduras, armas, escudos, poções e mais. Compre e venda com segurança usando nosso sistema de escrow.",
en: "Explore all items available in the marketplace: armors, weapons, shields, potions and more. Buy and sell safely using our escrow system.",
};
return {
title: t("market.title"),
description: t("market.description"),
title: titles[locale as keyof typeof titles],
description: descriptions[locale as keyof typeof descriptions],
keywords: [
"itens tibia",
"armaduras tibia",
"armas tibia",
"escudos tibia",
"comprar itens tibia",
"marketplace tibia",
],
};
}
+1 -1
View File
@@ -13,7 +13,7 @@ export default function Home() {
<div className="min-h-screen">
<Header />
<EscrowBanner />
<main>
<main role="main" aria-label="Página principal do Tibia Trade">
<HeroSection />
<HowItWorks />
<FeaturedItems />
+15 -3
View File
@@ -1,17 +1,29 @@
import Header from "@/components/Header";
import { UnderConstruction } from "@/components/under-construction";
import { getTranslations } from "next-intl/server";
import type { Metadata } from "next";
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}) {
}): Promise<Metadata> {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "underConstruction" });
const titles = {
pt: "Preços - Estrutura de Custos",
en: "Prices - Cost Structure",
};
const descriptions = {
pt: "Veja nossa estrutura de preços transparente. Taxas de transação justas para manter o marketplace funcionando.",
en: "See our transparent price structure. Fair transaction fees to keep the marketplace running.",
};
return {
title: t("prices.title"),
description: t("prices.description"),
title: titles[locale as keyof typeof titles],
description: descriptions[locale as keyof typeof descriptions],
};
}
+21 -4
View File
@@ -1,17 +1,34 @@
import Header from "@/components/Header";
import { UnderConstruction } from "@/components/under-construction";
import { getTranslations } from "next-intl/server";
import type { Metadata } from "next";
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}) {
}): Promise<Metadata> {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "underConstruction" });
const titles = {
pt: "Sobre - Nossa Missão e História",
en: "About - Our Mission and History",
};
const descriptions = {
pt: "Conheça o Tibia Trade, o marketplace multi-servidor mais seguro para negociação de itens. Sistema escrow, transparência total e comunidade ativa.",
en: "Learn about Tibia Trade, the most secure multi-server marketplace for item trading. Escrow system, total transparency and active community.",
};
return {
title: t("about.title"),
description: t("about.description"),
title: titles[locale as keyof typeof titles],
description: descriptions[locale as keyof typeof descriptions],
keywords: [
"sobre tibia trade",
"história tibia trade",
"missão tibia trade",
"marketplace tibia",
],
};
}
+35
View File
@@ -0,0 +1,35 @@
import { NextRequest } from "next/server";
import fs from "node:fs";
import path from "node:path";
export async function GET(req: NextRequest) {
const { searchParams } = new URL(req.url);
const relPath = searchParams.get("path") || "";
// Permitir apenas caminhos sob data/images para segurança
const baseDir = path.join(process.cwd(), "data", "images");
const resolved = path.join(process.cwd(), relPath);
if (!resolved.startsWith(baseDir)) {
return new Response("Forbidden", { status: 403 });
}
try {
const file = await fs.promises.readFile(resolved);
const ext = path.extname(resolved).toLowerCase();
const contentType =
ext === ".gif"
? "image/gif"
: ext === ".png"
? "image/png"
: ext === ".webp"
? "image/webp"
: ext === ".jpg" || ext === ".jpeg"
? "image/jpeg"
: "application/octet-stream";
return new Response(file, { status: 200, headers: { "Content-Type": contentType } });
} catch {
return new Response("Not Found", { status: 404 });
}
}
+25
View File
@@ -0,0 +1,25 @@
import { NextRequest } from "next/server";
import path from "node:path";
function getDb() {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const Database = require("better-sqlite3");
const dbPath = path.join(process.cwd(), "data", "tibiawiki.db");
return new Database(dbPath, { readonly: true, fileMustExist: true });
}
export async function GET(_req: NextRequest) {
try {
const db = getDb();
const tables = db
.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name <> 'sqlite_sequence' ORDER BY name")
.all() as { name: string }[];
db.close();
// Retorna nomes das tabelas (PT) para usar como categorias
return Response.json({ categories: tables.map((t) => t.name) });
} catch (e: any) {
return Response.json({ error: e?.message || "Erro" }, { status: 500 });
}
}
+72
View File
@@ -0,0 +1,72 @@
import { NextRequest } from "next/server";
import { searchItems } from "@/lib/items-db";
import { buildPublicItemImageUrl } from "@/lib/item-images";
function parseArray(param: string | null): string[] {
if (!param) return [];
// Suporta formatos: comma-separated (a,b) ou múltiplos parâmetros já combinados
return param
.split(",")
.map((v) => v.trim())
.filter(Boolean);
}
export async function GET(req: NextRequest) {
try {
const { searchParams } = new URL(req.url);
const q = searchParams.get("q") || undefined;
const categories = parseArray(searchParams.get("category"));
const rarities = parseArray(searchParams.get("rarity"));
const sortParam = (searchParams.get("sort") || "name") as
| "name"
| "level-asc"
| "level-desc"
| "weight-asc"
| "weight-desc"
| "category";
const page = Number(searchParams.get("page") || "1");
const pageSize = Number(searchParams.get("pageSize") || "24");
const voc = searchParams.get("voc") || undefined;
const { items, total } = searchItems({
q,
categories,
rarities,
sort: sortParam,
vocation: voc,
page,
pageSize,
});
// Enriquecer com URL pública de imagem quando possível
const itemsWithImage = items.map((it: any) => {
const img = (it.image || "").toString();
// Preferir URL absoluta do banco para teste
if (/^https?:\/\//i.test(img)) {
return { ...it, image: img };
}
if (img.startsWith("data/")) {
return { ...it, image: `/api/images?path=${encodeURIComponent(img)}` };
}
const categoryEn = (it.category || "other").toString();
return { ...it, image: buildPublicItemImageUrl(categoryEn, img) };
});
const totalPages = Math.max(1, Math.ceil(total / Math.max(1, pageSize)));
return Response.json(
{ items: itemsWithImage, page, pageSize, total, totalPages },
{ status: 200 }
);
} catch (error: any) {
console.error("[api/items] Erro:", error?.message, error?.stack);
return Response.json(
{
error: "Falha ao consultar itens",
message: error?.message || "Erro desconhecido",
},
{ status: 500 }
);
}
}
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 96 KiB

+28
View File
@@ -0,0 +1,28 @@
import { MetadataRoute } from "next";
export default function sitemap(): MetadataRoute.Sitemap {
const baseUrl = "https://tibiatrade.evandro.dev.br";
const locales = ["pt", "en"];
const pages = ["", "/market", "/sobre", "/precos", "/apoiar"];
const routes: MetadataRoute.Sitemap = [];
locales.forEach((locale) => {
pages.forEach((page) => {
routes.push({
url: `${baseUrl}/${locale}${page}`,
lastModified: new Date(),
changeFrequency: page === "" ? "daily" : "weekly",
priority: page === "" ? 1.0 : 0.8,
alternates: {
languages: {
pt: `${baseUrl}/pt${page}`,
en: `${baseUrl}/en${page}`,
},
},
});
});
});
return routes;
}
+2 -1
View File
@@ -20,6 +20,7 @@ export default function Header() {
const locale = useLocale();
const links = [
{ href: `/${locale}/library`, label: "Library" },
{ href: `/${locale}/market`, label: t("market") },
{ href: `/${locale}/sobre`, label: t("about") },
{ href: `/${locale}/precos`, label: t("prices") },
@@ -33,7 +34,7 @@ export default function Header() {
<div className="flex items-center gap-2">
<Link href="/">
<WordRotate
words={["Pagodera", "Tibia Trade"]}
words={["Tibia Trade"]}
className="text-lg font-semibold tracking-tight hover:text-primary transition-colors"
/>
</Link>
+43
View File
@@ -0,0 +1,43 @@
import { ChevronRight } from "lucide-react";
import Link from "next/link";
interface BreadcrumbItem {
label: string;
href: string;
}
interface BreadcrumbsProps {
items: BreadcrumbItem[];
}
export function Breadcrumbs({ items }: BreadcrumbsProps) {
return (
<nav aria-label="Breadcrumb" className="py-4">
<ol
itemScope
itemType="https://schema.org/BreadcrumbList"
className="flex items-center gap-2 text-sm text-muted-foreground"
>
{items.map((item, index) => (
<li
key={item.href}
itemProp="itemListElement"
itemScope
itemType="https://schema.org/ListItem"
className="flex items-center gap-2"
>
<Link
href={item.href}
itemProp="item"
className="hover:text-foreground transition-colors"
>
<span itemProp="name">{item.label}</span>
</Link>
<meta itemProp="position" content={String(index + 1)} />
{index < items.length - 1 && <ChevronRight className="w-4 h-4" />}
</li>
))}
</ol>
</nav>
);
}
+519 -158
View File
@@ -25,8 +25,15 @@ import {
Zap as Energy,
Skull,
Cross,
Badge as BadgeIcon,
Boxes,
Gem,
FlaskConical,
Wrench,
ScrollText,
Leaf,
} from "lucide-react";
import { useState } from "react";
import { useEffect, useRef, useState } from "react";
import {
getRarityColor,
getRarityBgColor,
@@ -35,12 +42,177 @@ import {
interface ItemCardProps {
item: TibiaItem;
mode?: "market" | "catalog";
}
export function ItemCard({ item }: ItemCardProps) {
export function ItemCard({ item, mode = "market" }: ItemCardProps) {
const t = useTranslations("home.item");
const [isFavorited, setIsFavorited] = useState(false);
const [isHovered, setIsHovered] = useState(false);
const formatVocation = (v: string | undefined): string | undefined => {
if (!v) return undefined;
let out = String(v);
// Inserir espaço quando 'and' vier colado em palavras
out = out.replace(/([A-Za-z])and([A-Za-z])/g, "$1 and $2");
// Normalizar vírgulas e conectivos
out = out.replace(/,/g, ", ");
out = out.replace(/\s*and\s*/gi, " and ");
// Colapsar espaços múltiplos
out = out.replace(/\s+/g, " ").trim();
return out;
};
const ScrollRow = ({ children, ariaLabel }: { children: React.ReactNode; ariaLabel: string }) => {
const scrollerRef = useRef<HTMLDivElement | null>(null);
const contentRef = useRef<HTMLDivElement | null>(null);
const [canScrollLeft, setCanScrollLeft] = useState(false);
const [canScrollRight, setCanScrollRight] = useState(false);
const [isHovering, setIsHovering] = useState(false);
const autoScrollRef = useRef<number | null>(null);
const drag = useRef<{ active: boolean; startX: number; startLeft: number }>({ active: false, startX: 0, startLeft: 0 });
const [isDragging, setIsDragging] = useState(false);
const updateButtons = () => {
const el = scrollerRef.current;
if (!el) return;
const base = contentRef.current?.offsetWidth || 0;
const hasOverflow = el.scrollWidth > el.clientWidth + 2 && base > 0;
// Em loop infinito, ambos os lados ficam disponíveis quando há overflow
setCanScrollLeft(hasOverflow);
setCanScrollRight(hasOverflow);
};
useEffect(() => {
// Inject global CSS once to hide scrollbars cross-browser
const styleId = "no-scrollbar-styles";
if (!document.getElementById(styleId)) {
const style = document.createElement("style");
style.id = styleId;
style.textContent = `
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; height: 0; width: 0; }
`;
document.head.appendChild(style);
}
updateButtons();
const el = scrollerRef.current;
if (!el) return;
const handler = () => updateButtons();
el.addEventListener("scroll", handler);
const ro = new ResizeObserver(() => updateButtons());
ro.observe(el);
const onEnter = () => setIsHovering(true);
const onLeave = () => setIsHovering(false);
el.addEventListener("mouseenter", onEnter);
el.addEventListener("mouseleave", onLeave);
return () => {
el.removeEventListener("scroll", handler);
el.removeEventListener("mouseenter", onEnter);
el.removeEventListener("mouseleave", onLeave);
ro.disconnect();
};
}, []);
const scrollBy = (dx: number) => {
const el = scrollerRef.current;
if (!el) return;
const base = contentRef.current?.offsetWidth || 0;
if (base > 0) {
let next = el.scrollLeft + dx;
if (next < 0) next += base;
if (next >= base) next -= base;
el.scrollTo({ left: next, behavior: "smooth" });
} else {
el.scrollBy({ left: dx, behavior: "smooth" });
}
};
// Auto-scroll when not hovering and there's overflow
useEffect(() => {
const tick = () => {
const el = scrollerRef.current;
if (!el) return;
const base = contentRef.current?.offsetWidth || 0;
const hasOverflow = el.scrollWidth > el.clientWidth + 2 && base > 0;
if (!isHovering && hasOverflow) {
// velocidade ajustada para ~36px/s @60fps
el.scrollLeft += 0.6;
if (base > 0 && el.scrollLeft >= base) {
// wrap sem salto perceptível
el.scrollLeft -= base;
}
}
autoScrollRef.current = window.requestAnimationFrame(tick);
};
autoScrollRef.current = window.requestAnimationFrame(tick);
return () => {
if (autoScrollRef.current) cancelAnimationFrame(autoScrollRef.current);
autoScrollRef.current = null;
};
}, [isHovering]);
// Drag to scroll (pointer events)
useEffect(() => {
const el = scrollerRef.current;
if (!el) return;
const onPointerDown = (e: PointerEvent) => {
if (e.button !== 0) return; // only left click/touch
drag.current.active = true;
drag.current.startX = e.clientX;
drag.current.startLeft = el.scrollLeft;
setIsDragging(true);
el.setPointerCapture(e.pointerId);
};
const onPointerMove = (e: PointerEvent) => {
if (!drag.current.active) return;
const dx = e.clientX - drag.current.startX;
const base = contentRef.current?.offsetWidth || 0;
let next = drag.current.startLeft - dx;
if (base > 0) {
if (next < 0) next += base;
if (next >= base) next -= base;
}
el.scrollLeft = next;
};
const onPointerUp = (e: PointerEvent) => {
if (!drag.current.active) return;
drag.current.active = false;
setIsDragging(false);
try { el.releasePointerCapture(e.pointerId); } catch {}
};
el.addEventListener("pointerdown", onPointerDown);
el.addEventListener("pointermove", onPointerMove);
el.addEventListener("pointerup", onPointerUp);
el.addEventListener("pointercancel", onPointerUp);
return () => {
el.removeEventListener("pointerdown", onPointerDown);
el.removeEventListener("pointermove", onPointerMove);
el.removeEventListener("pointerup", onPointerUp);
el.removeEventListener("pointercancel", onPointerUp);
};
}, []);
return (
<div className="relative">
{/* botões removidos conforme solicitado */}
<div
ref={scrollerRef}
className={`overflow-x-auto no-scrollbar whitespace-nowrap pr-6 pl-6 select-none ${isDragging ? "cursor-grabbing" : "cursor-grab"}`}
style={{ scrollBehavior: "smooth" }}
>
<div ref={contentRef} className="inline-flex items-center gap-2">
{children}
{children}
</div>
</div>
</div>
);
};
const [showAllDroppers, setShowAllDroppers] = useState(false);
const rarityColors = {
common: "bg-gray-500",
@@ -57,28 +229,38 @@ export function ItemCard({ item }: ItemCardProps) {
legs: Shield,
boots: Shield,
shield: Shield,
amulet: "💎",
ring: "💍",
potion: "🧪",
rune: "📜",
tool: "🔧",
ammunition: "🏹",
other: "📦",
};
amulet: Gem,
ring: Gem,
potion: FlaskConical,
rune: ScrollText,
tool: Wrench,
ammunition: Boxes,
other: Boxes,
} as const;
const CategoryIcon = categoryIcons[item.category];
// Calcular diferença percentual entre compra e venda
const priceDifference =
((item.price.buy - item.price.sell) / item.price.sell) * 100;
const isHotDeal = priceDifference > 20; // Hot deal se diferença > 20%
// Calcular diferença percentual entre compra e venda (somente quando houver preço)
const hasPrice =
item &&
(item as any).price &&
typeof (item as any).price.buy === "number" &&
typeof (item as any).price.sell === "number" &&
(item as any).price.sell !== 0;
const priceDifference = hasPrice
? (((item as any).price.buy - (item as any).price.sell) /
(item as any).price.sell) * 100
: 0;
const isHotDeal = hasPrice && priceDifference > 20; // Hot deal se diferença > 20%
// Determinar tendência de preço
const getPriceTrend = () => {
if (item.priceHistory.highest > item.priceHistory.average * 1.1)
return "up";
if (item.priceHistory.lowest < item.priceHistory.average * 0.9)
return "down";
const ph = (item as any).priceHistory;
if (!ph || typeof ph.highest !== "number" || typeof ph.lowest !== "number" || typeof ph.average !== "number") {
return "stable";
}
if (ph.highest > ph.average * 1.1) return "up";
if (ph.lowest < ph.average * 0.9) return "down";
return "stable";
};
@@ -94,25 +276,27 @@ export function ItemCard({ item }: ItemCardProps) {
return (
<div
className="group relative h-full"
className="group relative"
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
<MagicCard className="p-0 overflow-hidden h-full flex flex-col rounded-xl border border-border/50 hover:border-primary/30 transition-all duration-300 hover:scale-[1.02] hover:shadow-xl">
<MagicCard className="p-0 overflow-hidden rounded-xl border border-border/50 hover:border-primary/30 transition-all duration-300 hover:scale-[1.02] hover:shadow-xl">
{/* Header com ícone e badge de raridade */}
<div className="relative aspect-square bg-linear-to-br from-background to-muted p-6">
{/* Badge de raridade com glow */}
<Badge
className={`${
rarityColors[item.rarity]
} text-white absolute top-3 left-3 z-20 shadow-lg ${getRarityGlow(
item.rarity
)} ${item.rarity === "legendary" ? "animate-pulse" : ""} ${
item.rarity === "epic" ? "animate-pulse" : ""
}`}
>
{item.rarity}
</Badge>
{/* Badge de raridade com glow (apenas em modo market) */}
{mode === "market" && (
<Badge
className={`${
rarityColors[item.rarity]
} text-white absolute top-3 left-3 z-20 shadow-lg ${getRarityGlow(
item.rarity
)} ${item.rarity === "legendary" ? "animate-pulse" : ""} ${
item.rarity === "epic" ? "animate-pulse" : ""
}`}
>
{item.rarity}
</Badge>
)}
{/* Botão de favorito */}
<Button
@@ -130,22 +314,35 @@ export function ItemCard({ item }: ItemCardProps) {
/>
</Button>
{/* Hot Deal Badge */}
{isHotDeal && (
<Badge className="absolute top-3 left-1/2 transform -translate-x-1/2 z-20 bg-red-500 text-white shadow-lg animate-pulse">
🔥 Hot Deal
{/* Hot Deal Badge (apenas em modo market) */}
{mode === "market" && isHotDeal && (
<Badge className="absolute top-3 left-1/2 transform -translate-x-1/2 z-20 bg-red-500 text-white shadow-lg animate-pulse flex items-center gap-1">
<Flame className="h-3 w-3" />
Hot Deal
</Badge>
)}
{/* Ícone do item */}
{/* Imagem real do item (se disponível) ou ícone por categoria */}
<div className="absolute inset-0 flex items-center justify-center">
<div className="w-20 h-20 bg-muted/50 rounded-xl flex items-center justify-center text-3xl backdrop-blur-sm">
{typeof CategoryIcon === "string" ? (
CategoryIcon
) : (
<CategoryIcon className="w-10 h-10" />
)}
</div>
{item.image ? (
// eslint-disable-next-line @next/next/no-img-element
<img
src={item.image}
alt={item.name}
className="w-20 h-20 object-contain drop-shadow-sm"
onError={(e) => {
(e.currentTarget as HTMLImageElement).style.display = "none";
}}
/>
) : (
<div className="w-20 h-20 bg-muted/50 rounded-xl flex items-center justify-center text-3xl backdrop-blur-sm">
{typeof CategoryIcon === "string" ? (
null
) : (
<CategoryIcon className="w-10 h-10" />
)}
</div>
)}
</div>
</div>
@@ -162,6 +359,26 @@ export function ItemCard({ item }: ItemCardProps) {
<Clock className="h-3 w-3" />
<span>Atualizado há 5 min</span>
</div>
{/* Meta: ID e Categoria */}
<div className="flex flex-wrap items-center gap-2 text-xs text-muted-foreground">
{(() => {
const catPt = (item as any).categoryPt as string | undefined;
const catEn = (item as any).category as string | undefined;
const catRaw = (catPt && String(catPt)) || (catEn && String(catEn)) || "";
const display = catRaw
? catRaw.charAt(0).toUpperCase() + catRaw.slice(1)
: "";
return display ? (
<span className="px-1.5 py-0.5 rounded bg-muted/60 text-foreground/80">
{display}
</span>
) : null;
})()}
{typeof item.id === "string" && item.id && (
<span className="opacity-80">ID: {item.id}</span>
)}
</div>
</div>
{/* Estatísticas agrupadas */}
@@ -172,7 +389,7 @@ export function ItemCard({ item }: ItemCardProps) {
<div className="flex items-center gap-1.5 text-sm">
<Sword className="h-4 w-4 text-primary" />
<span className="font-medium">
⚔️ {item.stats.attack} ATK
{item.stats.attack} ATK
</span>
</div>
)}
@@ -180,7 +397,7 @@ export function ItemCard({ item }: ItemCardProps) {
<div className="flex items-center gap-1.5 text-sm">
<Shield className="h-4 w-4 text-primary" />
<span className="font-medium">
🛡️ {item.stats.defense} DEF
{item.stats.defense} DEF
</span>
</div>
)}
@@ -188,165 +405,309 @@ export function ItemCard({ item }: ItemCardProps) {
<div className="flex items-center gap-1.5 text-sm">
<Shield className="h-4 w-4 text-primary" />
<span className="font-medium">
🛡️ {item.stats.armor} ARM
{item.stats.armor} ARM
</span>
</div>
)}
{(item as any).volume && (
<div className="flex items-center gap-1.5 text-sm">
<Boxes className="h-4 w-4 text-primary" />
<span className="font-medium">Volume {(item as any).volume}</span>
</div>
)}
{(item as any).bonus_de_skill && (
<div className="flex items-center gap-1.5 text-sm">
<Zap className="h-4 w-4 text-primary" />
<span className="font-medium">Skill +{(item as any).bonus_de_skill}</span>
</div>
)}
</div>
{/* Proteções elementais */}
{item.protections && (
<div className="flex flex-wrap gap-2">
<ScrollRow ariaLabel="protections">
{item.protections.fire && (
<div className="flex items-center gap-1 text-xs bg-red-500/10 text-red-600 px-2 py-1 rounded">
<Flame className="h-3 w-3" />
<span>🔥 Fire +{item.protections.fire}%</span>
<span>Fire +{item.protections.fire}%</span>
</div>
)}
{item.protections.ice && (
<div className="flex items-center gap-1 text-xs bg-blue-500/10 text-blue-600 px-2 py-1 rounded">
<Snowflake className="h-3 w-3" />
<span>❄️ Ice +{item.protections.ice}%</span>
<span>Ice +{item.protections.ice}%</span>
</div>
)}
{item.protections.energy && (
<div className="flex items-center gap-1 text-xs bg-yellow-500/10 text-yellow-600 px-2 py-1 rounded">
<Energy className="h-3 w-3" />
<span>⚡ Energy +{item.protections.energy}%</span>
<span>Energy +{item.protections.energy}%</span>
</div>
)}
</div>
</ScrollRow>
)}
{/* Requisitos */}
{item.requirements && (
<div className="space-y-1">
{item.requirements.level && (
<div className="text-xs text-muted-foreground">
📊 Level {item.requirements.level}+
<div className="flex flex-wrap gap-2">
{typeof (item as any).requirements?.level === "number" && (
<div className="flex items-center gap-1 text-xs bg-primary/10 text-primary px-2 py-1 rounded">
<Star className="h-3 w-3" />
<span>Lvl {(item as any).requirements.level}+</span>
</div>
)}
{(item as any).requirements?.skill && (
<div className="flex items-center gap-1 text-xs bg-indigo-500/10 text-indigo-600 px-2 py-1 rounded">
<Zap className="h-3 w-3" />
<span>{(item as any).requirements.skill}</span>
</div>
)}
{item.requirements.vocation && (
<div className="text-xs text-muted-foreground">
👤 Best for {item.requirements.vocation}
Best for {formatVocation(item.requirements.vocation)}
</div>
)}
</div>
)}
{(item as any).protecao && (() => {
const raw = String((item as any).protecao || "");
const tokens = raw
.split(",")
.map((s) => s.trim())
.filter(Boolean)
.filter((s) => !/^nenhum(a)?\.?$/i.test(s.trim()));
if (tokens.length === 0) return null;
return (
<ScrollRow ariaLabel="elemental protections">
{tokens.map((raw: string, idx: number) => {
const token = raw.trim();
const match = token.match(/^([A-Za-zçÇáÁéÉíÍóÓúÚãÃõÕ ]+)(.*)$/);
const type = (match?.[1] || token).trim().toLowerCase();
const value = (match?.[2] || "").trim();
let Icon: any = Shield;
let chipBg = "bg-amber-500/10";
let chipText = "text-amber-700";
switch (type) {
case "fire":
case "fogo":
Icon = Flame;
chipBg = "bg-red-500/10";
chipText = "text-red-600";
break;
case "ice":
case "gelo":
Icon = Snowflake;
chipBg = "bg-blue-500/10";
chipText = "text-blue-600";
break;
case "energy":
case "energia":
Icon = Energy;
chipBg = "bg-yellow-500/10";
chipText = "text-yellow-600";
break;
case "earth":
case "terra":
Icon = Leaf;
chipBg = "bg-green-500/10";
chipText = "text-green-600";
break;
case "death":
case "morte":
Icon = Skull;
chipBg = "bg-zinc-500/10";
chipText = "text-zinc-600";
break;
case "holy":
case "sagrado":
Icon = Cross;
chipBg = "bg-amber-500/10";
chipText = "text-amber-700";
break;
case "physical":
case "fisico":
Icon = Shield;
chipBg = "bg-slate-500/10";
chipText = "text-slate-600";
break;
default:
Icon = Shield;
chipBg = "bg-amber-500/10";
chipText = "text-amber-700";
}
const prettyType = type.charAt(0).toUpperCase() + type.slice(1);
const label = `${prettyType.replace("fisico", "Físico")}${value ? " " + value : ""}`;
return (
<div key={`${type}-${idx}`} className={`flex items-center gap-1 text-xs ${chipBg} ${chipText} px-2 py-1 rounded`}>
<Icon className="h-3 w-3" />
<span className="whitespace-nowrap">{label}</span>
</div>
);
})}
</ScrollRow>
);
})()}
{item.stats.weight && (
<div className="flex items-center gap-1.5 text-sm text-muted-foreground">
<Weight className="h-4 w-4" />
<span>⚖️ {item.stats.weight} oz</span>
<span>{item.stats.weight} oz</span>
</div>
)}
{(item as any).stats?.slots && (
<div className="flex items-center gap-1.5 text-xs text-muted-foreground">
<Boxes className="h-3 w-3" />
<span>Slots {(item as any).stats?.slots}</span>
</div>
)}
</div>
)}
{/* Divisor visual */}
<div className="border-t border-border/50" />
{/* Preços com ícones e formatação melhorada */}
<div className="space-y-3">
<div className="grid grid-cols-2 gap-4">
<div className="space-y-1">
<div className="flex items-center gap-1 text-xs text-muted-foreground">
<Coins className="h-3 w-3" />
<span>{t("buyPrice")}</span>
{(item as any).dropa_de && (
(() => {
const raw = String((item as any).dropa_de || "");
const normalized = raw.trim();
// Casos especiais de "nenhum/ninguém"
const none = /^(nenhum|nenhuma|ningu[eé]m)\.?$/i.test(normalized);
if (none) {
return (
<div className="flex items-center gap-1.5 text-xs text-muted-foreground">
<Skull className="h-3 w-3" />
<span>Dropa de: Ninguém</span>
</div>
);
}
const droppers = normalized
.split(",")
.map((s) => s.trim())
.filter(Boolean);
return (
<div className="text-xs">
<div className="flex items-center gap-1.5 text-muted-foreground mb-1">
<Skull className="h-3 w-3" />
<span>Dropa de:</span>
</div>
<ScrollRow ariaLabel="droppers">
{droppers.map((name, idx) => (
<span
key={`dropper-${idx}-${name}`}
className="px-2 py-0.5 rounded bg-muted/60 text-foreground/80 whitespace-nowrap"
>
{name}
</span>
))}
</ScrollRow>
</div>
<PriceDisplay
value={item.price.buy}
className="text-green-600 dark:text-green-400"
size="md"
/>
</div>
<div className="space-y-1">
<div className="flex items-center gap-1 text-xs text-muted-foreground">
<Coins className="h-3 w-3" />
<span>{t("sellPrice")}</span>
</div>
<PriceDisplay
value={item.price.sell}
className="text-red-600 dark:text-red-400"
size="md"
/>
</div>
</div>
);
})()
)}
{/* Diferença percentual */}
<div className="text-center">
<span
className={`text-sm font-medium ${
priceDifference > 0 ? "text-green-600" : "text-red-600"
}`}
{mode === "market" && item.price && (
<>
{/* Divisor visual */}
<div className="border-t border-border/50" />
{/* Preços com ícones e formatação melhorada */}
<div className="space-y-3">
<div className="grid grid-cols-2 gap-4">
<div className="space-y-1">
<div className="flex items-center gap-1 text-xs text-muted-foreground">
<Coins className="h-3 w-3" />
<span>{t("buyPrice")}</span>
</div>
<PriceDisplay
value={item.price.buy}
className="text-green-600 dark:text-green-400"
size="md"
/>
</div>
<div className="space-y-1">
<div className="flex items-center gap-1 text-xs text-muted-foreground">
<Coins className="h-3 w-3" />
<span>{t("sellPrice")}</span>
</div>
<PriceDisplay
value={item.price.sell}
className="text-red-600 dark:text-red-400"
size="md"
/>
</div>
</div>
{/* Diferença percentual */}
<div className="text-center">
<span
className={`text-sm font-medium ${
priceDifference > 0 ? "text-green-600" : "text-red-600"
}`}
>
{priceDifference > 0 ? "+" : ""}
{priceDifference.toFixed(1)}% diferença
</span>
</div>
</div>
</>
)}
{mode === "market" && item.priceHistory && (
<>
{/* Divisor visual */}
<div className="border-t border-border/50" />
{/* Histórico de preço com sparkline */}
<div className="space-y-3">
<div className="flex items-center justify-between">
<span className="text-sm font-medium text-muted-foreground">
{t("priceHistory")}
</span>
<div className={`flex items-center gap-1 text-xs ${trendColor}`}>
<TrendIcon className="h-3 w-3" />
<span className="capitalize">{trend}</span>
</div>
</div>
<div className="grid grid-cols-3 gap-2 text-xs">
<div className="text-center space-y-1">
<div className="flex items-center justify-center gap-1 text-green-600">
<TrendingUp className="h-3 w-3" />
<span className="font-medium">{t("highest")}</span>
</div>
<div className="font-bold">{item.priceHistory.highest.toLocaleString()} gp</div>
</div>
<div className="text-center space-y-1">
<div className="flex items-center justify-center gap-1 text-red-600">
<TrendingDown className="h-3 w-3" />
<span className="font-medium">{t("lowest")}</span>
</div>
<div className="font-bold">{item.priceHistory.lowest.toLocaleString()} gp</div>
</div>
<div className="text-center space-y-1">
<div className="flex items-center justify-center gap-1 text-muted-foreground">
<Minus className="h-3 w-3" />
<span className="font-medium">{t("average")}</span>
</div>
<div className="font-bold">{item.priceHistory.average.toLocaleString()} gp</div>
</div>
</div>
</div>
</>
)}
{mode === "market" && (
<div className="pt-4 space-y-2">
<Button
className="w-full group-hover:bg-primary group-hover:text-primary-foreground transition-colors"
variant="outline"
>
{priceDifference > 0 ? "+" : ""}
{priceDifference.toFixed(1)}% diferença
</span>
{t("viewDetails")}
</Button>
<Button className="w-full bg-green-600 hover:bg-green-700 text-white" size="sm">
{t("buyNow")}
</Button>
</div>
</div>
{/* Divisor visual */}
<div className="border-t border-border/50" />
{/* Histórico de preço com sparkline */}
<div className="space-y-3">
<div className="flex items-center justify-between">
<span className="text-sm font-medium text-muted-foreground">
{t("priceHistory")}
</span>
<div className={`flex items-center gap-1 text-xs ${trendColor}`}>
<TrendIcon className="h-3 w-3" />
<span className="capitalize">{trend}</span>
</div>
</div>
<div className="grid grid-cols-3 gap-2 text-xs">
<div className="text-center space-y-1">
<div className="flex items-center justify-center gap-1 text-green-600">
<TrendingUp className="h-3 w-3" />
<span className="font-medium">{t("highest")}</span>
</div>
<div className="font-bold">
🪙 {item.priceHistory.highest.toLocaleString()} gp
</div>
</div>
<div className="text-center space-y-1">
<div className="flex items-center justify-center gap-1 text-red-600">
<TrendingDown className="h-3 w-3" />
<span className="font-medium">{t("lowest")}</span>
</div>
<div className="font-bold">
🪙 {item.priceHistory.lowest.toLocaleString()} gp
</div>
</div>
<div className="text-center space-y-1">
<div className="flex items-center justify-center gap-1 text-muted-foreground">
<Minus className="h-3 w-3" />
<span className="font-medium">{t("average")}</span>
</div>
<div className="font-bold">
🪙 {item.priceHistory.average.toLocaleString()} gp
</div>
</div>
</div>
</div>
{/* Botões de ação */}
<div className="pt-4 space-y-2">
<Button
className="w-full group-hover:bg-primary group-hover:text-primary-foreground transition-colors"
variant="outline"
>
{t("viewDetails")}
</Button>
<Button
className="w-full bg-green-600 hover:bg-green-700 text-white"
size="sm"
>
{t("buyNow")}
</Button>
</div>
)}
</div>
</MagicCard>
</div>
+82 -9
View File
@@ -29,12 +29,15 @@ interface MarketplaceFiltersProps {
onFilter: (filters: FilterState) => void;
onSort: (sortBy: string) => void;
totalItems: number;
showRarity?: boolean;
categoryOptionsOverride?: { value: string; label: string }[];
}
interface FilterState {
rarity: string[];
category: string[];
priceRange: { min: number; max: number };
vocation?: string | null;
}
export function MarketplaceFilters({
@@ -42,6 +45,8 @@ export function MarketplaceFilters({
onFilter,
onSort,
totalItems,
showRarity = true,
categoryOptionsOverride,
}: MarketplaceFiltersProps) {
const t = useTranslations("home");
const [searchQuery, setSearchQuery] = useState("");
@@ -49,6 +54,7 @@ export function MarketplaceFilters({
rarity: [],
category: [],
priceRange: { min: 0, max: 100000 },
vocation: null,
});
const [sortBy, setSortBy] = useState("name");
@@ -60,7 +66,7 @@ export function MarketplaceFilters({
{ value: "legendary", label: "Lendário", color: "bg-orange-500" },
];
const categoryOptions = [
const categoryOptions = categoryOptionsOverride ?? [
{ value: "weapon", label: "Arma" },
{ value: "armor", label: "Armadura" },
{ value: "amulet", label: "Amuleto" },
@@ -70,13 +76,22 @@ export function MarketplaceFilters({
{ value: "other", label: "Outros" },
];
const vocationOptions = [
{ value: "Knight", label: "Knight" },
{ value: "Paladin", label: "Paladin" },
{ value: "Sorcerer", label: "Sorcerer" },
{ value: "Druid", label: "Druid" },
{ value: "Sorcerers and Druids", label: "Sorcerers and Druids" },
{ value: "Todas", label: "Todas" },
];
const sortOptions = [
{ value: "name", label: "Nome", icon: SortAsc },
{ value: "price-asc", label: "Preço (Menor)", icon: SortAsc },
{ value: "price-desc", label: "Preço (Maior)", icon: SortDesc },
{ value: "rarity", label: "Raridade", icon: Star },
{ value: "trending", label: "Tendência", icon: TrendingUp },
{ value: "recent", label: "Recente", icon: Clock },
{ value: "name", label: "Nome (A→Z)", icon: SortAsc },
{ value: "level-asc", label: "Nível (Menor)", icon: SortAsc },
{ value: "level-desc", label: "Nível (Maior)", icon: SortDesc },
{ value: "weight-asc", label: "Peso (Leves)", icon: SortAsc },
{ value: "weight-desc", label: "Peso (Pesados)", icon: SortDesc },
{ value: "category", label: "Categoria (A→Z)", icon: SortAsc },
];
const handleSearch = (query: string) => {
@@ -114,18 +129,20 @@ export function MarketplaceFilters({
rarity: [],
category: [],
priceRange: { min: 0, max: 100000 },
vocation: null,
});
setSearchQuery("");
onFilter({
rarity: [],
category: [],
priceRange: { min: 0, max: 100000 },
vocation: null,
});
onSearch("");
};
const activeFiltersCount =
activeFilters.rarity.length + activeFilters.category.length;
activeFilters.rarity.length + activeFilters.category.length + (activeFilters.vocation ? 1 : 0);
return (
<div className="space-y-6">
@@ -142,7 +159,8 @@ export function MarketplaceFilters({
{/* Filtros e ordenação */}
<div className="flex flex-wrap items-center gap-4">
{/* Filtro por raridade */}
{/* Filtro por raridade (opcional) */}
{showRarity && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" className="gap-2">
@@ -173,6 +191,7 @@ export function MarketplaceFilters({
))}
</DropdownMenuContent>
</DropdownMenu>
)}
{/* Filtro por categoria */}
<DropdownMenu>
@@ -205,6 +224,45 @@ export function MarketplaceFilters({
</DropdownMenuContent>
</DropdownMenu>
{/* Filtro por Vocação */}
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" className="gap-2">
<Filter className="h-4 w-4" />
Vocação
{activeFilters.vocation && (
<Badge variant="secondary" className="ml-1">
1
</Badge>
)}
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-48">
<DropdownMenuLabel>Filtrar por Vocação</DropdownMenuLabel>
<DropdownMenuSeparator />
{vocationOptions.map((option) => (
<DropdownMenuItem
key={option.value}
onClick={() => {
const newFilters = {
...activeFilters,
vocation:
activeFilters.vocation === option.value ? null : option.value,
};
setActiveFilters(newFilters);
onFilter(newFilters);
}}
className="flex items-center gap-2"
>
<span>{option.label}</span>
{activeFilters.vocation === option.value && (
<X className="h-3 w-3 ml-auto" />
)}
</DropdownMenuItem>
))}
</DropdownMenuContent>
</DropdownMenu>
{/* Ordenação */}
<DropdownMenu>
<DropdownMenuTrigger asChild>
@@ -278,6 +336,21 @@ export function MarketplaceFilters({
</Badge>
);
})}
{activeFilters.vocation && (
<Badge
key={activeFilters.vocation}
variant="secondary"
className="gap-1 cursor-pointer hover:bg-destructive hover:text-destructive-foreground"
onClick={() => {
const newFilters = { ...activeFilters, vocation: null };
setActiveFilters(newFilters);
onFilter(newFilters);
}}
>
{activeFilters.vocation}
<X className="h-3 w-3" />
</Badge>
)}
</div>
)}
@@ -100,6 +100,23 @@ export function EscrowExplanation() {
return (
<section className="py-20 bg-muted/30">
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify({
"@context": "https://schema.org",
"@type": "FAQPage",
mainEntity: faqItems.map((item) => ({
"@type": "Question",
name: item.question,
acceptedAnswer: {
"@type": "Answer",
text: item.answer,
},
})),
}),
}}
/>
<div className="container">
{/* Título e Subtítulo */}
<BlurFade delay={0.1}>
+5 -3
View File
@@ -13,9 +13,11 @@ export function HeroSection() {
<section className="relative min-h-[600px] flex items-center justify-center overflow-hidden bg-gradient-to-br from-background to-muted/20 px-4">
<div className="w-full max-w-4xl mx-auto flex flex-col items-center justify-center text-center space-y-8">
<BlurFade delay={0.2}>
<AnimatedGradientText className="text-5xl md:text-7xl font-bold">
{t("title")}
</AnimatedGradientText>
<h1>
<AnimatedGradientText className="text-5xl md:text-7xl font-bold">
{t("title")}
</AnimatedGradientText>
</h1>
</BlurFade>
<BlurFade delay={0.4}>
+9 -1
View File
@@ -50,7 +50,15 @@ export function HowItWorks() {
<h2 className="text-4xl font-bold mb-4">{t("title")}</h2>
<p className="text-lg text-muted-foreground max-w-2xl mx-auto">
Descubra como funciona nossa plataforma de trading segura e
eficiente
eficiente.{" "}
<a href="/market" className="text-primary hover:underline">
Explore o mercado
</a>{" "}
ou conheça nosso{" "}
<a href="#escrow" className="text-primary hover:underline">
sistema de escrow
</a>
.
</p>
</div>
+2 -2
View File
@@ -7,8 +7,8 @@ export function ShareButton() {
const handleShare = () => {
if (navigator.share) {
navigator.share({
title: "Tibia Trade Pagodera",
text: "Conheça o marketplace mais seguro para negociar itens no servidor Pagodera!",
title: "Tibia Trade",
text: "Conheça o marketplace multi-servidor mais seguro para negociar itens de Tibia!",
url: window.location.origin,
});
} else {
BIN
View File
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 868 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 856 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 678 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 683 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 887 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 950 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 861 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Loaded 100 of 2624 files, more files were not shown because too many files have changed in this diff. Show more