Unverified Commit 5411488a authored by Wellton Quirino's avatar Wellton Quirino Committed by GitHub

Merge pull request #3 from Iapdigital/dev

add button dark mode
parents d720c667 5df64f10
...@@ -10,15 +10,12 @@ import { Input } from '@/components/ui/input' ...@@ -10,15 +10,12 @@ import { Input } from '@/components/ui/input'
import { Search } from 'lucide-react' import { Search } from 'lucide-react'
import Link from 'next/link' import Link from 'next/link'
// import { ThemeSwitcher } from '@/components/theme-switcher'
export default function Home() { export default function Home() {
return ( return (
<> <>
<main className="overflow-hidden"> <main className="overflow-hidden">
<Banner /> <Banner />
{/* <ThemeSwitcher /> */}
<div className="container flex flex-col"> <div className="container flex flex-col">
<NavLinkCategory /> <NavLinkCategory />
<div className="flex justify-center items-center w-full md:w-1/2 mx-auto mb-8"> <div className="flex justify-center items-center w-full md:w-1/2 mx-auto mb-8">
......
import { Menu } from 'lucide-react' import { ThemeSwitcher } from '@/components/theme-switcher'
import Link from 'next/link'
import LogoComponent from './logo'
import { Button } from '@/components/ui/button' import { Button } from '@/components/ui/button'
import { import {
Sheet, Sheet,
...@@ -9,6 +6,9 @@ import { ...@@ -9,6 +6,9 @@ import {
SheetContent, SheetContent,
SheetTrigger, SheetTrigger,
} from '@/components/ui/sheet' } from '@/components/ui/sheet'
import { Menu } from 'lucide-react'
import Link from 'next/link'
import LogoComponent from './logo'
import { NavLink } from './nav-link' import { NavLink } from './nav-link'
export function Header() { export function Header() {
...@@ -47,6 +47,7 @@ export function Header() { ...@@ -47,6 +47,7 @@ export function Header() {
> >
<Link href="/inscricao">Inscreva-se</Link> <Link href="/inscricao">Inscreva-se</Link>
</Button> </Button>
<ThemeSwitcher />
<div className="flex flex-col"> <div className="flex flex-col">
<Sheet> <Sheet>
<SheetTrigger asChild> <SheetTrigger asChild>
......
...@@ -12,11 +12,11 @@ export function ThemeSwitcher() { ...@@ -12,11 +12,11 @@ export function ThemeSwitcher() {
return ( return (
<div> <div>
{hasMounted && theme === 'dark' ? ( {hasMounted && theme === 'dark' ? (
<Button onClick={() => setTheme('light')}> <Button variant="ghost" onClick={() => setTheme('light')}>
<Moon /> <Moon />
</Button> </Button>
) : ( ) : (
<Button onClick={() => setTheme('dark')}> <Button variant="ghost" onClick={() => setTheme('dark')}>
<Sun /> <Sun />
</Button> </Button>
)} )}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment