|
| 1 | +import React from "react" |
| 2 | +import { |
| 3 | + Container, |
| 4 | + SimpleGrid, |
| 5 | + Stack, |
| 6 | + Text, |
| 7 | + Box, |
| 8 | + Heading, |
| 9 | + HStack, |
| 10 | + Icon, |
| 11 | + VStack, |
| 12 | +} from "@chakra-ui/react" |
| 13 | + |
| 14 | +import { CheckIcon } from "@chakra-ui/icons" |
| 15 | + |
| 16 | +const features = [ |
| 17 | + { |
| 18 | + title: "Interoperability", |
| 19 | + text: "Interoperable with Dask, GPU and sparse arrays libraries such as Dask, CuPy, and sparse.", |
| 20 | + }, |
| 21 | + { |
| 22 | + title: "Apply operations over named dimensions", |
| 23 | + text: "x.sum(['latitude', 'time'])", |
| 24 | + }, |
| 25 | + { |
| 26 | + title: "Select values by label instead of integer location", |
| 27 | + text: "x.sel(time='2020-01-04')", |
| 28 | + }, |
| 29 | + { |
| 30 | + title: "Vectorized operations", |
| 31 | + text: "Mathematical operations (e.g., `x - y`) vectorize across multiple dimensions (array broadcasting) based on dimension names, not shape.", |
| 32 | + }, |
| 33 | + { |
| 34 | + title: "GroupBy operations", |
| 35 | + text: " Flexible split-apply-combine operations with groupby: x.groupby('time.dayofyear').mean()", |
| 36 | + }, |
| 37 | + { |
| 38 | + title: "Database like operations", |
| 39 | + text: "Database like alignment based on coordinate labels that smoothly handles missing values: x, y = xr.align(x, y, join='outer').", |
| 40 | + }, |
| 41 | + { |
| 42 | + title: "Arbitrary metadata tracking", |
| 43 | + text: "Keep track of arbitrary metadata in the form of a Python dictionary: ds.attrs", |
| 44 | + }, |
| 45 | + { |
| 46 | + title: "Flexible and Extensible I/O backend API", |
| 47 | + text: "", |
| 48 | + }, |
| 49 | +] |
| 50 | + |
| 51 | +export const FeaturesSection = () => { |
| 52 | + return ( |
| 53 | + <Box p={4}> |
| 54 | + <Stack spacing={4} as={Container} maxW={"3xl"} textAlign={"center"}> |
| 55 | + <Heading fontSize={"3xl"}>Key Features & Capabilities</Heading> |
| 56 | + <Text color={"gray.600"} fontSize={"lg"}> |
| 57 | + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam |
| 58 | + nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, |
| 59 | + sed diam voluptua. |
| 60 | + </Text> |
| 61 | + </Stack> |
| 62 | + |
| 63 | + <Container maxW={"6xl"} mt={10}> |
| 64 | + <SimpleGrid columns={{ base: 1, md: 2, lg: 4 }} spacing={10}> |
| 65 | + {features.map((feature, index) => ( |
| 66 | + <HStack key={index} align={"top"}> |
| 67 | + <Box color={"green.400"} px={2}> |
| 68 | + <Icon as={CheckIcon} /> |
| 69 | + </Box> |
| 70 | + <VStack align={"start"}> |
| 71 | + <Text fontWeight={600}>{feature.title}</Text> |
| 72 | + <Text color={"gray.600"}>{feature.text}</Text> |
| 73 | + </VStack> |
| 74 | + </HStack> |
| 75 | + ))} |
| 76 | + </SimpleGrid> |
| 77 | + </Container> |
| 78 | + </Box> |
| 79 | + ) |
| 80 | +} |
0 commit comments