@@ -330,7 +330,7 @@ export function Weather({
330330 return (
331331 < div
332332 className = { cx (
333- "relative flex w-full flex-col gap-6 overflow-hidden rounded-3xl p-6 shadow-lg backdrop-blur-sm" ,
333+ "relative flex w-full flex-col gap-3 overflow-hidden rounded-2xl p-4 shadow-lg backdrop-blur-sm" ,
334334 {
335335 "bg-gradient-to-br from-sky-400 via-blue-500 to-blue-600" : isDay ,
336336 } ,
@@ -343,44 +343,44 @@ export function Weather({
343343 < div className = "absolute inset-0 bg-white/10 backdrop-blur-sm" />
344344
345345 < div className = "relative z-10" >
346- < div className = "mb-4 flex items-center justify-between" >
347- < div className = "font-medium text-sm text- white/80" > { location } </ div >
346+ < div className = "mb-2 flex items-center justify-between" >
347+ < div className = "font-medium text-white/80 text-xs " > { location } </ div >
348348 < div className = "text-white/60 text-xs" >
349349 { format ( new Date ( weatherAtLocation . current . time ) , "MMM d, h:mm a" ) }
350350 </ div >
351351 </ div >
352352
353- < div className = "mb-6 flex items-center justify-between" >
354- < div className = "flex items-center gap-4 " >
353+ < div className = "mb-3 flex items-center justify-between" >
354+ < div className = "flex items-center gap-3 " >
355355 < div
356356 className = { cx ( "text-white/90" , {
357357 "text-yellow-200" : isDay ,
358358 "text-blue-200" : ! isDay ,
359359 } ) }
360360 >
361- { isDay ? < SunIcon size = { 48 } /> : < MoonIcon size = { 48 } /> }
361+ { isDay ? < SunIcon size = { 32 } /> : < MoonIcon size = { 32 } /> }
362362 </ div >
363- < div className = "font-light text-5xl text-white" >
363+ < div className = "font-light text-3xl text-white" >
364364 { n ( weatherAtLocation . current . temperature_2m ) }
365- < span className = "text-2xl text-white/80" >
365+ < span className = "text-lg text-white/80" >
366366 { weatherAtLocation . current_units . temperature_2m }
367367 </ span >
368368 </ div >
369369 </ div >
370370
371371 < div className = "text-right" >
372- < div className = "font-medium text-sm text- white/90" >
372+ < div className = "font-medium text-white/90 text-xs " >
373373 H: { n ( currentHigh ) } °
374374 </ div >
375- < div className = "text-sm text- white/70" > L: { n ( currentLow ) } °</ div >
375+ < div className = "text-white/70 text-xs " > L: { n ( currentLow ) } °</ div >
376376 </ div >
377377 </ div >
378378
379- < div className = "rounded-2xl bg-white/10 p-4 backdrop-blur-sm" >
380- < div className = "mb-3 font-medium text-sm text- white/80" >
379+ < div className = "rounded-xl bg-white/10 p-3 backdrop-blur-sm" >
380+ < div className = "mb-2 font-medium text-white/80 text-xs " >
381381 Hourly Forecast
382382 </ div >
383- < div className = "flex justify-between gap-2 " >
383+ < div className = "flex justify-between gap-1 " >
384384 { displayTimes . map ( ( time , index ) => {
385385 const hourTime = new Date ( time ) ;
386386 const isCurrentHour =
@@ -389,7 +389,7 @@ export function Weather({
389389 return (
390390 < div
391391 className = { cx (
392- "flex min-w-0 flex-1 flex-col items-center gap-2 rounded-lg px-1 py-2 " ,
392+ "flex min-w-0 flex-1 flex-col items-center gap-1 rounded-md px-1 py-1.5 " ,
393393 {
394394 "bg-white/20" : isCurrentHour ,
395395 }
@@ -406,10 +406,10 @@ export function Weather({
406406 "text-blue-200" : ! isDay ,
407407 } ) }
408408 >
409- < CloudIcon size = { 20 } />
409+ < CloudIcon size = { 16 } />
410410 </ div >
411411
412- < div className = "font-medium text-sm text-white " >
412+ < div className = "font-medium text-white text-xs " >
413413 { n ( displayTemperatures [ index ] ) } °
414414 </ div >
415415 </ div >
@@ -418,7 +418,7 @@ export function Weather({
418418 </ div >
419419 </ div >
420420
421- < div className = "mt-4 flex justify-between text-white/60 text-xs" >
421+ < div className = "mt-2 flex justify-between text-white/60 text-xs" >
422422 < div >
423423 Sunrise:{ " " }
424424 { format ( new Date ( weatherAtLocation . daily . sunrise [ 0 ] ) , "h:mm a" ) }
0 commit comments