refactor(music-player): using react-dom-curse

This commit is contained in:
Pihkaal
2024-02-09 23:51:47 +01:00
parent 71ab32c53a
commit dc03aaeb4f
12 changed files with 120 additions and 327 deletions

15
src/components/Kitty.tsx Normal file
View File

@@ -0,0 +1,15 @@
import { type ReactNode } from "react";
import clsx from "clsx";
import { Terminal } from "react-dom-curse";
export const Kitty = (props: { children?: ReactNode; className?: string }) => (
<div
className={clsx(
"overflow-hidden whitespace-pre rounded-lg border-2 border-borderInactive bg-background bg-opacity-80 text-lg text-color7 text-foreground shadow-window transition-colors duration-[500ms] ease-out hover:border-borderActive hover:duration-[200ms]",
props.className,
)}
style={{ backdropFilter: "blur(2px)" }}
>
<Terminal>{props.children}</Terminal>
</div>
);