7d85446ac5
feat: add page transition animations and loading indicators
...
- Add nextjs-toploader for instant top progress bar on navigation
- Add next-view-transitions for View Transitions API page transitions
- Enhance template.tsx page enter animation (0.45s, scale effect)
- Replace next/link with next-view-transitions Link for smooth transitions
- Add prefers-reduced-motion support for accessibility
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-02-13 23:07:51 +08:00
0bb3ee40c6
Optimize performance: Replace Framer Motion and FontAwesome, convert Mastodon to Server Component
...
Major performance optimizations addressing PageSpeed Insights warnings:
**Phase 1: Replace Framer Motion with CSS (~60-100KB savings)**
- Remove Framer Motion from components/post-layout.tsx
- Add CSS transitions to styles/globals.css for TOC animations
- Replace motion.div/motion.button with regular elements + CSS classes
- Remove framer-motion package dependency
**Phase 2: Replace FontAwesome with React Icons (~150-250KB savings)**
- Replace FontAwesome in 16 components with react-icons
- Use Feather icons (react-icons/fi) for UI elements
- Use FontAwesome brand icons (react-icons/fa) for social media
- Remove 4 @fortawesome packages (@fortawesome/fontawesome-svg-core,
@fortawesome/free-brands-svg-icons, @fortawesome/free-solid-svg-icons,
@fortawesome/react-fontawesome)
- Updated components:
- app/error.tsx, app/tags/page.tsx, app/tags/[tag]/page.tsx
- components/hero.tsx, components/mastodon-feed.tsx
- components/meta-item.tsx, components/nav-menu.tsx
- components/post-card.tsx, components/post-layout.tsx
- components/post-list-item.tsx, components/post-list-with-controls.tsx
- components/post-storyline-nav.tsx, components/post-toc.tsx
- components/right-sidebar.tsx, components/search-modal.tsx
- components/site-footer.tsx, components/theme-toggle.tsx
**Phase 3: Convert Mastodon Feed to Server Component**
- Convert components/mastodon-feed.tsx from Client Component to async Server Component
- Replace client-side useEffect fetching with server-side ISR
- Add 30-minute revalidation (next: { revalidate: 1800 })
- Eliminate 2 blocking client-side network requests
- Remove loading state (rendered on server)
**Total Impact:**
- JavaScript bundle: ~210-350KB reduction
- Blocking network requests: 2 eliminated
- Main thread time: Reduced by ~100-160ms
- Build: ✅ Verified successful
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-20 21:51:24 +08:00
4c08413936
Migrate to Contentlayer2
2025-11-19 21:46:49 +08:00
e73f37da76
Hide next station when no newer posts
2025-11-18 23:10:15 +08:00
80d0b236c5
Refine navigation and post UI
2025-11-18 17:34:05 +08:00
c404be0822
Remove subtitles from storyline nav cards
2025-11-18 17:03:18 +08:00
71680252a4
Show only previous/next cards in storyline rail
2025-11-18 17:01:22 +08:00
3d3090c4e2
Hide subtitle on current storyline station
2025-11-18 16:59:33 +08:00
904434774b
Streamline storyline rail into linear layout
2025-11-18 16:57:13 +08:00
91dec52db6
Refine storyline rail to minimalist arrow layout
2025-11-18 16:54:35 +08:00
df10c8b751
Simplify storyline navigation aesthetics
2025-11-18 16:51:59 +08:00
96ebca37d6
Add storyline navigation rail for posts
2025-11-18 16:45:46 +08:00