How vijay29705/cinematic-template works
Purpose and Runtime
A Vite-built React/TypeScript single-page portfolio site, likely for a film/creative studio. It renders a marketing home page plus project-specific case-study views, with motion-heavy presentation, media playback, and custom scrolling. Browser runtime starts from src/main.tsx and mounts src/App.tsx; Vite is configured in vite.config.ts.
Application Composition
src/App.tsx is the top-level composition and route-selection boundary. It coordinates the primary page views:
• Home page: src/pages/Home.tsx
• Case-study page: src/pages/CaseStudyPage.tsx
There is no visible dedicated router directory or server/API layer, so navigation is likely handled by application state, URL inspection, or anchor-based behavior inside the app.
Content Model
Content is separated from presentation in static TypeScript data modules:
• Project/case-study records: src/data/projects.ts
• Shared studio/site content: src/data/site.ts
CaseStudyPage.tsx likely resolves a selected project from projects.ts; home sections consume site and project data to build featured work, brands, testimonials, and contact material. This is a static-content boundary: changing content should generally not require changing layout components.
Home-Page Section Pipeline
src/pages/Home.tsx assembles the vertically ordered landing experience from independent section modules. Architecturally central stages include:
• Opening identity and primary CTA: src/sections/Hero.tsx
• Work discovery: src/sections/FeaturedFilms.tsx, src/sections/CaseStudies.tsx
• Reel/video-focused experience: src/sections/FilmReel.tsx
• Studio credibility and service messaging: src/sections/About.tsx, src/sections/Services.tsx
• Social proof and closing conversion: src/sections/Testimonials.tsx, src/sections/Contact.tsx
• Persistent site closeout: src/sections/Footer.tsx
Additional visual-content blocks such as src/sections/Gallery.tsx, src/sections/Brands.tsx, and src/sections/Stats.tsx fit into this compositional pipeline.
Shared Interaction and Motion Layer
Reusable components provide the site’s visual interaction primitives:
• Persistent navigation and conversion affordance: src/components/Navbar.tsx, src/components/StickyCta.tsx
• Video/media abstraction: src/components/FilmPlayer.tsx
• Scroll and visual effects: src/components/SmoothScroll.tsx, src/components/ParallaxImage.tsx, src/components/FadeIn.tsx
• Text/cursor treatment: src/components/RevealText.tsx, src/components/CustomCursor.tsx
The motion boundary is centralized in src/lib/motion.ts; smooth-scroll integration is isolated in src/lib/lenis.ts. This keeps animation/scroll implementation details out of section-level content composition.
Styling and Assets
Global styling is rooted in src/index.css, while components own their rendered structure and likely rely on shared global classes rather than per-component stylesheet files. Static media is served directly from public/media, making it the main local asset boundary for film imagery/video and other public-facing visuals. The document shell is index.html.
External Dependencies and Constraints
The runtime depends on React, TypeScript, and Vite as indicated by package.json, with likely animation, smooth-scroll, and media-player packages reflected by src/lib/motion.ts, src/lib/lenis.ts, and src/types/react-player.d.ts. The declaration file indicates an external React video-player dependency is used through FilmPlayer.tsx. No backend, database, authentication, or deployment infrastructure is represented in the supplied tree.
Main entry points: Home.tsx Home page · App.tsx App route boundary · main.tsx React mount · index.html Document shell
Components 20
Browser Runtime
- Vite build
vite.config.ts - Document shell
index.html - React mount
src/main.tsx
Page Composition
- App route boundary · Selects home or case-study view.
src/App.tsx - Home page · Composes the vertical marketing experience.
src/pages/Home.tsx - Case-study page · Resolves and presents a selected project.
src/pages/CaseStudyPage.tsx
Home Sections
Shared Experience Layer
- Navigation & sticky CTA
- Film player · Wraps the external React video-player dependency.
src/components/FilmPlayer.tsx - Motion primitives · Scroll, parallax, fade, reveal, and cursor treatments.
- Motion configuration
src/lib/motion.ts - Smooth-scroll integration
src/lib/lenis.ts
Content & Assets
- Project records
src/data/projects.ts - Site content
src/data/site.ts - Global styles
src/index.css - Public media · Film imagery and video served directly by the browser.
public/media
Connections 20
- Vite build → Document shell: builds
- Document shell → React mount: loads
- React mount → App route boundary: mounts
- App route boundary → Home page: home view
- App route boundary → Case-study page: case-study view
- Home page → Hero: composes
- Home page → Work discovery: composes
- Home page → Film reel: composes
- Home page → Studio messaging: composes
- Home page → Social proof & contact: composes
- Work discovery → Project records: reads
- Case-study page → Project records: resolves
- Home page → Site content: reads
- App route boundary → Navigation & sticky CTA: uses
- Home page → Film player: embeds
- Film player → Public media: plays
- Home page → Motion primitives: animates with
- Motion primitives → Motion configuration: uses
- Motion primitives → Smooth-scroll integration: integrates
- React mount → Global styles: loads