feat: add signin and signup page
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
export default function Layout({ children }: { children: ReactNode }) {
|
||||
return <>{children}</>;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export default function Page() {
|
||||
return <></>;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export default function Page() {
|
||||
return <></>;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { buttonVariants } from '@components/atoms';
|
||||
import { cn } from '@utils/ui';
|
||||
import Link from 'next/link';
|
||||
|
||||
export function ButtonSignin() {
|
||||
return (
|
||||
<Link href="/signin" className={cn(buttonVariants(), 'hidden lg:flex')}>
|
||||
Masuk
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { buttonVariants } from '@components/atoms';
|
||||
import { cn } from '@utils/ui';
|
||||
import Link from 'next/link';
|
||||
|
||||
export function ButtonSignup() {
|
||||
return (
|
||||
<Link
|
||||
href="/signup"
|
||||
className={cn(buttonVariants({ variant: 'outline' }), 'hidden lg:flex')}
|
||||
>
|
||||
Daftar
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { useMobileMenuStore } from '@/stores/mobile-menu-store';
|
||||
import { ButtonSignin } from './button-signin';
|
||||
import { ButtonSignup } from './button-signup';
|
||||
import { DesktopNavigation } from './desktop-navigation';
|
||||
import { HeaderWrapper } from './header-wrapper';
|
||||
import { Logo } from './logo';
|
||||
@@ -18,7 +20,9 @@ export function Header() {
|
||||
|
||||
<DesktopNavigation />
|
||||
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="flex items-center gap-x-2">
|
||||
<ButtonSignin />
|
||||
<ButtonSignup />
|
||||
<SimpleThemeToggle />
|
||||
<MobileMenuHamburger />
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { poppins } from '@/lib/fonts';
|
||||
import '@/styles/globals.css';
|
||||
import { type Metadata } from 'next';
|
||||
import { poppins } from '../../lib/fonts';
|
||||
import '../../styles/globals.css';
|
||||
import Footer from './_components/footer';
|
||||
import { Header } from './_components/header';
|
||||
import { ThemeProvider } from './_components/theme-provider';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
@@ -25,11 +23,7 @@ export default function RootLayout({
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
>
|
||||
<div className="flex min-h-screen flex-col">
|
||||
<Header />
|
||||
<main className="flex-1">{children}</main>
|
||||
<Footer />
|
||||
</div>
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user