-
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.
Added Shadcn components & debug config
- Loading branch information
Showing
14 changed files
with
370 additions
and
93 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch Server", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "pnpm dev" | ||
}, | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Launch Client", | ||
"url": "http://localhost:3000", | ||
"webRoot": "${workspaceFolder}" | ||
}, | ||
{ | ||
"name": "Next.js: debug full stack", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "pnpm dev", | ||
"serverReadyAction": { | ||
"pattern": "- Local:.+(https?://.+)", | ||
"uriFormat": "%s", | ||
"action": "debugWithChrome" | ||
} | ||
} | ||
] | ||
} |
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,4 +1,4 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
const nextConfig = {} | ||
|
||
export default nextConfig; | ||
export default nextConfig |
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,81 @@ | ||
'use client' | ||
import React from 'react' | ||
import { Button } from '@/components/ui/button' | ||
import { Icons } from '@/components/ui/icons' | ||
import { Input } from '@/components/ui/input' | ||
import { Label } from '@/components/ui/label' | ||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' | ||
import Link from 'next/link' | ||
|
||
export default function SignIn() { | ||
const [isLoading, setIsLoading] = React.useState(false) | ||
const onSubmit = (event: React.FormEvent<HTMLFormElement>) => { | ||
event.preventDefault() | ||
setIsLoading(true) | ||
|
||
setTimeout(() => { | ||
setIsLoading(false) | ||
}, 3000) | ||
} | ||
return ( | ||
<div className='container flex h-screen w-screen flex-col items-center justify-center'> | ||
<Card style={{ minWidth: '360px' }}> | ||
<CardHeader> | ||
<CardTitle>Sign In</CardTitle> | ||
</CardHeader> | ||
<CardContent> | ||
<div className='grid gap-6'> | ||
<form onSubmit={onSubmit}> | ||
<div className='grid gap-2'> | ||
<div className='grid gap-1'> | ||
<Label className='sr-only' htmlFor='email'> | ||
</Label> | ||
<Input | ||
id='email' | ||
placeholder='[email protected]' | ||
type='email' | ||
autoCapitalize='none' | ||
autoComplete='email' | ||
autoCorrect='off' | ||
disabled={isLoading} | ||
/> | ||
</div> | ||
<Button disabled={isLoading}> | ||
{isLoading && ( | ||
<Icons.spinner className='mr-2 h-4 w-4 animate-spin' /> | ||
)} | ||
Sign In with Email | ||
</Button> | ||
</div> | ||
</form> | ||
<div className='relative'> | ||
<div className='absolute inset-0 flex items-center'> | ||
<span className='w-full border-t' /> | ||
</div> | ||
<div className='relative flex justify-center text-xs uppercase'> | ||
<span className='bg-background px-2 text-muted-foreground'> | ||
Or continue with | ||
</span> | ||
</div> | ||
</div> | ||
<Button variant='outline' type='button' disabled={isLoading}> | ||
{isLoading ? ( | ||
<Icons.spinner className='mr-2 h-4 w-4 animate-spin' /> | ||
) : ( | ||
<Icons.gitHub className='mr-2 h-4 w-4' /> | ||
)}{' '} | ||
GitHub | ||
</Button> | ||
</div> | ||
</CardContent> | ||
</Card> | ||
<Link | ||
href='/signup' | ||
className='hover:text-brand underline underline-offset-4 mt-4' | ||
> | ||
Don't have an account? Sign Up | ||
</Link> | ||
</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,14 @@ | ||
import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card' | ||
|
||
export default function SignUp() { | ||
return ( | ||
<div className='container flex h-screen w-screen flex-col items-center justify-center'> | ||
<Card style={{ minWidth: '360px' }}> | ||
<CardHeader> | ||
<CardTitle>Sign Up</CardTitle> | ||
</CardHeader> | ||
<CardContent></CardContent> | ||
</Card> | ||
</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.