From 446566e42502f651645e37dcf4a1f8cc4e23fa67 Mon Sep 17 00:00:00 2001 From: Neeraj Rekwar <88387699+neerajrekwar@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:14:55 +0000 Subject: [PATCH] gs --- app/components/BackgroundAurra.tsx | 19 ++++++++++------ app/components/DeviceAddress.tsx | 6 ++--- app/components/WeatherApp.tsx | 36 ++++++++++++++++-------------- 3 files changed, 33 insertions(+), 28 deletions(-) diff --git a/app/components/BackgroundAurra.tsx b/app/components/BackgroundAurra.tsx index e8681bb9f..238af0d79 100644 --- a/app/components/BackgroundAurra.tsx +++ b/app/components/BackgroundAurra.tsx @@ -23,7 +23,12 @@ export function AuroraBackgroundDemo() { className="relative w-full flex flex-col gap-4 items-center justify-center px-4 md:px-[14%]" >
- + Build the right to way
@@ -126,7 +131,7 @@ export function AuroraBackgroundDemo() { diff --git a/app/components/DeviceAddress.tsx b/app/components/DeviceAddress.tsx index f7f800a2b..e38ca3383 100644 --- a/app/components/DeviceAddress.tsx +++ b/app/components/DeviceAddress.tsx @@ -44,7 +44,7 @@ const DeviceAddress: React.FC = () => { initial={{ opacity: 0, x: 30 }} animate={{ opacity: 1, x: 0 }} transition={{ delay: 4 }} - className="flex text-xs overflow-y-hidden sm:text-sm gap-1 text-secondary justify-center items-center" + className="flex text-sm text-five md:text-md overflow-y-hidden sm:text-sm gap-1 text-secondary justify-center items-center" > {/*

Device Address

*/} {/*

IP: {address.ip}

*/} @@ -55,9 +55,7 @@ const DeviceAddress: React.FC = () => {
) : (
- - just a moment... - + just a moment...
)}
diff --git a/app/components/WeatherApp.tsx b/app/components/WeatherApp.tsx index de6bba171..2416fd720 100644 --- a/app/components/WeatherApp.tsx +++ b/app/components/WeatherApp.tsx @@ -1,11 +1,14 @@ // components/Weather.tsx "use client"; -import { IconCloudFilled, IconTemperature, IconWind } from "@tabler/icons-react"; +import { + IconCloudFilled, + IconTemperature, + IconWind, +} from "@tabler/icons-react"; import React, { useEffect, useState } from "react"; import axios from "axios"; import { motion } from "framer-motion"; - const Weather: React.FC = () => { const [weather, setWeather] = useState(null); const [error, setError] = useState(null); @@ -64,31 +67,30 @@ const Weather: React.FC = () => { animate={{ opacity: 1, x: 0 }} whileInView={{ opacity: 1, x: 0 }} transition={{ delay: 6, duration: 2 }} - >{error}
+ > + {error} + ) : weather ? ( -
+
+ animate={{ opacity: 0.7, x: 0 }} + transition={{ delay: 4, ease: "easeInOut" }} + className=" flex flex-col opacity-75 sm:flex-row md:gap-2 md:p-2 rounded-md items-end" + > - {weather.current_weather.temperature}°C + + {weather.current_weather.temperature}°C {weather.hourly.cloudcover[0]}% @@ -99,7 +101,7 @@ const Weather: React.FC = () => { {weather.hourly.wind_speed_10m[0]} km/h