import Link from "next/link" import { ArrowRight, BookOpen, Sparkles, Flame, Heart, Swords, Building2, Rocket, Crown, Laugh, Search, Shield } from "lucide-react" import { NovelCard } from "@/components/novel-card" import { genres, getPopularNovels, getLatestNovels, getTopRatedNovels, novels } from "@/lib/data" const iconMap: Record = { Sparkles: , Flame: , Heart: , Sword: , Building: , Rocket: , Crown: , Laugh: , Search: , Shield: , } export default function HomePage() { const popularNovels = getPopularNovels(6) const latestNovels = getLatestNovels(6) const topRated = getTopRatedNovels(4) const featured = novels[3] // Anh Hung Xa Dieu return (
{/* Hero / Featured Novel */}
Truyện Nổi Bật

{featured.title}

Tác giả: {featured.author}

{featured.description}

{featured.totalChapters} chương {featured.status} {featured.rating}
{/* Popular Novels */}

Truyện Hot

Xem tất cả
{popularNovels.map((novel) => ( ))}
{/* Latest Updated */}

Mới Cập Nhật

Xem tất cả
{latestNovels.map((novel) => ( ))}
{/* Two columns: Top Rated + Genres */}
{/* Top Rated */}

Đánh Giá Cao

{topRated.map((novel, idx) => ( {idx + 1}

{novel.title}

{novel.author} - Ch. {novel.totalChapters}

{novel.rating}
))}
{/* Genres */}

Thể Loại

Xem tất cả
{genres.slice(0, 8).map((genre) => ( {iconMap[genre.icon] || }

{genre.name}

{genre.description}

))}
) }