index.tsx 425 B

12345678910111213141516171819
  1. import type { NextPage } from "next";
  2. import NovelItem from "../components/NovelItem";
  3. const Home: NextPage = () => {
  4. return (
  5. <main className="container">
  6. <h2 className="novel-title">Popular This Week</h2>
  7. <ul className="novel-list">
  8. {Array(16)
  9. .fill(1)
  10. .map((i, idx) => (
  11. <NovelItem key={idx} />
  12. ))}
  13. </ul>
  14. </main>
  15. );
  16. };
  17. export default Home;