@@ -4,6 +4,7 @@ import { formatDate } from "@/lib/utils";
44
55import { getPosts } from "./posts/page" ;
66import { AsciiAnimation } from "@/components/ascii-animation" ;
7+ import { BlogPostCard } from "@/components/blog-post-card" ;
78
89export default async function Home ( ) {
910 const blogPosts = await getPosts ( ) ;
@@ -31,7 +32,7 @@ export default async function Home() {
3132 </section> */ }
3233
3334 { /* Featured Post */ }
34- < section className = "min-h-[90vh ] py-16 justify-end flex flex-col" >
35+ < section className = "min-h-[80vh ] py-16 justify-end flex flex-col" >
3536 < h2 className = "mb-8 text-zinc-900 dark:text-zinc-50" > Artículo Destacado</ h2 >
3637 < div className = "grid grid-cols-1 lg:grid-cols-5 gap-8" >
3738 < div className = "lg:col-span-3 space-y-4" >
@@ -43,7 +44,7 @@ export default async function Home() {
4344 < span className = "text-zinc-300 dark:text-zinc-600" > •</ span >
4445 < span className = "text-sm text-zinc-500 dark:text-zinc-400" > { featuredPost . frontmatter . tags [ 0 ] } </ span >
4546 </ div >
46- < h3 className = "text-zinc-900 dark:text-zinc-50 text-2xl font-bold" >
47+ < h3 className = "text-zinc-900 dark:text-zinc-50 text-4xl font-bold" >
4748 < Link href = { `/posts/${ featuredPost . slug } ` } > { featuredPost . frontmatter . title } </ Link >
4849 </ h3 >
4950 </ div >
@@ -66,7 +67,7 @@ export default async function Home() {
6667 </ Link >
6768 </ div >
6869 </ div >
69- < div className = "lg:col-span-2 bg-zinc-100 dark:bg-zinc-900 rounded-lg p-6" >
70+ { /* <div className="lg:col-span-2 bg-zinc-100 dark:bg-zinc-900 rounded-lg p-6">
7071 <h4 className="font-mono font-semibold mb-3 text-zinc-900 dark:text-zinc-50">Temas Relacionados</h4>
7172 <div className="flex flex-wrap gap-2">
7273 {featuredPost.frontmatter.tags.map((tag) => (
@@ -84,7 +85,7 @@ export default async function Home() {
8485 {featuredPost.frontmatter.description.split("\n").slice(0, 3).join(" ").substring(0, 300)}...
8586 </p>
8687 </div>
87- </ div >
88+ </div> */ }
8889 </ div >
8990 </ section >
9091
@@ -93,43 +94,7 @@ export default async function Home() {
9394 < h2 className = "mb-8 text-zinc-900 dark:text-zinc-50" > Artículos Recientes</ h2 >
9495 < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" >
9596 { recentPosts . map ( ( post ) => (
96- < article
97- key = { post . frontmatter . title }
98- className = "border border-zinc-200 dark:border-zinc-800 rounded-lg overflow-hidden flex flex-col"
99- >
100- < div className = "p-6 flex-1" >
101- < div className = "flex items-center space-x-2 mb-3" >
102- < time className = "text-sm text-zinc-500 dark:text-zinc-400" >
103- { formatDate ( post . frontmatter . date ) }
104- </ time >
105- < span className = "text-zinc-300 dark:text-zinc-600" > •</ span >
106- < span className = "text-sm text-zinc-500 dark:text-zinc-400" > { post . frontmatter . tags [ 0 ] } </ span >
107- </ div >
108- < h3 className = "mb-2 text-zinc-900 dark:text-zinc-50" >
109- < Link href = { `/posts/${ post . slug } ` } className = "hover:underline" >
110- { post . frontmatter . title }
111- </ Link >
112- </ h3 >
113- < p className = "mb-4 line-clamp-3 text-zinc-700 dark:text-zinc-300" > { post . frontmatter . description } </ p >
114- </ div >
115- < div className = "px-6 py-4 bg-zinc-50 dark:bg-zinc-900 border-t border-zinc-200 dark:border-zinc-800" >
116- < div className = "flex flex-wrap gap-2" >
117- { post . frontmatter . tags . slice ( 0 , 3 ) . map ( ( tag ) => (
118- < span
119- key = { tag }
120- className = "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-zinc-200 text-zinc-800 dark:bg-zinc-800 dark:text-zinc-200"
121- >
122- { tag }
123- </ span >
124- ) ) }
125- { post . frontmatter . tags . length > 3 && (
126- < span className = "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-zinc-200 text-zinc-800 dark:bg-zinc-800 dark:text-zinc-200" >
127- +{ post . frontmatter . tags . length - 3 }
128- </ span >
129- ) }
130- </ div >
131- </ div >
132- </ article >
97+ < BlogPostCard key = { post . slug } slug = { post . slug } frontmatter = { post . frontmatter } />
13398 ) ) }
13499 </ div >
135100 < div className = "mt-12 text-center" >
0 commit comments