diff --git a/src/components/AITutor/AITutorSidebar.tsx b/src/components/AITutor/AITutorSidebar.tsx new file mode 100644 index 000000000..2ef0ca0c8 --- /dev/null +++ b/src/components/AITutor/AITutorSidebar.tsx @@ -0,0 +1,66 @@ +import { ChevronLeft, PlusCircle, BookOpen, Compass } from 'lucide-react'; + +type AITutorSidebarProps = { + activeTab: 'new' | 'courses' | 'explore'; +}; + +const sidebarItems = [ + { + key: 'new', + label: 'New Course', + href: '/ai/new', + icon: PlusCircle, + }, + { + key: 'courses', + label: 'My Courses', + href: '/ai/courses', + icon: BookOpen, + }, + { + key: 'explore', + label: 'Explore', + href: '/ai/explore', + icon: Compass, + }, +]; + +export function AITutorSidebar(props: AITutorSidebarProps) { + const { activeTab } = props; + + return ( +
+ + + Back to roadmap.sh + + +
+

Learn with AI

+

+ Your personalized learning companion for any topic +

+
+ +
+ +
+
+ ); +} diff --git a/src/components/GenerateCourse/FineTuneCourse.tsx b/src/components/GenerateCourse/FineTuneCourse.tsx index 44d967b0f..e1641ca59 100644 --- a/src/components/GenerateCourse/FineTuneCourse.tsx +++ b/src/components/GenerateCourse/FineTuneCourse.tsx @@ -1,4 +1,3 @@ -import { useState } from 'react'; import { cn } from '../../lib/classname'; type QuestionProps = { @@ -70,7 +69,7 @@ export function FineTuneCourse(props: FineTuneCourseProps) { }} /> Tell us more to tailor the course (optional){' '} - + recommended diff --git a/src/pages/ai/index.astro b/src/pages/ai/index.astro index 3a67adf52..c0e6a1f6f 100644 --- a/src/pages/ai/index.astro +++ b/src/pages/ai/index.astro @@ -1,18 +1,23 @@ --- -import { AICourse } from '../../components/GenerateCourse/AICourse'; -import BaseLayout from '../../layouts/BaseLayout.astro'; +import { ChevronLeft, PlusCircle, BookOpen, Compass } from 'lucide-react'; import { CheckSubscriptionVerification } from '../../components/Billing/CheckSubscriptionVerification'; - +import { AICourse } from '../../components/GenerateCourse/AICourse'; +import SkeletonLayout from '../../layouts/SkeletonLayout.astro'; +import { AITutorSidebar } from '../../components/AITutor/AITutorSidebar'; const ogImage = 'https://roadmap.sh/og-images/ai-tutor.png'; --- - -
- - -
+
+ +
+ + +
+
+