-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from WebmasterCamp/navbar
add navbar
- Loading branch information
Showing
4 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ | |
* { | ||
@apply border-border; | ||
} | ||
|
||
body { | ||
@apply bg-background text-foreground; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { ThemeToggle } from "@/components/theme-toggle"; | ||
|
||
export default function Page() { | ||
return ( | ||
<div className="flex items-center justify-center min-h-screen"> | ||
<ThemeToggle /> | ||
<h1 className="text-4xl font-bold">Hello, world!</h1> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import Link from "next/link"; | ||
|
||
import { ThemeToggle } from "./theme-toggle"; | ||
import { Button } from "./ui/button"; | ||
|
||
export function Navbar() { | ||
return ( | ||
<header className="sticky top-0 z-50 w-full shadow-md dark:border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60"> | ||
<div className="container flex h-[4rem] max-w-screen-2xl items-center"> | ||
<div className="mr-6 flex items-center space-x-2"> | ||
<Link href="/"> | ||
<h1 className="font-bold">brand</h1> | ||
</Link> | ||
</div> | ||
<div className="flex flex-row items-center space-x-4"> | ||
<Link href="/faq">วิธีใช้</Link> | ||
<Link href="/management">วางแผนการเงิน</Link> | ||
<Link href="/about">เกี่ยวกับเรา</Link> | ||
</div> | ||
<div className="flex flex-1 items-center justify-end space-x-2"> | ||
<Link href="/signin"> | ||
<Button variant="default">เข้าสู่ระบบ</Button> | ||
</Link> | ||
<ThemeToggle /> | ||
</div> | ||
</div> | ||
</header> | ||
); | ||
} |