Layout change
This commit is contained in:
@@ -28,5 +28,3 @@ sudo pm2 start server.cjs
|
|||||||
- 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
|
|
||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user