Kombai Logo

EdTech Portal Page

figma: 11. Courses - Pro Member
figma: 11. Courses - Pro Member

Read src/components/Header/Header.tsx
Read src/theme/theme.ts
Read App.tutorialsdashboard.tsx

Grepped codebase for sidebar navigation components

Listed directory "src/components"

Read src/components/Sidebar/Sidebar.tsx
Read src/components/TutorialsDashboard/TutorialsDashboard.tsx

Planning Phase

I'll create a plan for you to review and approve.

Editable Plan Files

Here are the important artifacts that you might want to review before I start generating the code. You can review, edit and save (ctrl+s) them.

tsschema.ts
tsendpoints.ts
tsrootProps.ts
tstheme.ts
tsenums.ts

Now I'll generate the code files for the courses dashboard with progress cards, course grid layout, filters and sorting functionality.

pngpublic/images/course-icon-1.png
public/images/course-icon-1.png

pngpublic/images/course-icon-2.png
public/images/course-icon-2.png

pngpublic/images/course-icon-3.png
public/images/course-icon-3.png

pngpublic/images/course-image-1.png
public/images/course-image-1.png

pngpublic/images/course-image-2.png
public/images/course-image-2.png

pngpublic/images/course-image-3.png
public/images/course-image-3.png

pngpublic/images/course-image-4.png
public/images/course-image-4.png

pngpublic/images/course-image-5.png
public/images/course-image-5.png

pngpublic/images/course-image-6.png
public/images/course-image-6.png

tscoursesDashboardMockData.ts

Unfortunately our server is under heavy load. You may say 'Continue' to resume the generation or retry.

Now I'll generate the code files for the courses dashboard with progress cards, course grid layout, filters and sorting functionality.

tstheme.ts
tsxCourseCard.tsx
tsxAllCourseCard.tsx
tsxCoursesFiltersAndSorting.tsx
tsxCoursesDashboard.tsx
tsxHeader.tsx
tsxSidebar.tsx
tsxApp.coursesdashboard.tsx

Error while applying llm output. Retrying.

Read index.css

tsxmain.tsx
htmlindex.html

I've finished generating all the code files for the courses dashboard. Here's a brief summary of the files generated:

Files Generated/Updated:

  1. src/data/coursesDashboardMockData.ts - Mock data file containing:

    • Course interfaces and types
    • Formatting utility functions
    • Mock data for user, your courses, and all courses
  2. src/theme/theme.ts - Updated theme with course-specific colors and styling

  3. src/components/CourseCard/CourseCard.tsx - Progress card component for "Your Courses" section featuring:

    • Course icons and titles
    • Completion percentage and time left
    • Progress bars with custom styling
  4. src/components/AllCourseCard/AllCourseCard.tsx - Detailed course card for "All Courses" section with:

    • Course images and descriptions
    • Difficulty level indicators with color coding
    • Star ratings and enrollment counts
    • Duration information
  5. src/components/CoursesFiltersAndSorting/CoursesFiltersAndSorting.tsx - Header component with:

    • Filters dropdown button
    • Section title
    • Recommendation sorting dropdown
  6. src/components/CoursesDashboard/CoursesDashboard.tsx - Main dashboard component integrating:

    • Sidebar and header (reused from existing repo)
    • Your Courses section with progress cards
    • All Courses section with detailed cards
    • Filters and sorting functionality
  7. src/components/Header/Header.tsx - Updated to accept dynamic title prop

  8. src/components/Sidebar/Sidebar.tsx - Updated to show "Courses" as active instead of "Tutorials"

  9. App.coursesdashboard.tsx - Preview app file for the courses dashboard

The implementation includes all the key features:

  • ✅ Course Progress Cards with completion percentages and progress bars
  • ✅ Course Grid Layout with responsive design
  • ✅ Filters and Sorting functionality
  • ✅ Course Rating Display with star icons
  • ✅ Difficulty Level Indicators with color coding
  • ✅ Proper asset integration and Font Awesome icons
  • ✅ Theme integration with proper styling

Read src/components/Header/Header.tsx

tsxHeader.tsx

Fixed the missing NotificationIcon.svg import by replacing it with FontAwesome's faBell icon.

Input.png
Input.png
Output.png

tsxCoursesDashboard.tsx

Fixed the "Your Courses" section to use a grid layout that spans the full width with equal-sized cards.

Input.png
Input.png
Output.png

tsxAllCourseCard.tsx

Fixed the difficulty badges to remove colored backgrounds and added signal strength icons to match the original Figma design.

Open this conversation in your favorite IDE