diff --git a/src/components/Button/DefaultButton/index.tsx b/src/components/Button/DefaultButton/index.tsx new file mode 100644 index 0000000..4a3f4e0 --- /dev/null +++ b/src/components/Button/DefaultButton/index.tsx @@ -0,0 +1,37 @@ +import { TargetedEvent, CSSProperties } from "preact/compat"; +import './style.css'; +import { SpinnerLoading } from "../.."; + +interface DefaultButtonProps { + label: string + containerClassName?: string, + containerStyle?: CSSProperties, + className?: string, + style?: CSSProperties + onClick?: (event: TargetedEvent) => any, + href?: string, + isLoading?: boolean +} + +const DefaultButton = (props: DefaultButtonProps) => ( +
+) + +export default DefaultButton; diff --git a/src/components/Button/DefaultButton/style.css b/src/components/Button/DefaultButton/style.css new file mode 100644 index 0000000..e652e85 --- /dev/null +++ b/src/components/Button/DefaultButton/style.css @@ -0,0 +1,4 @@ +div a.default-button:hover { + color: white; + background-color: #575757; +} \ No newline at end of file diff --git a/src/components/Button/WarningButton/index.tsx b/src/components/Button/WarningButton/index.tsx new file mode 100644 index 0000000..e240b2b --- /dev/null +++ b/src/components/Button/WarningButton/index.tsx @@ -0,0 +1,36 @@ +import { CSSProperties, TargetedEvent } from "preact/compat"; +import './style.css'; +import { SpinnerLoading } from "../.."; + +interface DefaultButtonProps { + label: string + containerClassName?: string, + containerStyle?: CSSProperties, + className?: string, + style?: CSSProperties, + isLoading?: boolean, + onClick?: (event: TargetedEvent) => any, + href?: string, +} + +const WarningButton = (props: DefaultButtonProps) => ( + +) + +export default WarningButton; diff --git a/src/components/Button/WarningButton/style.css b/src/components/Button/WarningButton/style.css new file mode 100644 index 0000000..0d7b31c --- /dev/null +++ b/src/components/Button/WarningButton/style.css @@ -0,0 +1,4 @@ +div a.warning-button:hover{ + color: white; + background-color: #af3030; +} \ No newline at end of file diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 2f6ca8a..59b70b0 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -22,7 +22,7 @@ function Header() { setSearchVal(val.value) } - const handleLogout = async (): Promise