How jenniemwei/portfolio works
1. Project shape
This is a Next.js App Router portfolio site built with TypeScript. The repo is organized around route files in src/app, reusable UI in src/components, content/config in src/data, and global styles/assets in src/styles and public.
2. Route map and page boundaries
The main routes are:
• / home page
• /info
• /else
• /work
• /work/g2-ai
• /work/g2-search
• /work/intouch
• /work/mclubs
src/app/layout.tsx provides the top-level site shell, while src/app/work/layout.tsx defines a shared layout for the work/portfolio sub-tree. That makes the “work” area a distinct presentation boundary from the rest of the site.
3. Home page composition
The home page is assembled from focused sections in src/components/home, including:
• Hero
• VisualSection
• WorkSection
• HeroRiveDog
This suggests a landing page that mixes editorial content, portfolio highlights, and a richer animated hero experience.
4. Content-driven portfolio data
The main project content appears to be centralized in src/data/home-projects.ts and src/data/project-pages.ts. These files likely act as the source of truth for project cards and project detail pages, so the UI is data-driven rather than hardcoded into route files.
5. Work/project presentation flow
src/components/cards contains the project-card system:
• ProjectCard
• ProjectCardWithPreview
• PreviewHeader
• PreviewEmbedSection
• ProjectPreviewModal
• ProjectPreviewProvider
This is the clearest interactive subsystem in the repo. The data flow is likely: project data feeds cards, cards can open a preview modal, and the modal renders an embedded preview section with shared header/chrome.
6. Embedded preview and browser chrome behavior
src/lib/embedChrome.ts and the PreviewEmbedSection / preview modal components indicate there is custom handling for displaying embedded project previews in a framed “browser-like” view. This is a distinct UI boundary: portfolio content is shown both as static cards and as an interactive preview experience.
7. Gallery/media subsystem
src/components/gallery contains gallery rows, thumbnail images, video thumbnails, and reveal behavior. This looks like a reusable media presentation layer for showcasing visual work, separate from the card/preview system. Media assets are served from public/thumbnails, public/play, and related folders.
8. Navigation and scrolling
Navigation is implemented in src/components/nav with:
• Nav
• SubNav
• Footer
• SectionScrollLink
• HomeScrollToSection
The presence of src/lib/home-section-scroll.ts and src/lib/scroll-behavior.ts shows that the site uses custom section-based scrolling, likely for the home page and anchored navigation between sections.
9. Specialized interaction components
The src/components/sections and src/components/home folders show smaller layout primitives like SectionHeader and SpacerSection, which help structure long-form portfolio pages. HeroRiveDog.tsx plus public/rive/dog.riv indicate one animated/interactive asset is driven by Rive, making animation an important but isolated subsystem.
10. Styling and assets
Styling uses CSS Modules for component-local styles plus src/styles/globals.css for global rules. The public directory contains the site’s font assets (Saans family), icons, thumbnails, videos/play assets, and Rive files. This suggests a visually customized portfolio where typography and media assets are part of the architecture, not just decoration.
11. Overall architecture at a glance
The repo is structured as:
• Route layer: page files and layouts in src/app
• Presentation layer: reusable components in src/components
• Content layer: portfolio data in src/data
• Interaction helpers: scroll/embed utilities in src/lib
• Asset layer: fonts, images, video, animation in public
The key architectural pattern is a content-driven portfolio UI with a strong separation between route shells, reusable visual components, and interactive preview/scroll behaviors.
Main entry points: layout.tsx Site shell · page.tsx Home page · Nav.tsx Navigation · ProjectCard.tsx Project cards
Components 22
App routes
Next.js App Router pages and layouts.
- Site shell · Top-level application layout and global frame.
src/app/layout.tsx - Home page · Landing route assembled from home sections.
src/app/page.tsx - Info page · Standalone informational route.
src/app/info/page.tsx - Else page · Standalone alternate route.
src/app/else/page.tsx - Work shell · Shared presentation boundary for work pages.
src/app/work/layout.tsx - Project pages · Individual portfolio detail routes under the work subtree.
Home experience
Landing page sections and hero composition.
- Hero · Primary landing hero content.
src/components/home/Hero.tsx - Visual section · Supporting visual/editorial landing section.
src/components/home/VisualSection.tsx - Work section · Homepage portfolio highlight section.
src/components/home/WorkSection.tsx - Rive dog · Interactive hero animation backed by a Rive asset.
src/components/home/HeroRiveDog.tsx
Shared UI
Reusable navigation, cards, gallery, and section primitives.
- Project cards · Project card and preview entrypoint components.
src/components/cards/ProjectCard.tsx - Preview state · Shared preview/modal state for interactive project cards.
src/components/cards/ProjectPreviewProvider.tsx - Embed view · Browser-like embedded preview section.
src/components/cards/PreviewEmbedSection.tsx - Gallery · Reusable gallery rows and thumbnail/video presentation.
src/components/gallery/GalleryRow.tsx - Navigation · Site navigation, footer, and scroll-linked controls.
src/components/nav/Nav.tsx - Section primitives · Shared section header and spacer building blocks.
src/components/sections/SectionHeader.tsx
Content data
Portfolio content sources.
- Home projects · Source data for homepage project highlights.
src/data/home-projects.ts - Project pages data · Source data for individual project detail pages.
src/data/project-pages.ts
Interactions
Scroll, embed, and browser-chrome helpers.
- Embed chrome · Custom browser-chrome framing for embedded previews.
src/lib/embedChrome.ts - Scroll utils · Section scroll and scroll-behavior helpers.
src/lib/home-section-scroll.ts
Assets
Fonts, media, and animation files served from public.
- Typography · Saans font family used for the site.
public/Saans/Saans-TRIAL-Regular.otf - Rive asset · Rive animation used by the hero component.
public/rive/dog.riv
Connections 21
- Site shell → Navigation: renders · Global shell includes site navigation and footer.
- Site shell → Home page: hosts · Top-level app layout provides the frame for routes.
- Site shell → Info page: hosts · Top-level app layout provides the frame for routes.
- Site shell → Else page: hosts · Top-level app layout provides the frame for routes.
- Site shell → Work shell: wraps · Work subtree is nested under the app shell.
- Work shell → Project pages: frames · Shared work layout presents all portfolio detail routes.
- Home page → Hero: composes · Home route is assembled from section components.
- Home page → Visual section: composes · Home route is assembled from section components.
- Home page → Work section: composes · Home route is assembled from section components.
- Hero → Rive dog: includes · Hero integrates the animated dog component.
- Rive dog → Rive asset: uses · Animation component is driven by the Rive file.
- Home page → Home projects: sources · Homepage work highlights come from centralized data.
- Project cards → Home projects: consumes · Cards render portfolio entries from shared content.
- Project cards → Preview state: opens · Preview-enabled cards launch shared preview state.
- Preview state → Embed view: renders · Preview state drives the embedded preview surface.
- Embed view → Embed chrome: frames · Embedded preview uses browser-like chrome helpers.
- Project pages → Project pages data: sources · Detail routes are driven by shared project-page content.
- Navigation → Scroll utils: coordinates · Navigation and section links rely on custom scroll behavior.
- Navigation → Section primitives: uses · Navigation and page structure share section primitives.
- Gallery → Project cards: pairs with · Gallery and card system form the visual portfolio toolkit.
- Visual section → Typography: styles with · Visual sections rely on the custom typography asset.