Skip to content

Commit

Permalink
Tweak homepage content display
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoduplos committed May 15, 2024
1 parent c7ed0da commit 5905054
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/fold.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function Fold(props: SimpleGridProps) {
}

export function FoldProse(props: FlexProps) {
return <Flex flexFlow='column' gap='4' p={['4', '8']} {...props} />;
return <Flex flexFlow='column' gap='4' {...props} />;
}

export function FoldMedia(props: BoxProps) {
Expand Down
21 changes: 15 additions & 6 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import type { HeadFC } from 'gatsby';
import { Button, Flex, Text, Heading } from '@chakra-ui/react';
import { Button, Flex, Text, Heading, Divider } from '@chakra-ui/react';
import { CollecticonArrowUpRight } from '@devseed-ui/collecticons-chakra';

import PageLayout from '$components/page-layout';
Expand All @@ -16,17 +16,17 @@ export default function IndexPage() {
<Flex
flexFlow='column'
gap='8'
py='12'
px='4'
py={{ base: '8', md: '12', lg: '20' }}
px={{ base: '4', md: '8', lg: '12' }}
position='relative'
zIndex='30'
mt={{ base: '0', lg: '-40' }}
mt={{ base: '0', md: '-16', lg: '-32' }}
>
<Fold alignItems='end'>
<ChakraFade
direction='up'
triggerOnce
gridColumn={{ base: '1/-1', lg: '2/ span 5' }}
gridColumn={{ base: '1/-1', md: '1/ span 4', lg: '2/ span 5' }}
>
<FoldProse
display='flex'
Expand All @@ -47,7 +47,16 @@ export default function IndexPage() {
<ChakraFade
direction='up'
triggerOnce
gridColumn={{ base: '1/-1', lg: '7/ span 5' }}
gridColumn='1/-1'
display={{ md: 'none' }}
>
<Divider borderColor='base.200a' size='md' />
</ChakraFade>

<ChakraFade
direction='up'
triggerOnce
gridColumn={{ base: '1/-1', md: '5/ span 4', lg: '7/ span 5' }}
>
<FoldProse
display='flex'
Expand Down

0 comments on commit 5905054

Please sign in to comment.