import furinaImg from "@/assets/furina.webp"; import hydroElement from "@/assets/hydro.svg"; 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 (
{/*
*/}

Furina artwork by{" "} Rine

Fork{" "} Repo

); }; const Clock = () => { const [time, setTime] = useState(new Date()); const { data: weather } = useQuery({ queryKey: ["forecast"], queryFn: async () => { const url = "https://api.open-meteo.com/v1/forecast?latitude=-6.2297401&longitude=106.7469453¤t_weather=true"; const res = await fetch(url); if (!res.ok) { throw new Error(res.statusText); } const data = await res.json(); return data?.current_weather; }, }); useEffect(() => { const interval = setInterval(() => { setTime(new Date()); }, 1000); return () => clearInterval(interval); }, []); return (

{dayjs(time).format("dddd, DD MMM YYYY")}

{dayjs(time).format("hh:mm:ss")}

{weather ? (

{weather?.temperature} °C

) : null}
); }; export default App;