-
-
-
-
setKeyword(e.target.value)}
- onKeyDown={handleKeyDown}
- placeholder="e.g., Algebra, JavaScript, Photography"
- className="w-full rounded-md border border-gray-300 bg-white p-3 pl-10 text-gray-900 focus:ring-1 focus:ring-gray-500 focus:outline-hidden max-sm:placeholder:text-base"
- maxLength={50}
- />
+
+
+ What can I help you learn?
+
+
+ Enter a topic below to generate a personalized course for it
+
+
+
-
+
);
}
diff --git a/src/components/GenerateCourse/AICourseCard.tsx b/src/components/GenerateCourse/AICourseCard.tsx
index 0d758978b..9db197881 100644
--- a/src/components/GenerateCourse/AICourseCard.tsx
+++ b/src/components/GenerateCourse/AICourseCard.tsx
@@ -12,14 +12,6 @@ type AICourseCardProps = {
export function AICourseCard(props: AICourseCardProps) {
const { course, showActions = true, showProgress = true } = props;
- // Format date if available
- const formattedDate = course.createdAt
- ? new Date(course.createdAt).toLocaleDateString('en-US', {
- month: 'short',
- day: 'numeric',
- })
- : null;
-
// Map difficulty to color
const difficultyColor =
{
@@ -35,10 +27,10 @@ export function AICourseCard(props: AICourseCardProps) {
totalTopics > 0 ? Math.round((completedTopics / totalTopics) * 100) : 0;
return (
-
+
- {!isInitialLoading && !isUserAiCoursesLoading && !isAuthenticated && (
-
-
-
- {' '}
- to generate and save courses.
-
-
- )}
-
- {!isUserAiCoursesLoading && !isInitialLoading && courses.length === 0 && isAuthenticated && (
-
-
- You haven't generated any courses yet.
-
-
- )}
-
- {(isUserAiCoursesLoading || isInitialLoading) && (
-
- )}
-
{!isUserAiCoursesLoading && courses && courses.length > 0 && (
- {courses.map((course) => (
-
- ))}
+
+ {courses.map((course) => (
+
+ ))}
+
-
+