diff --git a/assets/style.css b/assets/style.css index f1d8c73..9efd3cf 100644 --- a/assets/style.css +++ b/assets/style.css @@ -1 +1,3 @@ @import "tailwindcss"; +@source "../components/*" +@source "../components/**/*" diff --git a/client.ts b/client.ts index 68a8d5a..aac395d 100644 --- a/client.ts +++ b/client.ts @@ -1 +1 @@ -// import "./assets/style.css"; +import "./assets/style.css"; diff --git a/components/Checkbox.tsx b/components/Checkbox.tsx index c35fdc1..3a085ae 100644 --- a/components/Checkbox.tsx +++ b/components/Checkbox.tsx @@ -1,67 +1,5 @@ import { Signal, useSignal } from "@preact/signals"; -import { useId, useState } from "preact/hooks"; - -interface CheckboxProps { - label: string; - isChecked?: boolean; - onChange: (isChecked: boolean) => void; -} - -const Checkbox2: preact.FunctionalComponent = ( - { label, isChecked = false, onChange }, -) => { - const [checked, setChecked] = useState(isChecked); - - const toggleCheckbox = () => { - const newChecked = !checked; - setChecked(newChecked); - onChange(newChecked); - }; - - return ( -
- - {label} - - -
- ); -}; +import { useId } from "preact/hooks"; const Checkbox = ( { label, checked = useSignal(false) }: { diff --git a/components/MetaTags.tsx b/components/MetaTags.tsx index b43aa71..b71255f 100644 --- a/components/MetaTags.tsx +++ b/components/MetaTags.tsx @@ -60,6 +60,7 @@ export function MetaTags({ resource }: { resource: GenericResource }) { />