first commit

This commit is contained in:
2026-01-22 20:55:07 +00:00
parent a28c9ddc97
commit 278f821328
40 changed files with 8615 additions and 0 deletions

25
app/components/Clock.tsx Executable file
View File

@@ -0,0 +1,25 @@
"use client";
import { useEffect, useState } from "react";
export function Clock() {
const [time, setTime] = useState("");
useEffect(() => {
const updateTime = () => {
const now = new Date();
setTime(
now.toLocaleTimeString([], {
hour: "2-digit",
minute: "2-digit",
})
);
};
updateTime();
const interval = setInterval(updateTime, 1000);
return () => clearInterval(interval);
}, []);
return <span>{time}</span>;
}