// pages/Home.jsx function HomePage({ articles, loading, worksCount, onOpenArticle, onNav, density, variant }) { const featured = articles[0]; const rest = articles.slice(1, 5); const hasContent = articles.length > 0; return ( <> document.getElementById('articles')?.scrollIntoView({ behavior: 'smooth', block: 'start' })} />
Lo último en el blog

Artículo destacado

{hasContent && ( { e.preventDefault(); onNav('blog'); }}> Ver todos → )}
{loading ? (
Cargando artículos…
) : featured ? ( ) : (

Aún no hay artículos publicados

Vuelve pronto — o accede al panel para crear el primero.

)}
{rest.length > 0 && (
Más reciente

Lectura para esta semana

{rest.map((a) => ( ))}
)} ); } window.HomePage = HomePage;