set weather select to widget

This commit is contained in:
Flatlogic Bot 2025-05-12 14:37:55 +00:00
parent 96a0d6d541
commit b8c1684f9a
2 changed files with 18 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -220,7 +220,17 @@ const Dashboard = () => {
</div> </div>
</div> </div>
)} )}
<div className="mb-4">
{weather && (
<div className={`${corners !== 'rounded-full' ? corners : 'rounded-3xl'} dark:bg-dark-900 ${cardsStyle} dark:border-dark-700 p-6`}>
<div className='flex justify-between items-center'>
<div>
<div className='text-lg leading-tight text-gray-500 dark:text-gray-400'>
Weather
</div>
<div className="mb-4 w-full">
<label htmlFor="city-select" className="block text-sm font-medium text-gray-700 dark:text-gray-300"> <label htmlFor="city-select" className="block text-sm font-medium text-gray-700 dark:text-gray-300">
{t('pages.dashboard.selectCity', { defaultValue: 'Select City' })} {t('pages.dashboard.selectCity', { defaultValue: 'Select City' })}
</label> </label>
@ -235,14 +245,6 @@ const Dashboard = () => {
</select> </select>
</div> </div>
{weather && (
<div className={`${corners !== 'rounded-full' ? corners : 'rounded-3xl'} dark:bg-dark-900 ${cardsStyle} dark:border-dark-700 p-6`}>
<div className='flex justify-between items-center'>
<div>
<div className='text-lg leading-tight text-gray-500 dark:text-gray-400'>
Weather
</div>
<div className='text-3xl leading-tight font-semibold'> <div className='text-3xl leading-tight font-semibold'>
{weather.temp}°C {weather.temp}°C
</div> </div>