-
Notifications
You must be signed in to change notification settings - Fork 50
/
frontend_design.txt
49 lines (40 loc) · 1.71 KB
/
frontend_design.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Single HTML page with the following sections:
1. Header:
- Title: "Dota 2 Hero Analyzer and Picker"
- Subtitle: "Explore heroes and get AI-powered insights"
2. Hero Grid:
- Display all Dota 2 heroes in a responsive grid layout
- Each hero card shows:
- Hero portrait
- Hero name
- Primary attribute (Strength/Agility/Intelligence)
- Roles (e.g., Carry, Support, Initiator)
3. Hero Details Panel (initially hidden, shown when a hero is selected):
- Larger hero portrait
- Hero name and title
- Detailed attributes (Strength, Agility, Intelligence, Move Speed, etc.)
- Abilities overview
- Lore snippet
4. AI Question-Answering Section:
- Text input for user questions
- "Ask" button to submit questions
- Response area to display AI-generated answers
5. Filters and Search:
- Search bar to filter heroes by name
- Dropdown filters for primary attribute and roles
Styling and Interactivity:
- Use CSS Grid or Flexbox for responsive layout
- Implement smooth transitions for hero selection and panel display
- Use AJAX for asynchronous communication with the backend
- Incorporate Dota 2-themed color scheme and typography
- Add tooltips for hero abilities and attributes
- Implement a loading spinner for AI responses
JavaScript Functionality:
- Fetch and display hero data from the backend
- Handle hero selection and update the details panel
- Implement search and filtering functionality
- Send user questions to the backend and display AI-generated responses
- Add keyboard navigation for accessibility
Responsive Design:
- Ensure the layout adapts to different screen sizes (desktop, tablet, mobile)
- Use media queries to adjust the hero grid and panel layouts for smaller screens