Skip to content

Commit

Permalink
Updating 'Get Started Modal'
Browse files Browse the repository at this point in the history
  • Loading branch information
H authored and H committed Jul 19, 2023
1 parent 1cde93b commit 792525f
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions src/pages/SingletonContextProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createContext, useState, useContext } from 'react';

import { useDisclosure } from '@chakra-ui/react'
import { Modal, ModalOverlay, ModalContent, ModalHeader, ModalFooter, ModalBody, ModalCloseButton } from '@chakra-ui/react'
import { Text, Icon, Spacer, Button } from '@chakra-ui/react'
import { Heading, Text, Icon, Spacer, Button, Box, Grid } from '@chakra-ui/react'

// Create a context
const SingletonContext = createContext();
Expand All @@ -20,7 +20,6 @@ export function SingletonContextProvider({ children }) {
}

function openGetStartedModal() {
console.log('openGetStartedModal()');
getStartedDisclosure.onOpen();
}

Expand All @@ -43,20 +42,36 @@ export function useSingletonContext() {

export function GetStartedModal( {isOpen, onOpen, onClose}) {
return (
<Modal isOpen={isOpen} onOpen={onOpen} onClose={onClose} size="full">
<Modal isOpen={isOpen} onOpen={onOpen} onClose={onClose} size="4xl">
<ModalOverlay />
<ModalContent m={8} borderRadius={16}>
<ModalHeader>Title - Get Started</ModalHeader>
<ModalContent m={8} borderRadius={16} bg="gray.100">
<ModalHeader>
<Heading fontSize='4xl' textAlign='center' as="h1">Get Started with PipeRider</Heading>
</ModalHeader>
<ModalCloseButton />
<ModalBody>
<Text>Modal Body</Text>
<ModalBody p={8}>
{/* TODO: Make this ROW Based on Mobile - e.g. Stack with relative directions and Boxes with Flex 1. */}
<Grid gridTemplateColumns="repeat(2, 1fr)" gap={6} textAlign='center'>
<Box bg='white' p={4} borderRadius={8}>
<Heading as="h2" fontSize='xl'>Local or Self-Hosted</Heading>
<Text my={4}>PipeRider is open source and free. Use it locally, self-host it, or add Cloud hosting later on.</Text>
<Button colorScheme='orange' mr={3} onClick={onClose} w="100%" borderRadius="100px">
Get Started with Command Line
</Button>
</Box>

<Box bg='white' p={4} borderRadius={8}>
<Heading as="h2" fontSize='xl'>Cloud</Heading>
<Text my={4}>PipeRider Cloud takes the hassle out of hosting PipeRider. This makes sharing reports easier.</Text>

<Button colorScheme='orange' mr={3} onClick={onClose} w="100%" borderRadius="100px">
Get Started with Cloud
</Button>
</Box>
</Grid>
</ModalBody>

<ModalFooter>
<Button colorScheme='blue' mr={3} onClick={onClose}>
Close
</Button>
</ModalFooter>
<ModalFooter></ModalFooter>
</ModalContent>
</Modal>
)
Expand Down

0 comments on commit 792525f

Please sign in to comment.