Showing
1 changed file
with
96 additions
and
3 deletions
| 1 | import React, { useEffect } from 'react' | 1 | import React, { useEffect } from 'react' |
| 2 | -import { BrowserRouter, Route, Redirect, Switch, Link } from 'react-router-dom' | 2 | +import { BrowserRouter, Route, Redirect, Switch, Link, useHistory } from 'react-router-dom' |
| 3 | -import { Container } from '@chakra-ui/react' | 3 | +import { |
| 4 | + Container, | ||
| 5 | + Heading, | ||
| 6 | + Button, | ||
| 7 | + Segment, | ||
| 8 | + Message, | ||
| 9 | + Form, | ||
| 10 | + Input, | ||
| 11 | + Transition, | ||
| 12 | + Select, | ||
| 13 | + Checkbox, | ||
| 14 | + FormControl, | ||
| 15 | + FormLabel, | ||
| 16 | + FormErrorMessage, | ||
| 17 | + FormHelperText, | ||
| 18 | + VStack, | ||
| 19 | + Stack, | ||
| 20 | + StackDivider, | ||
| 21 | + Box, | ||
| 22 | + Text, | ||
| 23 | + List, ListItem, ListIcon, OrderedList, UnorderedList, | ||
| 24 | + Table, | ||
| 25 | + Thead, | ||
| 26 | + Tbody, | ||
| 27 | + Tfoot, | ||
| 28 | + Tr, | ||
| 29 | + Th, | ||
| 30 | + Td, | ||
| 31 | + TableCaption, | ||
| 32 | + Flex, | ||
| 33 | + HStack, | ||
| 34 | + Wrap, | ||
| 35 | +} from '@chakra-ui/react' | ||
| 36 | +import { | ||
| 37 | + Divider, | ||
| 38 | +} from 'semantic-ui-react' | ||
| 39 | + | ||
| 40 | + | ||
| 41 | +const Feature = ({ title, desc, ...rest }) => { | ||
| 42 | + return ( | ||
| 43 | + <Box p={5} shadow="md" borderWidth="1px" {...rest}> | ||
| 44 | + <Heading fontSize="xl">{title}</Heading> | ||
| 45 | + <Text mt={4}>{desc}</Text> | ||
| 46 | + </Box> | ||
| 47 | + ) | ||
| 48 | +} | ||
| 4 | 49 | ||
| 5 | 50 | ||
| 6 | const Index = () => { | 51 | const Index = () => { |
| 52 | + const history = useHistory() | ||
| 53 | + | ||
| 7 | return ( | 54 | return ( |
| 8 | <Container> | 55 | <Container> |
| 9 | - asdfasdfasdf | 56 | + <Divider hidden /> |
| 57 | + <Wrap justify="right"> | ||
| 58 | + <Button size="xs" colorScheme="blue" variant="outline" | ||
| 59 | + onClick={() => history.push('/sign-in') } | ||
| 60 | + > | ||
| 61 | + SIGN IN | ||
| 62 | + </Button> | ||
| 63 | + <Button size="xs" colorScheme="blue" | ||
| 64 | + onClick={() => history.push('/sign-up') } | ||
| 65 | + > | ||
| 66 | + SIGN UP | ||
| 67 | + </Button> | ||
| 68 | + </Wrap> | ||
| 69 | + | ||
| 70 | + <Heading>The Infrastructure Cloud</Heading> | ||
| 71 | + <Text>Easily deploy cloud servers, bare metal, and storage worldwide!</Text> | ||
| 72 | + | ||
| 73 | + <Divider hidden /> | ||
| 74 | + | ||
| 75 | + | ||
| 76 | + <Stack spacing={8}> | ||
| 77 | + <Feature | ||
| 78 | + title='Cloud Compute' | ||
| 79 | + desc='Powerful compute instances with Intel CPUs and 100% SSD storage.' | ||
| 80 | + /> | ||
| 81 | + | ||
| 82 | + <Feature | ||
| 83 | + title='Bare Metal' | ||
| 84 | + desc='Fully automated dedicated servers with zero virtualization layer.' | ||
| 85 | + /> | ||
| 86 | + </Stack > | ||
| 87 | + | ||
| 88 | + <Divider hidden /> | ||
| 89 | + | ||
| 90 | + <Stack spacing={8}> | ||
| 91 | + <Feature | ||
| 92 | + title='Block Storage' | ||
| 93 | + desc='Fast SSD-backed scalable and redundant storage with up to 10TB volumes.' | ||
| 94 | + /> | ||
| 95 | + | ||
| 96 | + <Feature | ||
| 97 | + title='Dedicated Cloud' | ||
| 98 | + desc='Dedicated cloud compute instances without the noisy neighbors.' | ||
| 99 | + /> | ||
| 100 | + </Stack > | ||
| 101 | + | ||
| 102 | + <Divider hidden /> | ||
| 10 | </Container> | 103 | </Container> |
| 11 | ) | 104 | ) |
| 12 | } | 105 | } | ... | ... |
-
Please register or login to post a comment