import { ReactNode } from 'react';
import {
Stack,
Container,
Box,
Flex,
Text,
Heading,
SimpleGrid,
} from '@chakra-ui/react';
export default function StatsGridWithImage() {
return (
<Box bg={'gray.800'} position={'relative'}>
<Flex
flex={1}
zIndex={0}
display={{ base: 'none', lg: 'flex' }}
backgroundImage="url('/templates/stats-grid-with-image.png')"
backgroundSize={'cover'}
backgroundPosition="center"
backgroundRepeat="no-repeat"
position={'absolute'}
width={'50%'}
insetY={0}
right={0}>
<Flex
bgGradient={'linear(to-r, gray.800 10%, transparent)'}
w={'full'}
h={'full'}
/>
</Flex>
<Container maxW={'7xl'} zIndex={10} position={'relative'}>
<Stack direction={{ base: 'column', lg: 'row' }}>
<Stack
flex={1}
color={'gray.400'}
justify={{ lg: 'center' }}
py={{ base: 4, md: 20, xl: 60 }}>
<Box mb={{ base: 8, md: 20 }}>
<Text
fontFamily={'heading'}
fontWeight={700}
textTransform={'uppercase'}
mb={3}
fontSize={'xl'}
color={'gray.500'}>
Technology
</Text>
<Heading
color={'white'}
mb={5}
fontSize={{ base: '3xl', md: '5xl' }}>
21st century agriculture
</Heading>
<Text fontSize={'xl'} color={'gray.400'}>
The NewLife™ technology allows you to monitor your crops and get
complete insights at real time. The proprietary
software/hardware ecosystem prevents your plants from getting
neglected.
</Text>
</Box>
<SimpleGrid columns={{ base: 1, md: 2 }} spacing={10}>
{stats.map((stat) => (
<Box key={stat.title}>
<Text
fontFamily={'heading'}
fontSize={'3xl'}
color={'white'}
mb={3}>
{stat.title}
</Text>
<Text fontSize={'xl'} color={'gray.400'}>
{stat.content}
</Text>
</Box>
))}
</SimpleGrid>
</Stack>
<Flex flex={1} />
</Stack>
</Container>
</Box>
);
}
const StatsText = ({ children }: { children: ReactNode }) => (
<Text as={'span'} fontWeight={700} color={'white'}>
{children}
</Text>
);
const stats = [
{
title: '10+',
content: (
<>
<StatsText>Software modules</StatsText> for detailed monitoring and
real-time analytics
</>
),
},
{
title: '24/7',
content: (
<>
<StatsText>Analytics</StatsText> enabled right in your dashboard without
history limitations
</>
),
},
{
title: '13%',
content: (
<>
<StatsText>Farms</StatsText> in North America has chosen NewLife™ as
their management solution
</>
),
},
{
title: '250M+',
content: (
<>
<StatsText>Plants</StatsText> currently connected and monitored by the
NewLife™ software
</>
),
},
];
import { Box, Container, Heading, Text, Stack } from '@chakra-ui/react';
import { DownloadIcon } from '@chakra-ui/icons';
import Link from 'next/link';
import PlayStoreBadge from '@/components/PlayStoreBadge';
import AppStoreBadge from '@/components/AppStoreBadge';
export default function DownloadAppLinks() {
return (
<Box p={4}>
<Stack spacing={4} as={Container} maxW={'3xl'} alignItems={'center'}>
<Box
rounded={'full'}
background={'blue.500'}
w={20}
h={20}
display={'flex'}
justifyContent={'center'}
alignItems={'center'}>
<DownloadIcon color={'white'} w={10} h={10} />
</Box>
<Heading fontSize={'4xl'} align={'center'}>
Download our app
</Heading>
<Text align={'center'} color={'gray.600'} fontSize={'lg'}>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
sed diam voluptua.
</Text>
<Stack direction={['column', 'row']} pt={6}>
<Link href={'/'} passHref>
<a target={'_blank'}>
<AppStoreBadge />
</a>
</Link>
<Link href={'/'} passHref>
<a target={'_blank'}>
<PlayStoreBadge />
</a>
</Link>
</Stack>
</Stack>
</Box>
);
}
import { Box, SimpleGrid, Icon, Text, Stack, Flex } from '@chakra-ui/react';
import { ChatIcon } from '@chakra-ui/icons';
// Replace test data with your own
const features = Array.apply(null, Array(3)).map(function (x, i) {
return {
id: i,
title: 'Lorem ipsum dolor sit amet',
text:
'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.',
};
});
export default function SimpleThreeColumns() {
return (
<Box p={4}>
<SimpleGrid columns={{ base: 1, md: 3 }} spacing={10}>
{features.map((feature) => (
<Stack key={feature.id}>
<Flex
bg={'blue.400'}
w={8}
h={8}
align={'center'}
justify={'center'}
color={'white'}
rounded={'md'}
mb={1}>
<Icon as={ChatIcon} />
</Flex>
<Text fontWeight={600}>{feature.title}</Text>
<Text color={'gray.600'}>{feature.text}</Text>
</Stack>
))}
</SimpleGrid>
</Box>
);
}
import {
Box,
Container,
Heading,
SimpleGrid,
Icon,
Text,
Stack,
HStack,
VStack,
} from '@chakra-ui/react';
import { CheckIcon } from '@chakra-ui/icons';
// Replace test data with your own
const features = Array.apply(null, Array(8)).map(function (x, i) {
return {
id: i,
title: 'Lorem ipsum dolor sit amet',
text: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam.',
};
});
export default function GridListWithHeading() {
return (
<Box p={4}>
<Stack spacing={4} as={Container} maxW={'3xl'} textAlign={'center'}>
<Heading fontSize={'3xl'}>This is the headline</Heading>
<Text color={'gray.600'} fontSize={'xl'}>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
sed diam voluptua.
</Text>
</Stack>
<Container maxW={'6xl'} mt={10}>
<SimpleGrid columns={{ base: 1, md: 2, lg: 4 }} spacing={10}>
{features.map((feature) => (
<HStack key={feature.id} align={'top'}>
<Box color={'green.400'} px={2}>
<Icon as={CheckIcon} />
</Box>
<VStack align={'start'}>
<Text fontWeight={600}>{feature.title}</Text>
<Text color={'gray.600'}>{feature.text}</Text>
</VStack>
</HStack>
))}
</SimpleGrid>
</Container>
</Box>
);
}
Made on the Internet by Achim Rolle and Lazar Nikolov