Mobile and style improvements

This commit is contained in:
Sean Edmunds
2025-03-28 14:25:33 -05:00
parent e935b13baf
commit 332c759ed0
23 changed files with 743 additions and 572 deletions

View File

@@ -1,5 +1,4 @@
import { Group, Stack, Text } from '@mantine/core';
import { WeatherModal } from 'components';
import { useCommonHooks } from 'hooks';
import { useEffect, useState } from 'react';
import { textClasses } from 'styles';
@@ -9,12 +8,8 @@ function Header({
date,
current,
setCurrent,
outlook,
extendedForecast,
weather,
basicWeather,
weatherModalOpened,
closeWeatherModal,
openWeatherModal,
}: any) {
const [time, setTime] = useState(new Date());
@@ -127,6 +122,7 @@ function Header({
position: 'absolute',
bottom: isMobile ? -32 : 0,
right: 16,
cursor: 'pointer',
}}
onClick={openWeatherModal}
>
@@ -158,13 +154,6 @@ function Header({
</Text>
</Group>
</Stack>
<WeatherModal
current={current}
outlook={outlook}
extendedForecast={extendedForecast}
closeWeatherModal={closeWeatherModal}
weatherModalOpened={weatherModalOpened}
/>
</Stack>
);
}