1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-22 17:02:58 +02:00

Improve personalize

This commit is contained in:
Kamran Ahmed
2025-07-29 22:15:52 +01:00
parent e12eee36a7
commit 23a23d18c7
2 changed files with 12 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ import { useAuth } from '../../hooks/use-auth';
import { roadmapJSONOptions } from '../../queries/roadmap';
import { isLoggedIn } from '../../lib/jwt';
import { showLoginPopup } from '../../lib/popup';
import { cn } from '../../lib/classname';
type PersonalizedRoadmapProps = {
roadmapId: string;
@@ -206,7 +207,7 @@ export function PersonalizedRoadmap(props: PersonalizedRoadmapProps) {
/>
) : (
<button
className="group inline-flex items-center gap-1.5 border-b-2 border-b-transparent px-2 pb-2.5 text-sm font-normal text-gray-400 transition-colors hover:text-gray-700"
className="group inline-flex items-center gap-1.5 border-b-2 border-b-transparent px-2 pb-2.5 text-sm font-normal text-gray-500 transition-colors hover:text-black"
onClick={() => {
if (!isLoggedIn()) {
showLoginPopup();
@@ -226,6 +227,16 @@ export function PersonalizedRoadmap(props: PersonalizedRoadmapProps) {
<>
<PersonStandingIcon className="h-4 w-4 shrink-0" />
<span>Personalize</span>
<span
className={cn(
'ml-0.5 hidden items-center gap-0.5 rounded-full bg-yellow-200 px-2 py-0.5 text-xs font-medium text-black transition-colors sm:flex',
{
'bg-yellow-200 text-black group-hover:bg-yellow-300': true,
},
)}
>
New
</span>
</>
)}
</button>

View File

@@ -161,7 +161,6 @@ const hasProjects = projectCount > 0;
text='AI Tutor'
mobileText='AI'
isActive={false}
badgeText='New'
/>
)}
</div>