Skip to content

Commit

Permalink
cat page fix
Browse files Browse the repository at this point in the history
  • Loading branch information
the-kwisatz-haderach committed Jan 8, 2024
1 parent 7aab74c commit 1086a60
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions pages/[category]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
StoryblokComponent,
useStoryblokState,
} from '@storyblok/react'
import { Contained } from 'components/Contained/Contained'

interface Props {
story: PageStory
Expand Down Expand Up @@ -52,22 +53,24 @@ export default function Obituaries({
return (
<div>
<StoryblokComponent blok={story.content} />
<Flex
ref={ref}
backgroundColor="gray.300"
justifyContent="center"
height={32}
alignItems="center"
>
<SearchInput
title={t('search')}
value={query}
onChange={setQuery}
placeholder={t('search-placeholder')}
/>
<Flex ref={ref} backgroundColor="gray.300">
<Contained
display="flex"
justifyContent="center"
height={32}
py={[2, 4, 6]}
alignItems="center"
>
<SearchInput
title={t('search')}
value={query}
onChange={setQuery}
placeholder={t('search-placeholder')}
/>
</Contained>
</Flex>
<ProgressBar show={isFetching} />
<Box my={14}>
<ProgressBar show={isLoading || isFetching} />
<Box>
<ObituaryGrid
isLoading={isLoading}
isLoadingNext={isFetchingNextPage}
Expand All @@ -80,8 +83,6 @@ export default function Obituaries({
margin="auto"
maxW="container.xl"
width="100%"
px={3}
py={[3, 3, 5]}
onClick={scrollToTop}
/>
</Box>
Expand Down

1 comment on commit 1086a60

@vercel
Copy link

@vercel vercel bot commented on 1086a60 Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.