Some interactions

This commit is contained in:
Belen Curcio
2020-10-22 10:47:56 -03:00
parent e8fc96bab7
commit 32846c72b6
5 changed files with 61 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
@screen lg {
@apply absolute right-0 w-screen;
max-width: 160px;
max-width: 200px;
}
& .dropdownMenuContainer {
@@ -15,8 +15,12 @@
}
& .link {
@apply cursor-pointer px-6 py-3 block space-y-1 hover:bg-accents-1 transition ease-in-out duration-150 text-base leading-6 font-medium text-gray-900;
@apply flex space-x-2 cursor-pointer px-6 py-3 block space-y-1 hover:bg-accents-1 transition ease-in-out duration-150 text-base leading-6 font-medium text-gray-900 items-center;
text-transform: capitalize;
& .icons svg {
@apply w-6 h-6;
}
}
&.off {

View File

@@ -9,7 +9,7 @@ import {
} from '@react-aria/overlays'
import Link from 'next/link'
import cn from 'classnames'
import { Moon, Sun } from '@components/icon'
interface DropdownMenuProps {
onClose: () => void
innerRef: React.MutableRefObject<HTMLInputElement>
@@ -54,7 +54,12 @@ const DropdownMenu: FC<DropdownMenuProps> = ({
theme === 'dark' ? setTheme('light') : setTheme('dark')
}
>
Theme: <strong>{theme}</strong>
<span>
Theme: <strong>{theme}</strong>{' '}
</span>
<span className={s.icons}>
{theme === 'dark' ? <Moon /> : <Sun />}
</span>
</a>
<Link href="#">
<a className={cn(s.link, 'border-t border-accents-2 mt-4')}>