initial commit

This commit is contained in:
Simeon Radivoev 2026-01-23 04:56:39 +02:00
commit 3e90445fab
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
20 changed files with 961 additions and 0 deletions

View file

@ -0,0 +1,21 @@
import React, { useEffect, useState } from "react";
export default function Clock() {
const locale = "en";
const [today, setDate] = useState(new Date());
useEffect(() => {
const timer = setInterval(() => {
setDate(new Date());
}, 60 * 1000);
return () => {
clearInterval(timer);
};
}, []);
return (
<div className="flex font-semibold gap-2 items-center">
{today.toLocaleTimeString(locale, { hour: "numeric", minute: "numeric" })}
</div>
);
}

View file

@ -0,0 +1,23 @@
import React from "react";
export default function GamepadIcon({
platform,
variant,
button,
text,
}: {
platform: "xbox" | "playstation" | "nintendo";
variant: string;
button: string;
text?: string;
}) {
return (
<div className="gamepad-button-wrapper">
<i
className={`gamepad-button gamepad-button-${platform} gamepad-button-${platform}--${button} gamepad-button-${platform}--variant-${variant}`}
>
{text}
</i>
</div>
);
}