|
|
@ -20,6 +20,7 @@ export function RoadmapHeader(props: RoadmapHeaderProps) { |
|
|
|
description, |
|
|
|
description, |
|
|
|
_id: roadmapId, |
|
|
|
_id: roadmapId, |
|
|
|
creator, |
|
|
|
creator, |
|
|
|
|
|
|
|
team, |
|
|
|
} = useStore(currentRoadmap) || {}; |
|
|
|
} = useStore(currentRoadmap) || {}; |
|
|
|
|
|
|
|
|
|
|
|
const [isSharing, setIsSharing] = useState(false); |
|
|
|
const [isSharing, setIsSharing] = useState(false); |
|
|
@ -66,12 +67,29 @@ export function RoadmapHeader(props: RoadmapHeaderProps) { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="border-b"> |
|
|
|
<div className="border-b"> |
|
|
|
<div className="container relative py-5 sm:py-12"> |
|
|
|
<div className="container relative py-5 sm:py-12"> |
|
|
|
<div className="flex items-center gap-1.5"> |
|
|
|
{creator?.name && ( |
|
|
|
<img src={avatarUrl} className="h-5 w-5 rounded-full" /> |
|
|
|
<div className="-mb-1 flex items-center gap-1.5 text-sm text-gray-500"> |
|
|
|
<h3 className="text-sm font-medium"> |
|
|
|
<img |
|
|
|
{creator?.name || 'Anonymous'} |
|
|
|
alt={creator.name} |
|
|
|
</h3> |
|
|
|
src={avatarUrl} |
|
|
|
</div> |
|
|
|
className="h-5 w-5 rounded-full" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<span> |
|
|
|
|
|
|
|
Created by |
|
|
|
|
|
|
|
<span className="font-semibold text-gray-900"> |
|
|
|
|
|
|
|
{creator?.name} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
{team && ( |
|
|
|
|
|
|
|
<> |
|
|
|
|
|
|
|
in |
|
|
|
|
|
|
|
<span className="font-semibold text-gray-900"> |
|
|
|
|
|
|
|
{team?.name} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</> |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
)} |
|
|
|
<div className="mb-3 mt-4 sm:mb-4"> |
|
|
|
<div className="mb-3 mt-4 sm:mb-4"> |
|
|
|
<h1 className="text-2xl font-bold sm:mb-2 sm:text-4xl">{title}</h1> |
|
|
|
<h1 className="text-2xl font-bold sm:mb-2 sm:text-4xl">{title}</h1> |
|
|
|
<p className="mt-0.5 text-sm text-gray-500 sm:text-lg"> |
|
|
|
<p className="mt-0.5 text-sm text-gray-500 sm:text-lg"> |
|
|
|