Add a new JSON file public/series.json that defines detailed metadata for multiple ESP32 series variants. The file includes entries for: ESP32, ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C5, ESP32-C6, ESP32-P4 and ESP32-H2. Each entry provides human-friendly and technical fields such as: - nome_completo, icone, descricao - arquitetura, nucleos, frequencia, coprocessador_ulp, aceleradores_ia (when applicable) - wireless capabilities (Wi‑Fi, Bluetooth, Zigbee/Thread, Matter), USB, Ethernet - memory details (SRAM, RTC SRAM, ROM, external flash/PSRAM) - peripherals and I/O counts (GPIO, ADC, DAC, touch, UART, SPI, I2C, I2S, PWM, SDIO, etc.) - sensor info, temperature ranges, datasheet links and UI color values This file will be used to power device/series lists and UI displays with consistent, localized technical descriptions and links to datasheets.
133 lines
7.7 KiB
React
133 lines
7.7 KiB
React
import Header from "@/components/Header";
|
|
import Footer from "@/components/Footer";
|
|
import Link from "next/link";
|
|
import seriesData from "@/public/series.json";
|
|
|
|
export default function Series() {
|
|
const series = Object.entries(seriesData);
|
|
|
|
return (
|
|
<div className="bg-linear-to-br from-blue-50 via-white to-purple-50 min-h-screen">
|
|
<Header />
|
|
|
|
<main className="px-4 pt-16 pb-8 max-w-7xl mx-auto">
|
|
<div className="text-center mb-12">
|
|
<h1 className="text-5xl md:text-6xl font-extrabold bg-linear-to-r from-blue-600 via-purple-600 to-pink-600 bg-clip-text text-transparent mb-4">
|
|
Séries ESP32
|
|
</h1>
|
|
|
|
<p className="text-lg text-gray-600 max-w-2xl mx-auto">
|
|
Explore toda a família ESP32. Cada série foi projetada para atender necessidades específicas,
|
|
desde projetos simples até aplicações de IA e IoT avançadas.
|
|
</p>
|
|
</div>
|
|
|
|
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
|
{series.map(([key, serie]) => (
|
|
<Link
|
|
key={key}
|
|
href={`/series/${key}`}
|
|
className="group"
|
|
>
|
|
<div className="bg-white rounded-2xl shadow-lg hover:shadow-2xl transform hover:-translate-y-2 transition-all duration-300 border-2 border-gray-100 hover:border-opacity-50 h-full"
|
|
style={{ '--hover-color': serie.cor }}>
|
|
|
|
<div className="p-6 border-b border-gray-100">
|
|
<div className="flex items-center justify-between mb-3">
|
|
<span className="text-4xl">{serie.icone}</span>
|
|
<span className="px-3 py-1 rounded-full text-xs font-semibold text-white"
|
|
style={{ backgroundColor: serie.cor }}>
|
|
{serie.arquitetura.includes("RISC-V") ? "RISC-V" : "Xtensa"}
|
|
</span>
|
|
</div>
|
|
|
|
<h2 className="text-2xl font-bold text-gray-800 mb-2 group-hover:text-purple-600 transition-colors">
|
|
{key}
|
|
</h2>
|
|
|
|
<p className="text-sm text-gray-600 line-clamp-2">
|
|
{serie.descricao}
|
|
</p>
|
|
</div>
|
|
|
|
<div className="p-6 space-y-3">
|
|
<div className="flex items-center justify-between text-sm">
|
|
<span className="text-gray-600">⚙️ Núcleos:</span>
|
|
<span className="font-semibold text-gray-800">{serie.nucleos}</span>
|
|
</div>
|
|
|
|
<div className="flex items-center justify-between text-sm">
|
|
<span className="text-gray-600">🚀 Frequência:</span>
|
|
<span className="font-semibold text-gray-800">{serie.frequencia}</span>
|
|
</div>
|
|
|
|
<div className="flex items-center justify-between text-sm">
|
|
<span className="text-gray-600">💾 SRAM:</span>
|
|
<span className="font-semibold text-gray-800">{serie.memoria_sram}</span>
|
|
</div>
|
|
|
|
<div className="flex items-center justify-between text-sm">
|
|
<span className="text-gray-600">📶 Wi-Fi:</span>
|
|
<span className="font-semibold text-gray-800">
|
|
{String(serie.wifi).includes("Não") ? "❌" : "✅"}
|
|
</span>
|
|
</div>
|
|
|
|
<div className="flex items-center justify-between text-sm">
|
|
<span className="text-gray-600">📱 Bluetooth:</span>
|
|
<span className="font-semibold text-gray-800">
|
|
{serie.bluetooth === "Não" ? "❌" : "✅"}
|
|
</span>
|
|
</div>
|
|
|
|
{serie.aceleradores_ia && (
|
|
<div className="pt-2 border-t border-gray-100">
|
|
<span className="inline-block px-2 py-1 bg-purple-100 text-purple-700 text-xs font-semibold rounded">
|
|
🤖 Aceleradores IA
|
|
</span>
|
|
</div>
|
|
)}
|
|
|
|
{serie.matter === "Sim" && (
|
|
<div className="pt-2 border-t border-gray-100">
|
|
<span className="inline-block px-2 py-1 bg-green-100 text-green-700 text-xs font-semibold rounded">
|
|
🏠 Suporte Matter
|
|
</span>
|
|
</div>
|
|
)}
|
|
</div>
|
|
|
|
<div className="px-6 pb-6">
|
|
<div className="flex items-center justify-between text-sm font-semibold group-hover:text-purple-600 transition-colors">
|
|
<span>Ver Detalhes</span>
|
|
<span className="transform group-hover:translate-x-2 transition-transform">→</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</Link>
|
|
))}
|
|
</div>
|
|
|
|
<div className="mt-8 bg-white rounded-2xl shadow-lg p-8 border border-gray-100">
|
|
<h3 className="text-2xl font-bold text-gray-800 mb-4 text-center">
|
|
💡 Não sabe qual escolher?
|
|
</h3>
|
|
<p className="text-gray-600 text-center max-w-2xl mx-auto mb-6">
|
|
Compare as especificações de cada série para encontrar a mais adequada ao seu projeto.
|
|
Considere requisitos de conectividade, processamento e recursos específicos.
|
|
</p>
|
|
<div className="flex justify-center">
|
|
<Link
|
|
href="/comparacao"
|
|
className="bg-linear-to-r from-blue-600 to-purple-600 text-white px-6 py-3 rounded-xl font-semibold shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300"
|
|
>
|
|
📊 Comparar Séries
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<Footer />
|
|
</div>
|
|
);
|
|
} |