I have successfully built the "Apple Books x Ancient Philosophy" ebook library.
- Initialized Next.js 15+ project with TypeScript, Tailwind CSS v4, and ESLint.
- Installed
framer-motion,lucide-react,next-themes,clsx,tailwind-merge.
- Created
src/data/books.tswith 3 classic philosophy books:- The Republic (Plato)
- Meditations (Marcus Aurelius)
- Nicomachean Ethics (Aristotle)
- Each book has 3 chapters with substantial dummy text for a realistic reading experience.
- Used high-quality Unsplash images for book covers.
- Aesthetics: Implemented a "Parchment & Deep Navy" theme.
- Light Mode:
#f8f4ecbackground,#0a0b10text. - Dark Mode:
#0a0b10background,#f8f4ectext.
- Light Mode:
- Typography:
- Headers:
Cormorant Garamond(Serif). - Body:
Geist Sans(Clean Sans).
- Headers:
- Motion: Added smooth fade-in and slide-up animations for book cards and page transitions using
framer-motion.
- Library Page: Hero section with blurred backdrop and search functionality.
- Reader: Distraction-free reading view with:
- Progress bar at the top.
- Collapsible Table of Contents.
- Smooth chapter navigation (Next/Prev).
- Theme toggle.
- Theming: Fully functional light/dark mode toggle.
- Ran
npm run buildsuccessfully. - Verified static generation of all book chapters.
cd philosophy-librarynpm run dev- Open
http://localhost:3000