From 95d70c521a179ab26d7a93a9b6dee7a0442ca145 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Wed, 3 Apr 2024 22:12:27 +0600 Subject: [PATCH] feat: add footer for ai generated roadmaps --- src/components/GenerateRoadmap/GenerateRoadmap.tsx | 14 ++++++++------ src/components/GenerateRoadmap/RoadmapSearch.tsx | 4 ++-- src/pages/ai/index.astro | 8 +++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/GenerateRoadmap/GenerateRoadmap.tsx b/src/components/GenerateRoadmap/GenerateRoadmap.tsx index 5e492dc7e..621150ace 100644 --- a/src/components/GenerateRoadmap/GenerateRoadmap.tsx +++ b/src/components/GenerateRoadmap/GenerateRoadmap.tsx @@ -113,7 +113,9 @@ export function GenerateRoadmap() { const [roadmapTopicLimitUsed, setRoadmapTopicLimitUsed] = useState(0); const [isConfiguring, setIsConfiguring] = useState(false); - const [openAPIKey, setOpenAPIKey] = useState(getOpenAIKey()); + const [openAPIKey, setOpenAPIKey] = useState( + getOpenAIKey(), + ); const isKeyOnly = IS_KEY_ONLY_ROADMAP_GENERATION; const isAuthenticatedUser = isLoggedIn(); @@ -658,7 +660,7 @@ export function GenerateRoadmap() {
@@ -666,18 +668,18 @@ export function GenerateRoadmap() { ref={roadmapContainerRef} id="roadmap-container" 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 && (
-
+
-

+

Sign up to View the full roadmap

-

+

You must be logged in to view the complete roadmap

diff --git a/src/components/GenerateRoadmap/RoadmapSearch.tsx b/src/components/GenerateRoadmap/RoadmapSearch.tsx index 67ddc4884..5043b7d4d 100644 --- a/src/components/GenerateRoadmap/RoadmapSearch.tsx +++ b/src/components/GenerateRoadmap/RoadmapSearch.tsx @@ -45,7 +45,7 @@ export function RoadmapSearch(props: RoadmapSearchProps) { const randomTerms = ['OAuth', 'APIs', 'UX Design', 'gRPC']; return ( -
+
{isConfiguring && ( { @@ -55,7 +55,7 @@ export function RoadmapSearch(props: RoadmapSearchProps) { }} /> )} -
+

Generate roadmaps with AI AI Roadmap Generator diff --git a/src/pages/ai/index.astro b/src/pages/ai/index.astro index 149e2064a..78e003282 100644 --- a/src/pages/ai/index.astro +++ b/src/pages/ai/index.astro @@ -1,10 +1,8 @@ --- -import LoginPopup from '../../components/AuthenticationFlow/LoginPopup.astro'; import { GenerateRoadmap } from '../../components/GenerateRoadmap/GenerateRoadmap'; -import AccountLayout from '../../layouts/AccountLayout.astro'; +import BaseLayout from '../../layouts/BaseLayout.astro'; --- - + - - +