How sizanrana/bok-flix works
This is a small Next.js image-hero app rather than a complete book or streaming product. The main workflow renders the home page’s hero, extracts colors from its fixed image URL, derives a gradient background, and displays a loading screen while that work is pending. The excerpts support the component and hook calls; the README describes running and opening the app but provides no product-specific features. The referenced image is not present in the supplied tree, so its asset path is unknown.
Main entry points: HeroSection.tsx Hero section · page.tsx Home page · useGetImageGradientBgCSS.ts Gradient hook · useGetImageColors.ts Color hook
Components 9
App shell
- Home page
src/app/(site)/page.tsx - Root layout
src/app/layout.tsx
Hero interface
- Hero section
src/components/heroSection/HeroSection.tsx - Loading screen
src/components/loading/FullPageLoadingScreen.tsx
Image styling
- Gradient hook
src/hooks/useGetImageGradientBgCSS.ts - Color hook
src/hooks/useGetImageColors.ts
Other components
- Visitor
- Color extractor
- Hero image
Connections 7
- Visitor → Home page: opens app
README.md - Home page → Hero section: renders
src/app/(site)/page.tsx - Hero section → Gradient hook: gets gradient
src/components/heroSection/HeroSection.tsx - Gradient hook → Color hook: gets colors
src/hooks/useGetImageGradientBgCSS.ts - Color hook → Color extractor: extracts colors
src/hooks/useGetImageColors.ts - Hero section → Loading screen: renders while loading
src/components/heroSection/HeroSection.tsx - Hero section → Hero image: displays
src/components/heroSection/HeroSection.tsx