diff --git a/package.json b/package.json index 75c0213..d539158 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dependencies": { "@tanstack/react-query": "^5.52.2", "clsx": "^2.1.1", + "dayjs": "^1.11.13", "lucide-react": "^0.436.0", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9d9094e..3baeb26 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: clsx: specifier: ^2.1.1 version: 2.1.1 + dayjs: + specifier: ^1.11.13 + version: 1.11.13 lucide-react: specifier: ^0.436.0 version: 0.436.0(react@18.3.1) @@ -722,6 +725,9 @@ packages: csstype@3.1.3: resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + dayjs@1.11.13: + resolution: {integrity: sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==} + debug@4.3.6: resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} engines: {node: '>=6.0'} @@ -2127,6 +2133,8 @@ snapshots: csstype@3.1.3: {} + dayjs@1.11.13: {} + debug@4.3.6: dependencies: ms: 2.1.2 diff --git a/src/app.tsx b/src/app.tsx index 887df76..5096aed 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -4,6 +4,10 @@ import dotPattern from "@/assets/dotpattern.svg"; import logo from "@/assets/logo.svg"; import ParallaxView from "./components/parallax-view"; import ChatWindow from "./components/chat-window"; +import { useEffect, useState } from "react"; +import dayjs from "dayjs"; +import { useQuery } from "@tanstack/react-query"; +import { CloudSun, GitPullRequest } from "lucide-react"; const App = () => { return ( @@ -45,13 +49,14 @@ const App = () => { depth={0.005} className="absolute left-1/2 -bottom-[5%] w-full" > -
{dayjs(time).format("dddd, DD MMM YYYY")}
+ ++ {dayjs(time).format("hh:mm:ss")} +
+ + {weather ? ( ++ {weather?.temperature} + °C +
+