|
|
@ -113,7 +113,9 @@ export function GenerateRoadmap() { |
|
|
|
const [roadmapTopicLimitUsed, setRoadmapTopicLimitUsed] = useState(0); |
|
|
|
const [roadmapTopicLimitUsed, setRoadmapTopicLimitUsed] = useState(0); |
|
|
|
const [isConfiguring, setIsConfiguring] = useState(false); |
|
|
|
const [isConfiguring, setIsConfiguring] = useState(false); |
|
|
|
|
|
|
|
|
|
|
|
const [openAPIKey, setOpenAPIKey] = useState<string | undefined>(getOpenAIKey()); |
|
|
|
const [openAPIKey, setOpenAPIKey] = useState<string | undefined>( |
|
|
|
|
|
|
|
getOpenAIKey(), |
|
|
|
|
|
|
|
); |
|
|
|
const isKeyOnly = IS_KEY_ONLY_ROADMAP_GENERATION; |
|
|
|
const isKeyOnly = IS_KEY_ONLY_ROADMAP_GENERATION; |
|
|
|
const isAuthenticatedUser = isLoggedIn(); |
|
|
|
const isAuthenticatedUser = isLoggedIn(); |
|
|
|
|
|
|
|
|
|
|
@ -658,7 +660,7 @@ export function GenerateRoadmap() { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
<div |
|
|
|
className={cn({ |
|
|
|
className={cn({ |
|
|
|
'relative mb-20 max-h-[800px] min-h-[800px] sm:max-h-[1000px] md:min-h-[1000px] lg:max-h-[1200px] lg:min-h-[1200px] overflow-hidden': |
|
|
|
'relative mb-20 max-h-[800px] min-h-[800px] overflow-hidden sm:max-h-[1000px] md:min-h-[1000px] lg:max-h-[1200px] lg:min-h-[1200px]': |
|
|
|
!isAuthenticatedUser, |
|
|
|
!isAuthenticatedUser, |
|
|
|
})} |
|
|
|
})} |
|
|
|
> |
|
|
|
> |
|
|
@ -666,18 +668,18 @@ export function GenerateRoadmap() { |
|
|
|
ref={roadmapContainerRef} |
|
|
|
ref={roadmapContainerRef} |
|
|
|
id="roadmap-container" |
|
|
|
id="roadmap-container" |
|
|
|
onClick={handleNodeClick} |
|
|
|
onClick={handleNodeClick} |
|
|
|
className="relative px-4 py-5 [&>svg]:mx-auto [&>svg]:max-w-[1300px]" |
|
|
|
className="relative min-h-[400px] px-4 py-5 [&>svg]:mx-auto [&>svg]:max-w-[1300px]" |
|
|
|
/> |
|
|
|
/> |
|
|
|
{!isAuthenticatedUser && ( |
|
|
|
{!isAuthenticatedUser && ( |
|
|
|
<div className="absolute bottom-0 left-0 right-0"> |
|
|
|
<div className="absolute bottom-0 left-0 right-0"> |
|
|
|
<div className="h-80 w-full bg-gradient-to-t from-gray-100 to-transparent" /> |
|
|
|
<div className="h-80 w-full bg-gradient-to-t from-gray-100 to-transparent" /> |
|
|
|
<div className="bg-gray-100"> |
|
|
|
<div className="bg-gray-100"> |
|
|
|
<div className="mx-auto px-5 max-w-[600px] flex-col items-center justify-center bg-gray-100 pt-px"> |
|
|
|
<div className="mx-auto max-w-[600px] flex-col items-center justify-center bg-gray-100 px-5 pt-px"> |
|
|
|
<div className="mt-8 text-center"> |
|
|
|
<div className="mt-8 text-center"> |
|
|
|
<h2 className="mb-0.5 sm:mb-3 text-xl sm:text-2xl font-medium"> |
|
|
|
<h2 className="mb-0.5 text-xl font-medium sm:mb-3 sm:text-2xl"> |
|
|
|
Sign up to View the full roadmap |
|
|
|
Sign up to View the full roadmap |
|
|
|
</h2> |
|
|
|
</h2> |
|
|
|
<p className="mb-6 text-sm sm:text-base text-gray-600 text-balance"> |
|
|
|
<p className="mb-6 text-balance text-sm text-gray-600 sm:text-base"> |
|
|
|
You must be logged in to view the complete roadmap |
|
|
|
You must be logged in to view the complete roadmap |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|