This project is a React-based frontend application that implements two core features:
- Consumer Demand Analysis Page - Based on existing word frequency data, displays consumer demand statistics with support for brand, region, and consumption habit categorization
- Beef Interactive Page - Draws a cow shape where users can click different parts to view characteristics and navigate to purchase pages
- Display consumer demand data visualization charts
- Support filtering by categories (brands, regions, consumption habits)
- Automatic translation of Chinese words to English
- Responsive design supporting multiple devices
- Interactive cow shape graphic
- Click on different parts to display corresponding information
- Show meat characteristics and nutritional value
- Provide purchase links
- Clone the repository
- Install dependencies:
npm install
- Start development server:
npm run dev
- Build for production:
npm run build
sff-demo/
├── src/
│ ├── components/
│ │ ├── ConsumerAnalysis/ # Consumer demand analysis components
│ │ ├── BeefInteractive/ # Beef interactive components
│ │ └── common/ # Shared components
│ ├── pages/ # Page components
│ ├── data/ # Data processing
│ ├── utils/ # Utility functions
│ ├── types/ # TypeScript definitions
│ ├── hooks/ # Custom hooks
│ └── styles/ # Global styles
├── public/ # Static assets
└── docs/ # Documentation
- Consumer demand data from
word_frequency/json/
directory - Beef parts information and characteristics
- Translation data for Chinese to English conversion