Skip to content

Commit

Permalink
feat(frontend): ✨ Add @iconify/react package and update Navbar (#56)
Browse files Browse the repository at this point in the history
* feat(frontend): ✨ Add @iconify/react package and update Navbar component

* style(frontend): 🎨 apply prettier formatting
  • Loading branch information
Lukas Thrane authored and GitHub committed Jan 29, 2024
1 parent 6ac01c5 commit 17a8411
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
22 changes: 22 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@graphql-typed-document-node/core": "^3.2.0",
"@iconify/react": "^4.1.1",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export default function Home() {
return <main>Home</main>;
return (
<main>
<h1>Home</h1>
</main>
);
}
6 changes: 5 additions & 1 deletion frontend/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { useTheme } from "next-themes";
import { Icon } from "@iconify/react";

export default function Navbar() {
const dropdownPaths = [
Expand All @@ -35,7 +36,10 @@ export default function Navbar() {
<nav className="flex items-center justify-between p-4 bg-slate-700 dark:bg-slate-500 text-white w-full">
<div>
<Link href="/">
<Button variant={getButtonVariant("/")}>Logo</Button>
<Button variant={getButtonVariant("/")}>
Logo
<Icon icon="mdi-light:home" className="size-10 ml-6" />
</Button>
</Link>
</div>

Expand Down

0 comments on commit 17a8411

Please sign in to comment.