-
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.
- Loading branch information
1 parent
d6a77b8
commit 028831d
Showing
6 changed files
with
93 additions
and
40 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
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,7 +1,17 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
import { Button, Text } from '@chatse/toolkit'; | ||
|
||
const LoginLayout = ({ children }: { children: ReactNode }) => ( | ||
<main className="flex flex-1 flex-col items-center justify-center">{children}</main> | ||
<main className="flex flex-1 flex-col p-4 lg:p-8"> | ||
{children} | ||
<footer className="flex shrink-0 flex-col items-center justify-center space-y-2 sm:flex-row sm:space-x-4 sm:space-y-0"> | ||
<Text variant="p" as="span" className="text-sm font-semibold"> | ||
New to Chatse? | ||
</Text> | ||
<Button variant="outline">Create an account</Button> | ||
</footer> | ||
</main> | ||
); | ||
|
||
export default LoginLayout; |
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 was deleted.
Oops, something went wrong.
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,20 @@ | ||
'use client'; | ||
|
||
import { forwardRef, ReactNode } from 'react'; | ||
import NextLink, { LinkProps as NextLinkProps } from 'next/link'; | ||
import { VariantProps } from 'class-variance-authority'; | ||
|
||
import { buttonVariants, cn } from '@chatse/toolkit'; | ||
|
||
interface LinkProps extends NextLinkProps, VariantProps<typeof buttonVariants> { | ||
className?: string; | ||
children?: ReactNode; | ||
} | ||
|
||
export const Link = forwardRef<HTMLAnchorElement, LinkProps>( | ||
({ variant = 'link', size, className, ...props }, ref) => ( | ||
<NextLink {...props} className={cn(buttonVariants({ variant, size, className }))} ref={ref} /> | ||
), | ||
); | ||
|
||
Link.displayName = 'Link'; |
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