diff --git a/src/components/Dashboard/PersonalDashboard.tsx b/src/components/Dashboard/PersonalDashboard.tsx index ebc417577..72c3387fb 100644 --- a/src/components/Dashboard/PersonalDashboard.tsx +++ b/src/components/Dashboard/PersonalDashboard.tsx @@ -1,22 +1,25 @@ import { useStore } from '@nanostores/react'; import { ChartColumn, - CheckCircle, CheckSquare, FolderGit2, - Pencil, SquarePen, Zap, - type LucideIcon, + type LucideIcon } from 'lucide-react'; import { useEffect, useState } from 'react'; import type { AllowedProfileVisibility } from '../../api/user.ts'; import { useToast } from '../../hooks/use-toast'; import { cn } from '../../lib/classname.ts'; +import type { GuideFileType } from '../../lib/guide'; import { httpGet } from '../../lib/http'; +import type { QuestionGroupType } from '../../lib/question-group'; import type { AllowedRoadmapRenderer } from '../../lib/roadmap.ts'; +import type { VideoFileType } from '../../lib/video'; import { $accountStreak, type StreakResponse } from '../../stores/streak'; import type { PageType } from '../CommandMenu/CommandMenu'; +import { FeaturedGuideList } from '../FeaturedGuides/FeaturedGuideList'; +import { FeaturedVideoList } from '../FeaturedVideos/FeaturedVideoList'; import { FavoriteRoadmaps, type AIRoadmapType, @@ -24,12 +27,21 @@ import { import { HeroRoadmap } from '../HeroSection/HeroRoadmap.tsx'; import type { ProjectStatusDocument } from '../Projects/ListProjectSolutions'; import type { UserProgress } from '../TeamProgress/TeamProgressPage'; -import { projectGroups } from '../../pages/index.astro'; -import type { QuestionGroupType } from '../../lib/question-group'; -import { FeaturedGuideList } from '../FeaturedGuides/FeaturedGuideList'; -import { FeaturedVideoList } from '../FeaturedVideos/FeaturedVideoList'; -import type { GuideFileType } from '../../lib/guide'; -import type { VideoFileType } from '../../lib/video'; + +const projectGroups = [ + { + title: 'Frontend', + id: 'frontend', + }, + { + title: 'Backend', + id: 'backend', + }, + { + title: 'DevOps', + id: 'devops', + }, +]; type UserDashboardResponse = { name: string; diff --git a/src/components/SQLCourse/ReviewsSection.tsx b/src/components/SQLCourse/ReviewsSection.tsx index a86ece8be..6faa69abd 100644 --- a/src/components/SQLCourse/ReviewsSection.tsx +++ b/src/components/SQLCourse/ReviewsSection.tsx @@ -1,4 +1,6 @@ -import { StarIcon, User2Icon } from 'lucide-react'; +import { ChevronDownIcon, StarIcon, User2Icon } from 'lucide-react'; +import { useState } from 'react'; +import { cn } from '../../../editor/utils/classname'; type Review = { name: string; @@ -9,6 +11,7 @@ type Review = { }; export function ReviewsSection() { + const [isExpanded, setIsExpanded] = useState(false); const reviews: Review[] = [ { name: 'Tomáš Janků', @@ -67,52 +70,80 @@ export function ReviewsSection() { avatarUrl: 'https://github.com/faisalahsan.png', }, { - name: 'Mian Asif', - role: 'Software Engineering Lead', + name: 'Kalvin Chakma', + role: 'Software Engineer', rating: 5, text: "Best SQL course I've taken. The progression from basic to advanced concepts is well thought out, and the challenges are excellent.", - avatarUrl: 'https://github.com/mian.png', + avatarUrl: 'https://github.com/kalvin-chakma.png', }, ]; + const visibleReviews = isExpanded ? reviews : reviews.slice(0, 6); + return ( - <> -
{review.role}
{review.role}
{review.text}
{review.text}
-