Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Commit

Permalink
feat: adicionar backdrop filter ao aside
Browse files Browse the repository at this point in the history
  • Loading branch information
rwietter committed Jun 21, 2023
1 parent 075ae9c commit a21d8dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions domains/dashboard/features/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { TfiDownload } from 'react-icons/tfi';
import { BiHomeAlt } from 'react-icons/bi';
import { useRouter } from 'next/router';

const linkStyle = 'bg-foregroundLight rounded-full p-2 shadow-md shadow-gray-400';
const linkStyle = 'bg-foregroundLight rounded-full p-3 hover:bg-foregroundExtraLight transition duration-300 ease-in';

const Sidebar = () => {
const { asPath } = useRouter();

const isColorActive = (path: string) => {
return asPath === path ? '#ffff' : '#C1CAD8';
return asPath === path ? '#ffff' : '#999999';
};

const isLinkActive = (path: string) => {
Expand All @@ -19,7 +19,7 @@ const Sidebar = () => {

return (
<aside
className='bg-primary bg-opacity-80 fixed w-full h-16 bottom-0 md:h-screen md:w-16 md:left-0 z-0 flex items-center justify-center md:flex-col'
className='bg-primary bg-opacity-80 fixed w-full h-16 bottom-0 md:h-screen md:w-16 md:left-0 z-0 flex items-center justify-center md:flex-col backdrop-blur-sm'
>
<Link href="/" className={isLinkActive('/')}>
<BiHomeAlt size={23} color={isColorActive('/')} />
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
background: '#FFFFFF',
foreground: '#221C55',
foregroundLight: '#513ED9',
foregroundExtraLight: '#7F66FF',
primary: '#F5F7FB',
secondary: '#F8FAFB',
text: '#1F2937',
Expand Down

0 comments on commit a21d8dc

Please sign in to comment.