diff --git a/components/button.tsx b/components/button.tsx index 630c19b..3c3c6cb 100644 --- a/components/button.tsx +++ b/components/button.tsx @@ -1,3 +1,5 @@ +import { CSSProperties } from 'react' + import clsx from 'clsx' interface buttonProps { @@ -6,6 +8,7 @@ interface buttonProps { variant?: 'primary' | 'secondary' | 'ghost' | 'outline' icon?: React.ReactNode className?: string + style?: CSSProperties disabled?: boolean ref?: React.ForwardedRef } @@ -16,14 +19,15 @@ export const Button = ({ variant = 'primary', icon, className, + style, disabled, ref, ...props }: buttonProps) => { const variantCls = { - primary: 'text-white bg-primary hover:opacity-75', - secondary: 'text-black bg-zinc-100 hover:opacity-75', - ghost: 'text-black hover:bg-zinc-100 hover:opacity-75', + primary: 'text-white bg-primary sm:hover:opacity-75', + secondary: 'text-black bg-zinc-100 sm:hover:opacity-75', + ghost: 'text-black hover:bg-zinc-100 sm:hover:opacity-75', outline: 'text-black bg-white border-2 border-zinc-400 disabled:hover:border-zinc-400 sm:hover:border-primary', }[variant] @@ -39,6 +43,7 @@ export const Button = ({ variantCls, className )} + style={style} {...props} > {label} diff --git a/components/mobile-nav.tsx b/components/mobile-nav.tsx index 7e3fc50..b2e011f 100644 --- a/components/mobile-nav.tsx +++ b/components/mobile-nav.tsx @@ -1,11 +1,14 @@ 'use client' import { useState } from 'react' -import Image from 'next/image' +import { Button } from '@/components/button' import { Modal } from '@/components//modal/modal' import { NavDropdown } from '@/components/nav-dropdown' +import CrossIcon from '@/public/cross.svg' +import HamBurgerIcon from '@/public/hamburger.svg' + import { MOBILE_NAV_ITEMS } from '@/constants/nav-items' export const MobileNav = () => { @@ -13,18 +16,12 @@ export const MobileNav = () => { return ( <> - + /> setIsOpen(false)}>