mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-25 08:35:42 +02:00
Improve UI
This commit is contained in:
@@ -15,7 +15,7 @@ export function AIRoadmapContent(props: AIRoadmapContentProps) {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
'relative mx-auto w-full max-w-4xl',
|
'relative mx-auto w-full max-w-7xl',
|
||||||
isLoading && 'min-h-full',
|
isLoading && 'min-h-full',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
@@ -208,6 +208,8 @@ export function AIRoadmapRegenerate(props: AIRoadmapRegenerateProps) {
|
|||||||
label="Modify Prompt"
|
label="Modify Prompt"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<hr className="my-1 border-gray-200" />
|
||||||
|
|
||||||
<ActionButton
|
<ActionButton
|
||||||
onClick={saveAIRoadmap}
|
onClick={saveAIRoadmap}
|
||||||
icon={SaveIcon}
|
icon={SaveIcon}
|
||||||
|
@@ -46,6 +46,7 @@ export function AICourseCard(props: AICourseCardProps) {
|
|||||||
>
|
>
|
||||||
{/* Title and difficulty section */}
|
{/* Title and difficulty section */}
|
||||||
<div className="min-w-0 flex-1">
|
<div className="min-w-0 flex-1">
|
||||||
|
{course.difficulty && (
|
||||||
<div className="mb-1 flex items-center gap-2">
|
<div className="mb-1 flex items-center gap-2">
|
||||||
<span
|
<span
|
||||||
className={`rounded-full text-xs font-medium capitalize opacity-80 ${difficultyColor}`}
|
className={`rounded-full text-xs font-medium capitalize opacity-80 ${difficultyColor}`}
|
||||||
@@ -53,8 +54,16 @@ export function AICourseCard(props: AICourseCardProps) {
|
|||||||
{course.difficulty}
|
{course.difficulty}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
<h3 className="line-clamp-2 text-base font-semibold text-balance text-gray-900">
|
<h3
|
||||||
|
className={cn(
|
||||||
|
'line-clamp-2 text-base font-semibold text-balance text-gray-900',
|
||||||
|
{
|
||||||
|
'max-w-[95%]': variant === 'column',
|
||||||
|
},
|
||||||
|
)}
|
||||||
|
>
|
||||||
{course.title
|
{course.title
|
||||||
?.replace(": A Beginner's Guide", '')
|
?.replace(": A Beginner's Guide", '')
|
||||||
?.replace(' for beginners', '')
|
?.replace(' for beginners', '')
|
||||||
|
@@ -95,9 +95,9 @@ export function UserCoursesList() {
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
{isUserAuthenticated && !isAnyLoading && courses.length > 0 && (
|
{isUserAuthenticated && !isAnyLoading && courses.length > 0 && (
|
||||||
<div className="flex flex-col gap-2">
|
<div className="grid grid-cols-1 gap-2 md:grid-cols-2 lg:grid-cols-3 gap-2">
|
||||||
{courses.map((course) => (
|
{courses.map((course) => (
|
||||||
<AICourseCard key={course._id} course={course} />
|
<AICourseCard variant="column" key={course._id} course={course} />
|
||||||
))}
|
))}
|
||||||
|
|
||||||
<Pagination
|
<Pagination
|
||||||
|
Reference in New Issue
Block a user