From fca5d643f027e08b84d09027028657ddf6d37a0a Mon Sep 17 00:00:00 2001 From: aJesusCode Date: Thu, 12 Oct 2023 12:16:57 +0200 Subject: [PATCH] fix: ui fixes --- src/app/(surfspots)/layout.tsx | 4 ++-- src/app/(surfspots)/spots/SpotsList.tsx | 2 +- src/app/(surfspots)/spots/[spot_id]/page.tsx | 6 +++--- src/app/components/SpotConditionsWeek.tsx | 17 +++++++---------- tailwind.config.ts | 1 + 5 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/app/(surfspots)/layout.tsx b/src/app/(surfspots)/layout.tsx index cf43f28..603dcf2 100644 --- a/src/app/(surfspots)/layout.tsx +++ b/src/app/(surfspots)/layout.tsx @@ -25,8 +25,8 @@ export default async function FavoriteSpotsLayout({ return (
-
-
+
+
{user && (
-
+
{allSpotsData && allSpotsData.map((spot) => { if (spot) { diff --git a/src/app/(surfspots)/spots/[spot_id]/page.tsx b/src/app/(surfspots)/spots/[spot_id]/page.tsx index fa3723b..abe567b 100644 --- a/src/app/(surfspots)/spots/[spot_id]/page.tsx +++ b/src/app/(surfspots)/spots/[spot_id]/page.tsx @@ -70,13 +70,13 @@ export default async function SpotPage({ <> {spot && (
-
+
-
+
{spot.name}
@@ -86,7 +86,7 @@ export default async function SpotPage({ user={user} />
-
+
{currentPintxoCondition.map((pintxo, index) => ( - + {localDateTimes?.map((item, index) => ( } - + Wave (m) {spot.hourlyspotforecast?.hourly.wave_height @@ -68,7 +65,7 @@ export default function SpotConditionsWeek({ ))} - + Period {spot.hourlyspotforecast?.hourly.wave_period @@ -83,7 +80,7 @@ export default function SpotConditionsWeek({ ))} - + Wave dir. {spot.hourlyspotforecast?.hourly.wave_direction @@ -99,7 +96,7 @@ export default function SpotConditionsWeek({ - + Wind (km/h) {spot.hourlyweatherdata?.windspeed_10m @@ -114,7 +111,7 @@ export default function SpotConditionsWeek({ )) ?? <>} - + Wind dir. {spot.hourlyweatherdata?.winddirection_10m @@ -129,7 +126,7 @@ export default function SpotConditionsWeek({ ))} - + Temp. (°C) {spot.hourlyweatherdata?.temperature_2m diff --git a/tailwind.config.ts b/tailwind.config.ts index 05fe89a..a431448 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -18,6 +18,7 @@ const config: Config = { secondary: "#84cc16", light: "#c7d2fe", dark: "#1e1b4b", + primeshade: "#383593", }, }, },