From abad54896130665aa7af62495a1cf01a12586e4f Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Thu, 4 Apr 2024 01:57:50 +0600 Subject: [PATCH] feat: add footer for ai generated roadmaps (#5461) * feat: add footer for ai generated roadmaps * fix: add layout in explore page --- src/components/GenerateRoadmap/GenerateRoadmap.tsx | 14 ++++++++------ src/components/GenerateRoadmap/RoadmapSearch.tsx | 4 ++-- src/pages/ai/explore.astro | 7 +++---- src/pages/ai/index.astro | 8 +++----- 4 files changed, 16 insertions(+), 17 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/explore.astro b/src/pages/ai/explore.astro index 052e09463..0c5eb0406 100644 --- a/src/pages/ai/explore.astro +++ b/src/pages/ai/explore.astro @@ -1,9 +1,8 @@ --- -import LoginPopup from '../../components/AuthenticationFlow/LoginPopup.astro'; import { ExploreAIRoadmap } from '../../components/ExploreAIRoadmap/ExploreAIRoadmap'; -import AccountLayout from '../../layouts/AccountLayout.astro'; +import BaseLayout from '../../layouts/BaseLayout.astro'; --- - + - + 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'; --- - + - - +