Frontend interface for the Comic Book Generator, built with React and Vite.
- React 18
- Vite
- Material-UI (MUI)
- Framer Motion
- React Router
- Context API
src/
├── components/ # Reusable components
│ ├── GameNavigation/ # Game navigation
│ ├── StoryChoices/ # Choice interface
│ └── TalkWithSarah/ # AI Assistant
├── contexts/ # React contexts (Game, Sound)
├── hooks/ # Custom hooks
├── layouts/ # Layout components
├── pages/ # Application pages
└── utils/ # Utilities and API
- Interactive comic book interface
- Choice system (predefined or custom)
- Voice narration with controls
- Sound effects and ambient music
- AI Assistant "Sarah" for help
- Responsive design
# Install dependencies
yarn install
# Start development server
yarn dev
# Build for production
yarn buildThe client requires a running backend server. Configure the API URL in src/utils/api.js.
# Run tests
yarn test
# Run tests with coverage
yarn test:coverageThe project uses ESLint and Prettier to maintain clean and consistent code.
# Check style
yarn lint
# Auto-fix issues
yarn lint:fix