update: setup home page ui

This commit is contained in:
purp1e
2024-09-21 00:25:31 +08:00
parent 2898416add
commit f9a4427c2f
15 changed files with 240 additions and 44 deletions

View File

@@ -0,0 +1,8 @@
import { ReactNode } from "react";
interface ToolButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
children?: ReactNode;
}
export const ToolButton = ({ children, ...rest }: ToolButtonProps) => {
return <button className="flex gap-0.5 active:scale-95 items-center min-w-7 justify-center px-2 py-1.5 bg-black/5 transition hover:bg-black/10 rounded-md text-sm leading-none" {...rest}>{children}</button>;
};