-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-basic-auth
- Loading branch information
Showing
22 changed files
with
2,276 additions
and
1,020 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 |
---|---|---|
@@ -1,59 +1,59 @@ | ||
import Link from "next/link" | ||
import { MenuIcon } from "@/components/ui/icons" | ||
import Link from 'next/link'; | ||
import { MenuIcon } from '@/components/ui/icons'; | ||
|
||
const links = [ | ||
{ href: "#", title: "Home" }, | ||
{ href: "#", title: "About" }, | ||
{ href: "#", title: "Services" }, | ||
{ href: "#", title: "Contact" }, | ||
] | ||
{ href: '#', title: 'Home' }, | ||
{ href: '#', title: 'About' }, | ||
{ href: '#', title: 'Services' }, | ||
{ href: '#', title: 'Contact' }, | ||
]; | ||
|
||
export default function Layout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode | ||
children: React.ReactNode; | ||
}>) { | ||
return ( | ||
<div className="flex flex-col min-h-screen"> | ||
<div className="border-b border-gray-100"> | ||
<div className="container flex items-center justify-between px-4 md:px-6 py-4 mx-auto max-w-7xl"> | ||
<nav className="flex items-center space-x-4 text-sm"> | ||
<div className="flex min-h-screen flex-col"> | ||
<div className="border-b border-gray-100 dark:border-gray-700"> | ||
<div className="container mx-auto flex max-w-7xl items-center justify-end px-4 py-4 md:justify-between md:px-6"> | ||
<nav className="hidden items-center space-x-4 text-sm md:flex"> | ||
{links.map((link) => ( | ||
<Link | ||
className="font-bold text-gray-900" | ||
className=" text-gray-900 dark:text-white" | ||
href={link.href} | ||
key={link.title} | ||
> | ||
{link.title} | ||
</Link> | ||
))} | ||
</nav> | ||
<div className="hidden md:flex items-center space-x-4"> | ||
<div className="hidden items-center space-x-4 md:flex"> | ||
<Link | ||
className="inline-flex h-8 items-center justify-center rounded-md border border-gray-200 bg-white px-4 text-sm font-medium transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 disabled:pointer-events-none disabled:opacity-50" | ||
className="inline-flex h-8 items-center justify-center rounded-md border border-gray-200 bg-white px-4 text-sm font-medium transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 disabled:pointer-events-none disabled:opacity-50 dark:text-black" | ||
href="/login" | ||
> | ||
Login | ||
</Link> | ||
</div> | ||
<div className="md:hidden flex items-center space-x-4"> | ||
<div className="flex items-center space-x-4 md:hidden"> | ||
<Link | ||
className="inline-flex h-8 items-center rounded-md border border-gray-200 bg-white px-3 text-sm font-medium" | ||
className="inline-flex h-8 items-center rounded-md border border-gray-200 bg-white px-3 text-sm font-medium dark:text-black" | ||
href="/login" | ||
> | ||
Login | ||
</Link> | ||
<button className="inline-flex rounded-md md:hidden" type="button"> | ||
<MenuIcon className="w-6 h-6" /> | ||
<MenuIcon className="h-6 w-6" /> | ||
<span className="sr-only">Toggle Menu</span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<main className="flex-1 flex items-center justify-center"> | ||
<main className="flex flex-1 items-center justify-center"> | ||
{children} | ||
</main> | ||
</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
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
Oops, something went wrong.