diff --git a/components/roadmap/roadmap-page-header.tsx b/components/roadmap/roadmap-page-header.tsx
index fbca9cda8..5518ca439 100644
--- a/components/roadmap/roadmap-page-header.tsx
+++ b/components/roadmap/roadmap-page-header.tsx
@@ -8,17 +8,63 @@ import {
Container,
Flex,
Heading,
+ Input,
Link,
+ Modal,
+ ModalBody,
+ ModalCloseButton,
+ ModalContent,
+ ModalOverlay,
Stack,
Text,
+ useDisclosure
} from '@chakra-ui/react';
-import { ChatIcon, AtSignIcon, DownloadIcon } from '@chakra-ui/icons';
+import { AtSignIcon, ChatIcon, DownloadIcon } from '@chakra-ui/icons';
import React from 'react';
+import { SIGNUP_EMAIL_INPUT_NAME, SIGNUP_FORM_ACTION } from '../../pages/signup';
type RoadmapPageHeaderType = {
roadmap: RoadmapType;
};
+function RoadmapDownloader() {
+ const { isOpen, onOpen, onClose } = useDisclosure();
+ const initialRef = React.useRef(null);
+
+ return (
+ <>
+ }
+ display={['none', 'flex']}
+ colorScheme='yellow'
+ variant='solid'
+ _hover={{ textDecoration: 'none' }}
+ >
+ Download
+
+
+
+
+
+
+
+ Download Roadmap
+ Enter your email below to receive the download link.
+
+
+
+
+ >
+ );
+}
+
export function RoadmapPageHeader(props: RoadmapPageHeaderType) {
const { roadmap } = props;
@@ -27,13 +73,13 @@ export function RoadmapPageHeader(props: RoadmapPageHeaderType) {
pt={['25px', '20px', '45px']}
pb={['20px', '15px', '30px']}
borderBottomWidth={1}
- mb="30px"
+ mb='30px'
>
-
+
{roadmap.description}
-
+
- {roadmap.pdfUrl && (
- }
- d={['none', 'flex']}
- colorScheme="yellow"
- variant="solid"
- _hover={{ textDecoration: 'none' }}
- >
- Download
-
- )}
+
+
}
_hover={{ textDecoration: 'none' }}
>
@@ -95,10 +126,10 @@ export function RoadmapPageHeader(props: RoadmapPageHeaderType) {
as={Link}
href={`${siteConfig.url.issue}?title=[Suggestion] ${roadmap.title}`}
target='_blank'
- size="xs"
- py="14px"
- px="10px"
- colorScheme="green"
+ size='xs'
+ py='14px'
+ px='10px'
+ colorScheme='green'
leftIcon={}
_hover={{ textDecoration: 'none' }}
>
@@ -109,16 +140,16 @@ export function RoadmapPageHeader(props: RoadmapPageHeaderType) {
{isInteractiveRoadmap(roadmap.id) && (
-
+
New
Resources are here, try clicking any nodes.