Skip to content

Commit

Permalink
rewrite(top): rename to header remove NavBar and HamburgerMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
NedcloarBR committed Jul 14, 2024
1 parent 3f8951b commit b83fa98
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 60 deletions.
6 changes: 3 additions & 3 deletions src/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import {
Competencies,
Contact,
Footer,
Header,
Projects,
Top,
} from "@/components";

export default function Home() {
return (
<main>
<Top />
<Header />
<About />
<Competencies />
<Contact />
<Projects />
<Contact />
<Footer />
</main>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/change-language.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function ChangeLanguage() {
<span className="sr-only">{}</span>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuContent align="center">
{DropdownLanguages()}
</DropdownMenuContent>
</DropdownMenu>
Expand Down
32 changes: 0 additions & 32 deletions src/components/hamburger-menu.tsx

This file was deleted.

17 changes: 17 additions & 0 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { ChangeLanguage, ToggleTheme } from "@/components";

export function Header() {
return (
<section
id="header"
className="w-screen h-[100px] space-x-4 flex justify-between bg-zinc-400 dark:bg-zinc-900"
>
<nav className="px-4 gap-2 flex justify-end items-center w-full">
<div className="ml-auto flex gap-2 mr-8">
<ToggleTheme />
<ChangeLanguage />
</div>
</nav>
</section>
);
}
6 changes: 2 additions & 4 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ export * from "./change-language";
export * from "./competencies"
export * from "./contact"
export * from "./footer"
export * from "./hamburger-menu"
export * from "./header"
export * from "./main-container"
export * from "./nav-bar"
export * from "./projects"
export * from "./theme/theme-provider"
export * from "./theme/toggle-theme"
export * from "./top"
export * from "./theme/toggle-theme"
10 changes: 0 additions & 10 deletions src/components/nav-bar.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/theme/toggle-theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function ToggleTheme() {
<span className="sr-only">{}</span>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuContent align="center">
<DropdownMenuItem onClick={() => setTheme("light")}>
<span className="flex items-center gap-1">
<Sun />
Expand Down
9 changes: 0 additions & 9 deletions src/components/top.tsx

This file was deleted.

0 comments on commit b83fa98

Please sign in to comment.