Layout change

This commit is contained in:
2025-02-10 23:42:27 -06:00
parent 72349a96e0
commit b62ad44358
2 changed files with 7 additions and 9 deletions

View File

@@ -27,6 +27,4 @@ sudo pm2 start server.cjs
# TODO # TODO
- Image uploads for backgrounds - Image uploads for backgrounds
- Improve mobile - Improve mobile
- Update weather modal with design from https://github.com/esnz/react-weather-app?tab=readme-ov-file

View File

@@ -21,15 +21,15 @@ export default function CurrentWeather({ weather }: any) {
c={'var(--color-text-pri)'} c={'var(--color-text-pri)'}
style={{ style={{
fontSize: '1.375rem', fontSize: '1.375rem',
textAlign: 'left', textAlign: 'right',
}} }}
> >
Current Weather Current Weather
</Text> </Text>
</Group> </Group>
<Group gap={0} w={'100%'}> <Group gap={8} w={'100%'} justify='space-between'>
<Stack gap={0} w={'50%'}> <Stack gap={0} w={'45%'}>
<Group gap={0}> <Group gap={0} justify='flex-end'>
<WeatherIcon textDescription={`${weather.textDescription}`} /> <WeatherIcon textDescription={`${weather.textDescription}`} />
<Text fz={'7rem'} fw={200}> <Text fz={'7rem'} fw={200}>
{weather.temperature}°<sup style={{ fontSize: '3rem' }}>F</sup> {weather.temperature}°<sup style={{ fontSize: '3rem' }}>F</sup>
@@ -39,7 +39,7 @@ export default function CurrentWeather({ weather }: any) {
c={'var(--color-text-pri)'} c={'var(--color-text-pri)'}
style={{ style={{
fontSize: '1.375rem', fontSize: '1.375rem',
textAlign: 'left', textAlign: 'right',
marginTop: -32, marginTop: -32,
marginLeft: 16, marginLeft: 16,
}} }}
@@ -47,7 +47,7 @@ export default function CurrentWeather({ weather }: any) {
{weather.textDescription} {weather.textDescription}
</Text> </Text>
</Stack> </Stack>
<Stack gap={4} w={'50%'}> <Stack gap={4} w={'45%'}>
<Text> <Text>
Feels like {weather.heatIndex ?? weather.windChill ?? weather.temperature}° Feels like {weather.heatIndex ?? weather.windChill ?? weather.temperature}°
<sup>F</sup> <sup>F</sup>