diff --git a/content/roadmaps.json b/content/roadmaps.json index 7ae3828b4..e4a5880f3 100644 --- a/content/roadmaps.json +++ b/content/roadmaps.json @@ -550,7 +550,6 @@ "featuredDescription": "Step by step guide to becoming a modern QA Engineer in 2022", "isUpcoming": true, "featured": true, - "landingPath": "/roadmaps/112-qa/landscape.md", "resourcesPath": "/roadmaps/112-qa/resources.md", "author": { "name": "Anas Fitiani", diff --git a/content/roadmaps/112-qa/landscape.md b/content/roadmaps/112-qa/landscape.md deleted file mode 100644 index 75ceb7a41..000000000 --- a/content/roadmaps/112-qa/landscape.md +++ /dev/null @@ -1,11 +0,0 @@ -> **Roadmap is not ready yet**. Please check back later or [subscribe to get notified](/signup). - -While we prepare the roadmap, follow this simple advice to learn anything - -> Just **pick a project and start working on it**, you will learn all that you need along the way. - -**→**   [All Roadmaps](/roadmaps)  •  [Programming guides](/guides)  •  [Subscribe](/signup) - - - - diff --git a/content/roadmaps/112-qa/meta.json b/content/roadmaps/112-qa/meta.json index 8f3b8706b..5a09cd66c 100644 --- a/content/roadmaps/112-qa/meta.json +++ b/content/roadmaps/112-qa/meta.json @@ -24,7 +24,6 @@ "featuredDescription": "Step by step guide to becoming a modern QA Engineer in 2022", "isUpcoming": true, "featured": true, - "landingPath": "./landscape.md", "resourcesPath": "./resources.md", "author": { "name": "Anas Fitiani", diff --git a/pages/[roadmap]/index.tsx b/pages/[roadmap]/index.tsx index e45f9947b..13a8c14e7 100644 --- a/pages/[roadmap]/index.tsx +++ b/pages/[roadmap]/index.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Box, Container, Image } from '@chakra-ui/react'; +import { Box, Button, Container, Flex, Heading, Image, Input, Text } from '@chakra-ui/react'; import { GlobalHeader } from '../../components/global-header'; import { OpensourceBanner } from '../../components/opensource-banner'; import { Footer } from '../../components/footer'; @@ -8,6 +8,8 @@ import MdRenderer from '../../components/md-renderer'; import Helmet from '../../components/helmet'; import { RoadmapPageHeader } from '../../components/roadmap/roadmap-page-header'; import { InteractiveRoadmapRenderer } from './interactive'; +import { FreeSignUp, SIGNUP_EMAIL_INPUT_NAME, SIGNUP_FORM_ACTION } from '../signup'; +import { BellIcon, EmailIcon } from '@chakra-ui/icons'; type RoadmapProps = { roadmap: RoadmapType; @@ -25,8 +27,8 @@ function ImageRoadmap(props: RoadmapProps) { } return ( - - + + {roadmap.title} @@ -44,7 +46,7 @@ function TextualRoadmap(props: RoadmapProps) { const LandingContent = require(`../../content/${normalizedPath}`).default; return ( - + @@ -52,11 +54,33 @@ function TextualRoadmap(props: RoadmapProps) { ); } +function UpcomingRoadmap(props: RoadmapProps) { + const { roadmap } = props; + if (!roadmap.isUpcoming) { + return null; + } + + return ( + + + + Upcoming Roadmap + Please check back later or subscribe below. + +
+ + +
+
+
+ ); +} + export default function Roadmap(props: RoadmapProps) { const { roadmap } = props; return ( - + - + + @@ -85,12 +110,12 @@ type StaticPathItem = { export async function getStaticPaths() { const roadmaps = getAllRoadmaps(); const paramsList: StaticPathItem[] = roadmaps.map((roadmap) => ({ - params: { roadmap: roadmap.id }, + params: { roadmap: roadmap.id } })); return { paths: paramsList, - fallback: false, + fallback: false }; } @@ -105,7 +130,7 @@ export async function getStaticProps(context: ContextType) { return { props: { - roadmap: getRoadmapById(roadmapId), - }, + roadmap: getRoadmapById(roadmapId) + } }; } diff --git a/pages/signup.tsx b/pages/signup.tsx index 019f4ae4d..a2628b803 100644 --- a/pages/signup.tsx +++ b/pages/signup.tsx @@ -7,7 +7,10 @@ import { CheckCircleIcon } from '@chakra-ui/icons'; import siteConfig from '../content/site.json'; import Helmet from '../components/helmet'; -function FreeSignUp() { +export const SIGNUP_FORM_ACTION = 'https://www.getrevue.co/profile/roadmap/add_subscriber'; +export const SIGNUP_EMAIL_INPUT_NAME = 'member[email]'; + +export function FreeSignUp() { return ( @@ -15,11 +18,10 @@ function FreeSignUp() { Enter your email below to get notified about the new roadmaps, guides and updates -
+ - + borderWidth={2} mb={'10px'} name={SIGNUP_EMAIL_INPUT_NAME} /> +
diff --git a/public/sitemap.xml b/public/sitemap.xml index 185adc3cc..8908329b4 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -45,7 +45,7 @@ https://roadmap.sh/python monthly - 2022-08-12T22:39:27.488Z + 2022-08-12T22:51:31.431Z 1.0 @@ -69,7 +69,7 @@ https://roadmap.sh/qa monthly - 2022-08-08T14:33:53.391Z + 2022-08-14T13:57:13.938Z 1.0 @@ -249,13 +249,13 @@ https://roadmap.sh/guides monthly - 2022-08-04T14:33:07.923Z + 2022-08-13T19:24:17.719Z 1.0 https://roadmap.sh/ monthly - 2022-08-04T14:33:07.920Z + 2022-08-13T19:24:17.721Z 1.0 @@ -279,7 +279,7 @@ https://roadmap.sh/watch monthly - 2022-08-04T14:33:17.758Z + 2022-08-13T19:31:00.946Z 1.0 \ No newline at end of file