feat: login page and input

This commit is contained in:
2025-04-02 15:20:13 +03:00
parent 1eeaf31e52
commit 78117e3421
4 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1 @@
@reference "../../index.scss";

View File

@@ -0,0 +1,17 @@
import { FunctionComponent } from "preact";
import { tv } from "tailwind-variants";
const input = tv({
base: "rounded-md border border-gray-300 p-2",
});
interface InputProps {
isPassword?: boolean;
placeholder?: string;
}
const Input: FunctionComponent<InputProps> = ({ isPassword = false, placeholder = "" }: InputProps) => {
return <input type={isPassword ? "password" : "text"} class={input()} placeholder={placeholder} />;
};
export default Input;