-
+
Hi, I'm Anton Bochkovskyi
-
+
Motivated Junior Front-End Developer with a passion for creating
engaging, elegant and responsive user interfaces.
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx
index 82b859e..d0011cf 100644
--- a/src/components/ui/button.tsx
+++ b/src/components/ui/button.tsx
@@ -2,7 +2,13 @@ import { classnames } from '@/utils'
import Link from 'next/link'
import { FC, ReactNode } from 'react'
-type ButtonVariant = 'outline' | 'solid'
+const buttonVariants = {
+ icon: 'bg-transparent p-2 md:hover:text-accent',
+ outline:
+ 'rounded-md border-2 border-accent bg-transparent px-5 py-2 text-accent md:hover:bg-accent md:hover:text-light',
+ solid:
+ 'rounded-md border-2 border-accent bg-accent px-5 py-2 text-light md:hover:bg-opacity-80',
+}
type ButtonProps = {
children: ReactNode
@@ -11,12 +17,7 @@ type ButtonProps = {
href?: string
onClick?: () => void
type?: 'button' | 'reset' | 'submit'
- variant?: ButtonVariant
-}
-
-const buttonStyles: Record
= {
- outline: 'text-accent bg-transparent md:hover:text-light md:hover:bg-accent',
- solid: 'text-light bg-accent md:hover:bg-opacity-80',
+ variant?: keyof typeof buttonVariants
}
const Button: FC = ({
@@ -33,8 +34,8 @@ const Button: FC = ({
{href ? (
= ({
) : (