How fedexwarrior/landing-page works
This is a character-companion web app with chat, customizable image creation, account access, and credit purchases. The main user flow is orchestrated by the React app: users enter through the home screen, choose a product view, and can top up credits before returning from Stripe checkout. The sampled client code supports the view and checkout links shown here; the README is only a title, and the server files were indexed but not excerpted, so their internal behavior and connections are not inferred.
Main entry points: App.tsx App coordinator · HeroScreen.tsx Home screen · SignUpModal.tsx Sign-up modal · CreditsSection.tsx Credits screen
Components 20
App experience
- App coordinator
src/App.tsx - Home screen
src/components/hero/HeroScreen.tsx - Companion chat
src/components/chat-interface/ChatInterface.tsx - Chat models
src/types/chat.ts
Companion creation
- Character selection
src/components/character-selection/CharacterSelection.tsx - Character catalog
src/config/characters.ts - Image creation
src/components/image-generation/ImageGeneration.tsx - Character models
src/types/character.ts
Identity
- Sign-up modal
src/components/SignUpModal.tsx - Google sign-in
src/components/GoogleSignInButton.tsx - Auth session hook
src/hooks/useAuthHarvest.tsx
Credits and payments
- Credits screen
src/components/credits/CreditsSection.tsx - Checkout hook
src/hooks/useCredits.ts - Stripe checkout
src/components/transaction-gateway/StripeCheckout.tsx - Payment success
src/pages/SuccessPage.tsx - Payment cancel
src/pages/CancelPage.tsx - Transaction models
src/types/transaction.ts
Other components
- Visitor
- API handlers
api/index.ts - Stripe
Connections 14
- Visitor → App coordinator: uses
- App coordinator → Home screen: renders
src/App.tsx - App coordinator → Companion chat: renders
src/App.tsx - App coordinator → Image creation: renders
src/App.tsx - App coordinator → Credits screen: renders
src/App.tsx - App coordinator → Sign-up modal: renders
src/App.tsx - App coordinator → Payment success: routes
src/App.tsx - App coordinator → Payment cancel: routes
src/App.tsx - Sign-up modal → Google sign-in: renders
src/components/SignUpModal.tsx - Home screen → Character catalog: reads
src/components/hero/HeroScreen.tsx - Character selection → Character catalog: reads
src/components/character-selection/CharacterSelection.tsx - Credits screen → Checkout hook: uses
src/components/credits/CreditsSection.tsx - Checkout hook → Stripe: starts checkout
src/hooks/useCredits.ts - Payment success → Stripe: verifies session
src/pages/SuccessPage.tsx