Search updates

This commit is contained in:
Sean Edmunds
2025-09-04 16:43:03 -05:00
parent aef60a40c8
commit 2e05002c63
4 changed files with 223 additions and 98 deletions

View File

@@ -1,4 +1,4 @@
import { Grid, Stack } from '@mantine/core';
import { Box, Grid, Stack } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import CurrentWeather from 'components/WeatherModal/CurrentWeather';
import { useCommonHooks, useOSMAPI, useQueryAPI, useWeatherAPI } from 'hooks';
@@ -219,6 +219,7 @@ export function Homepage() {
weatherModalOpened={weatherModalOpened}
closeWeatherModal={closeWeatherModal}
openWeatherModal={openWeatherModal}
position='top'
/>
<Header
greet={displayedGreeting}
@@ -230,10 +231,10 @@ export function Homepage() {
<Bookmarks contentType={bookmarkFilter} />
</>
) : (
<>
<Box h={'100%'} w={'100%'}>
<Stack align='center'>
<LargeHeader greet={displayedGreeting} date={date} />
<Grid grow columns={24} pos={'absolute'} bottom={'1rem'} w={'50%'}>
<Grid grow columns={24} pos={'absolute'} bottom={'1rem'}>
<CurrentWeather current={current} />
</Grid>
</Stack>
@@ -243,8 +244,9 @@ export function Homepage() {
weatherModalOpened={weatherModalOpened}
closeWeatherModal={closeWeatherModal}
openWeatherModal={openWeatherModal}
position='center'
/>
</>
</Box>
)}
<SettingsButton />
</Stack>