|
| 1 | +import React from "react" |
| 2 | +import { |
| 3 | + Flex, |
| 4 | + Container, |
| 5 | + Text, |
| 6 | + Image, |
| 7 | + Stack, |
| 8 | + Heading, |
| 9 | + AspectRatio, |
| 10 | + Button, |
| 11 | + Box, |
| 12 | + Link, |
| 13 | +} from "@chakra-ui/react" |
| 14 | +export const HeroBanner = () => { |
| 15 | + return ( |
| 16 | + <Container maxW={"7xl"}> |
| 17 | + <Stack |
| 18 | + align={"center"} |
| 19 | + spacing={{ base: 8, md: 10 }} |
| 20 | + py={{ base: 20, md: 28 }} |
| 21 | + direction={{ base: "column", md: "row" }} |
| 22 | + > |
| 23 | + <Stack flex={1} spacing={{ base: 5, md: 10 }}> |
| 24 | + <Heading |
| 25 | + lineHeight={1.1} |
| 26 | + fontWeight={600} |
| 27 | + fontSize={{ base: "3xl", sm: "4xl", lg: "6xl" }} |
| 28 | + > |
| 29 | + <Text |
| 30 | + as={"span"} |
| 31 | + position={"relative"} |
| 32 | + _after={{ |
| 33 | + content: "''", |
| 34 | + width: "full", |
| 35 | + height: "30%", |
| 36 | + position: "absolute", |
| 37 | + bottom: 1, |
| 38 | + left: 0, |
| 39 | + zIndex: -1, |
| 40 | + }} |
| 41 | + > |
| 42 | + xarray |
| 43 | + </Text> |
| 44 | + <br /> |
| 45 | + <Text as={"span"} color={"red.400"}> |
| 46 | + N-D labeled arrays and datasets in Python |
| 47 | + </Text> |
| 48 | + </Heading> |
| 49 | + <Text color={"gray.500"}> |
| 50 | + Xarray introduces labels in the form of dimensions, coordinates, and |
| 51 | + attributes on top of raw NumPy-like arrays, which allows for more |
| 52 | + intuitive, more concise, and less error-prone user experience. |
| 53 | + </Text> |
| 54 | + <Stack |
| 55 | + spacing={{ base: 4, sm: 6 }} |
| 56 | + direction={{ base: "column", sm: "row" }} |
| 57 | + > |
| 58 | + <Button |
| 59 | + rounded={"full"} |
| 60 | + size={"lg"} |
| 61 | + fontWeight={"normal"} |
| 62 | + px={6} |
| 63 | + colorScheme={"red"} |
| 64 | + bg={"red.400"} |
| 65 | + _hover={{ bg: "red.500" }} |
| 66 | + > |
| 67 | + <Link href="https://xarray.pydata.org/en/stable/getting-started-guide/quick-overview.html"> |
| 68 | + Get Started |
| 69 | + </Link> |
| 70 | + </Button> |
| 71 | + <Button rounded={"full"} size={"lg"} fontWeight={"normal"} px={6}> |
| 72 | + <Link href="https://xarray.pydata.org/en/stable/getting-started-guide/why-xarray.html"> |
| 73 | + Why xarray? |
| 74 | + </Link> |
| 75 | + </Button> |
| 76 | + </Stack> |
| 77 | + </Stack> |
| 78 | + <Flex |
| 79 | + flex={1} |
| 80 | + justify={"center"} |
| 81 | + align={"center"} |
| 82 | + position={"relative"} |
| 83 | + w={"full"} |
| 84 | + > |
| 85 | + <AspectRatio flex="1 1 auto"> |
| 86 | + <iframe |
| 87 | + src="https://www.youtube.com/embed/X0pAhJgySxk" |
| 88 | + title="xarray presentation @ SciPy 2015" |
| 89 | + allowFullScreen |
| 90 | + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 91 | + ></iframe> |
| 92 | + </AspectRatio> |
| 93 | + </Flex> |
| 94 | + </Stack> |
| 95 | + </Container> |
| 96 | + ) |
| 97 | +} |
0 commit comments