Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sevenpro-frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
FAP
sevenpro-frontend
Commits
5411488a
Unverified
Commit
5411488a
authored
Aug 13, 2024
by
Wellton Quirino
Committed by
GitHub
Aug 13, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from Iapdigital/dev
add button dark mode
parents
d720c667
5df64f10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
page.tsx
src/app/(home)/page.tsx
+0
-3
header.tsx
src/components/header.tsx
+5
-4
theme-switcher.tsx
src/components/theme-switcher.tsx
+2
-2
No files found.
src/app/(home)/page.tsx
View file @
5411488a
...
@@ -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"
>
...
...
src/components/header.tsx
View file @
5411488a
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
>
...
...
src/components/theme-switcher.tsx
View file @
5411488a
...
@@ -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
>
)
}
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment