How shiruichan/shiruisan works
ShiruiSan is a bilingual personal portfolio and services site. Visitors browse the portfolio’s introduction, project case studies, services and process, then can reach the contact section; the site also exposes a contact API route. The Next.js language route mounts the portfolio client, while shared language/theme providers and translation data support the experience. The README documents the route structure, but sampled source does not establish that the contact form calls the API, so that link is omitted.
Main entry points: PortfolioApp.tsx Portfolio orchestrator · Header.tsx Navigation header · ServicesGrid.tsx Service offers · Footer.tsx Site footer
Components 21
Routing and setup
- Language page
app/[lang]/page.tsx - Portfolio client
app/(site)/components/PortfolioAppClient.tsx - Site providers
app/(site)/Providers.tsx - Contact endpoint
app/api/contact/route.ts
Portfolio experience
- Portfolio orchestrator
src/features/portfolio/PortfolioApp.tsx - Navigation header
src/features/Header.tsx - Hero introduction
src/features/portfolio/components/Hero.tsx - About section
src/features/portfolio/components/About/About.tsx - Project cases
src/features/portfolio/components/ProjectsGrid.tsx - Service offers
src/features/portfolio/components/ServicesGrid.tsx - Work process
src/features/portfolio/components/ProcessSection.tsx - Profile details
src/features/portfolio/components/About/AboutContent.tsx - Contact form
src/features/portfolio/components/ContactForm.tsx - Site footer
src/features/Footer.tsx
Content and localization
- Translation catalog
src/shared/i18n.ts - Portfolio content
src/shared/data.ts - Profile settings
src/shared/profile.ts
Shared runtime
- Language state
src/hooks/useLang.tsx - Theme state
src/hooks/useTheme.tsx - Event tracking
src/hooks/useAnalytics.ts
Other components
- Site visitor
Connections 30
- Site visitor → Language page: opens route
- Language page → Portfolio client: renders
app/[lang]/page.tsx - Portfolio client → Portfolio orchestrator: renders
app/(site)/components/PortfolioAppClient.tsx - Site providers → Language state: provides
app/(site)/Providers.tsx - Site providers → Theme state: provides
app/(site)/Providers.tsx - Portfolio orchestrator → Navigation header: renders
src/features/portfolio/PortfolioApp.tsx - Portfolio orchestrator → Hero introduction: renders
src/features/portfolio/PortfolioApp.tsx - Portfolio orchestrator → About section: renders
src/features/portfolio/PortfolioApp.tsx - Portfolio orchestrator → Project cases: renders
src/features/portfolio/PortfolioApp.tsx - Portfolio orchestrator → Service offers: renders
src/features/portfolio/PortfolioApp.tsx - Portfolio orchestrator → Work process: renders
src/features/portfolio/PortfolioApp.tsx - Portfolio orchestrator → Profile details: renders
src/features/portfolio/PortfolioApp.tsx - Portfolio orchestrator → Contact form: renders
src/features/portfolio/PortfolioApp.tsx - Portfolio orchestrator → Site footer: renders
src/features/portfolio/PortfolioApp.tsx - Portfolio orchestrator → Translation catalog: reads translations
src/features/portfolio/PortfolioApp.tsx - Portfolio orchestrator → Language state: reads language
src/features/portfolio/PortfolioApp.tsx - Navigation header → Language state: reads and sets
src/features/Header.tsx - Navigation header → Theme state: reads and sets
src/features/Header.tsx - Navigation header → Portfolio content: reads navigation
src/features/Header.tsx - Navigation header → Translation catalog: reads labels
src/features/Header.tsx - Project cases → Portfolio content: reads project data
- Service offers → Profile settings: reads contact link
src/features/portfolio/components/ServicesGrid.tsx - Service offers → Event tracking: tracks clicks
src/features/portfolio/components/ServicesGrid.tsx - Service offers → Translation catalog: reads translations
src/features/portfolio/components/ServicesGrid.tsx - Contact form → Profile settings: reads profile
src/features/portfolio/components/ContactForm.tsx - Profile details → Portfolio content: reads content
src/features/portfolio/components/About/AboutContent.tsx - Site footer → Portfolio content: reads content
src/features/Footer.tsx - Site footer → Language state: reads language
src/features/Footer.tsx - Site footer → Translation catalog: reads labels
src/features/Footer.tsx - Contact endpoint → Profile settings: reads profile
app/api/contact/route.ts