How rose4tune/portfolio works
DLFly is a Next.js portfolio and technical blog backed by Notion as its CMS. The main visitor workflow is to open a home, blog, or project route; the route obtains content and metadata, then a screen presents lists or detail pages, with Notion record maps rendered for article bodies. The README also documents search/tag filtering, an animated keyword cloud, project showcases, and a resume. Source excerpts and README support the principal links; unsampled implementations are represented by their exact existing paths, with uncertain connections omitted.
Main entry points: blog Blog routes · projects Project routes · api Post queries · project Project screens
Components 23
Routes and navigation
- Home route
src/app/page.tsx - Blog routes
src/app/blog - Project routes
src/app/projects - Resume route
src/app/resume/page.tsx - Record map API
src/app/api/notion-recordmap/route.ts
Content and Notion
- Post queries
src/domain/posts/api - Post helpers
src/domain/posts/lib/helpers.ts - Notion metadata client
src/domain/posts/lib/notionClient.ts - Record map fetch
src/domain/notion/api/getRecordMap.ts - Notion page client
src/domain/notion/lib/client.ts - Retry helper
src/domain/notion/lib/withRetry.ts
Screens and features
- Home screen
src/screens/home/HomeScreen.tsx - Blog screens
src/screens/blog - Project screens
src/screens/project - Resume screen
src/screens/resume/ResumeScreen.tsx - Search and tags
src/widgets/SearchFilterBar - Keyword cloud
src/screens/home/ui/RandomKeywordCloud.tsx
Shared presentation
- Notion page wrapper
src/shared/ui/notion/NotionPageWrapper.tsx - Notion renderer
src/shared/ui/notion/NotionRenderer.tsx - Navigation
src/shared/layout/Navbar.tsx - Cover image utility
src/shared/lib/utils/coverImage.ts
Other components
- Visitor
- Notion CMS
Connections 29
- Visitor → Home route: opens
- Visitor → Blog routes: opens
- Visitor → Project routes: opens
- Visitor → Resume route: opens
- Home route → Home screen: renders
src/app/page.tsx - Blog routes → Post queries: queries posts
src/app/blog/page.tsx - Blog routes → Blog screens: renders
src/app/blog/page.tsx - Project routes → Post queries: queries posts
src/app/projects/page.tsx - Project routes → Project screens: renders
src/app/projects/page.tsx - Resume route → Resume screen: renders
- Post queries → Post helpers: uses
src/domain/posts/api/getPosts.ts - Post queries → Notion metadata client: queries metadata
src/domain/posts/api/getPosts.ts - Post helpers → Notion metadata client: uses
src/domain/posts/lib/helpers.ts - Notion metadata client → Notion CMS: queries database
- Record map API → Record map fetch: requests map
src/app/api/notion-recordmap/route.ts - Record map fetch → Notion page client: fetches record map
src/domain/notion/api/getRecordMap.ts - Record map fetch → Retry helper: uses retry
src/domain/notion/api/getRecordMap.ts - Notion page client → Notion CMS: fetches page
- Blog screens → Search and tags: uses
src/screens/blog/BlogScreen.tsx - Project screens → Search and tags: uses
src/screens/project/ProjectScreen.tsx - Search and tags → Blog screens: filters list
src/screens/blog/BlogScreen.tsx - Search and tags → Project screens: filters list
src/screens/project/ProjectScreen.tsx - Home screen → Keyword cloud: renders
src/screens/home/HomeScreen.tsx - Blog routes → Notion page wrapper: renders detail
src/app/blog/[slug]/page.tsx - Project routes → Notion page wrapper: renders detail
src/app/projects/[slug]/page.tsx - Notion page wrapper → Notion renderer: renders blocks
- Home screen → Cover image utility: gets project covers
- Project screens → Cover image utility: gets project covers
- Visitor → Navigation: navigates