@meghpatel-007/next-starter 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +27 -0
- package/README.md +131 -2
- package/bin/index.js +8 -0
- package/package.json +44 -4
- package/src/cli.js +242 -0
- package/src/git.js +25 -0
- package/src/install.js +55 -0
- package/src/scaffold.js +110 -0
- package/src/utils.js +70 -0
- package/template/AGENTS.md +9 -0
- package/template/LICENSE +28 -0
- package/template/README.md +36 -0
- package/template/_gitignore +41 -0
- package/template/components.json +25 -0
- package/template/eslint.config.mjs +11 -0
- package/template/next-env.d.ts +7 -0
- package/template/next.config.ts +59 -0
- package/template/package.json +49 -0
- package/template/postcss.config.mjs +6 -0
- package/template/public/apps.png +0 -0
- package/template/public/customizer.png +0 -0
- package/template/public/dashboard-dark.png +0 -0
- package/template/public/dashboard-light.png +0 -0
- package/template/public/dashboard.png +0 -0
- package/template/public/favicon-dark.png +0 -0
- package/template/public/favicon.png +0 -0
- package/template/public/feature-1-dark.png +0 -0
- package/template/public/feature-1-light.png +0 -0
- package/template/public/feature-2-dark.png +0 -0
- package/template/public/feature-2-light.png +0 -0
- package/template/public/file.svg +1 -0
- package/template/public/globe.svg +1 -0
- package/template/public/hero-images-container.png +0 -0
- package/template/public/next.svg +1 -0
- package/template/public/vercel.svg +1 -0
- package/template/public/window.svg +1 -0
- package/template/src/app/(auth)/errors/forbidden/components/forbidden-error.tsx +36 -0
- package/template/src/app/(auth)/errors/forbidden/page.tsx +5 -0
- package/template/src/app/(auth)/errors/internal-server-error/components/internal-server-error.tsx +36 -0
- package/template/src/app/(auth)/errors/internal-server-error/page.tsx +5 -0
- package/template/src/app/(auth)/errors/not-found/components/not-found-error.tsx +36 -0
- package/template/src/app/(auth)/errors/not-found/page.tsx +5 -0
- package/template/src/app/(auth)/errors/unauthorized/components/unauthorized-error.tsx +36 -0
- package/template/src/app/(auth)/errors/unauthorized/page.tsx +5 -0
- package/template/src/app/(auth)/errors/under-maintenance/components/under-maintenance-error.tsx +33 -0
- package/template/src/app/(auth)/errors/under-maintenance/page.tsx +5 -0
- package/template/src/app/(auth)/forgot-password/components/forgot-password-form-1.tsx +61 -0
- package/template/src/app/(auth)/forgot-password/page.tsx +22 -0
- package/template/src/app/(auth)/forgot-password-2/components/forgot-password-form-2.tsx +38 -0
- package/template/src/app/(auth)/forgot-password-2/page.tsx +25 -0
- package/template/src/app/(auth)/forgot-password-3/components/forgot-password-form-3.tsx +66 -0
- package/template/src/app/(auth)/forgot-password-3/page.tsx +9 -0
- package/template/src/app/(auth)/layout.tsx +14 -0
- package/template/src/app/(auth)/sign-in/components/login-form-1.tsx +143 -0
- package/template/src/app/(auth)/sign-in/page.tsx +22 -0
- package/template/src/app/(auth)/sign-in-2/components/login-form-2.tsx +78 -0
- package/template/src/app/(auth)/sign-in-2/page.tsx +25 -0
- package/template/src/app/(auth)/sign-in-3/components/login-form-3.tsx +130 -0
- package/template/src/app/(auth)/sign-in-3/page.tsx +11 -0
- package/template/src/app/(auth)/sign-up/components/signup-form-1.tsx +245 -0
- package/template/src/app/(auth)/sign-up/page.tsx +22 -0
- package/template/src/app/(auth)/sign-up-2/components/signup-form-2.tsx +89 -0
- package/template/src/app/(auth)/sign-up-2/page.tsx +25 -0
- package/template/src/app/(auth)/sign-up-3/components/signup-form-3.tsx +152 -0
- package/template/src/app/(auth)/sign-up-3/page.tsx +9 -0
- package/template/src/app/(dashboard)/calendar/components/calendar-main.tsx +446 -0
- package/template/src/app/(dashboard)/calendar/components/calendar-sidebar.tsx +78 -0
- package/template/src/app/(dashboard)/calendar/components/calendar-unified.tsx +431 -0
- package/template/src/app/(dashboard)/calendar/components/calendar.tsx +90 -0
- package/template/src/app/(dashboard)/calendar/components/calendars.tsx +265 -0
- package/template/src/app/(dashboard)/calendar/components/date-picker.tsx +56 -0
- package/template/src/app/(dashboard)/calendar/components/event-form.tsx +468 -0
- package/template/src/app/(dashboard)/calendar/components/quick-actions.tsx +159 -0
- package/template/src/app/(dashboard)/calendar/data/calendars.json +37 -0
- package/template/src/app/(dashboard)/calendar/data/event-dates.json +30 -0
- package/template/src/app/(dashboard)/calendar/data/events.json +62 -0
- package/template/src/app/(dashboard)/calendar/data.ts +55 -0
- package/template/src/app/(dashboard)/calendar/page.tsx +10 -0
- package/template/src/app/(dashboard)/calendar/types.ts +20 -0
- package/template/src/app/(dashboard)/calendar/use-calendar.ts +93 -0
- package/template/src/app/(dashboard)/chat/components/chat-header.tsx +266 -0
- package/template/src/app/(dashboard)/chat/components/chat.tsx +212 -0
- package/template/src/app/(dashboard)/chat/components/conversation-list-new.tsx +248 -0
- package/template/src/app/(dashboard)/chat/components/conversation-list.tsx +242 -0
- package/template/src/app/(dashboard)/chat/components/message-input.tsx +235 -0
- package/template/src/app/(dashboard)/chat/components/message-list.tsx +325 -0
- package/template/src/app/(dashboard)/chat/data/conversations.json +92 -0
- package/template/src/app/(dashboard)/chat/data/messages.json +224 -0
- package/template/src/app/(dashboard)/chat/data/users.json +47 -0
- package/template/src/app/(dashboard)/chat/page.tsx +49 -0
- package/template/src/app/(dashboard)/chat/use-chat.ts +149 -0
- package/template/src/app/(dashboard)/dashboard/components/chart-area-interactive.tsx +304 -0
- package/template/src/app/(dashboard)/dashboard/components/data-table.tsx +1156 -0
- package/template/src/app/(dashboard)/dashboard/components/section-cards.tsx +102 -0
- package/template/src/app/(dashboard)/dashboard/data/data.json +614 -0
- package/template/src/app/(dashboard)/dashboard/data/focus-documents-data.json +47 -0
- package/template/src/app/(dashboard)/dashboard/data/key-personnel-data.json +47 -0
- package/template/src/app/(dashboard)/dashboard/data/past-performance-data.json +47 -0
- package/template/src/app/(dashboard)/dashboard/page.tsx +37 -0
- package/template/src/app/(dashboard)/dashboard/schemas/task-schema.ts +13 -0
- package/template/src/app/(dashboard)/dashboard-2/components/customer-insights.tsx +390 -0
- package/template/src/app/(dashboard)/dashboard-2/components/dashboard-header.tsx +103 -0
- package/template/src/app/(dashboard)/dashboard-2/components/metrics-overview.tsx +95 -0
- package/template/src/app/(dashboard)/dashboard-2/components/quick-actions.tsx +50 -0
- package/template/src/app/(dashboard)/dashboard-2/components/recent-transactions.tsx +164 -0
- package/template/src/app/(dashboard)/dashboard-2/components/revenue-breakdown.tsx +269 -0
- package/template/src/app/(dashboard)/dashboard-2/components/sales-chart.tsx +170 -0
- package/template/src/app/(dashboard)/dashboard-2/components/top-products.tsx +140 -0
- package/template/src/app/(dashboard)/dashboard-2/data/dashboard-data.json +39 -0
- package/template/src/app/(dashboard)/dashboard-2/page.tsx +49 -0
- package/template/src/app/(dashboard)/faqs/components/faq-list.tsx +148 -0
- package/template/src/app/(dashboard)/faqs/components/features-grid.tsx +46 -0
- package/template/src/app/(dashboard)/faqs/data/categories.json +10 -0
- package/template/src/app/(dashboard)/faqs/data/faqs.json +278 -0
- package/template/src/app/(dashboard)/faqs/data/features.ts +37 -0
- package/template/src/app/(dashboard)/faqs/page.tsx +16 -0
- package/template/src/app/(dashboard)/layout.tsx +83 -0
- package/template/src/app/(dashboard)/mail/components/account-switcher.tsx +69 -0
- package/template/src/app/(dashboard)/mail/components/mail-display.tsx +290 -0
- package/template/src/app/(dashboard)/mail/components/mail-list.tsx +94 -0
- package/template/src/app/(dashboard)/mail/components/mail.tsx +226 -0
- package/template/src/app/(dashboard)/mail/components/nav.tsx +83 -0
- package/template/src/app/(dashboard)/mail/data.tsx +300 -0
- package/template/src/app/(dashboard)/mail/index.tsx +6 -0
- package/template/src/app/(dashboard)/mail/page.tsx +18 -0
- package/template/src/app/(dashboard)/mail/use-mail.ts +20 -0
- package/template/src/app/(dashboard)/pricing/components/faq-section.tsx +79 -0
- package/template/src/app/(dashboard)/pricing/components/features-grid.tsx +51 -0
- package/template/src/app/(dashboard)/pricing/data/faqs.json +32 -0
- package/template/src/app/(dashboard)/pricing/data/features.ts +61 -0
- package/template/src/app/(dashboard)/pricing/page.tsx +24 -0
- package/template/src/app/(dashboard)/settings/account/page.tsx +276 -0
- package/template/src/app/(dashboard)/settings/appearance/page.tsx +313 -0
- package/template/src/app/(dashboard)/settings/billing/components/billing-history-card.tsx +53 -0
- package/template/src/app/(dashboard)/settings/billing/components/current-plan-card.tsx +82 -0
- package/template/src/app/(dashboard)/settings/billing/data/billing-history.json +23 -0
- package/template/src/app/(dashboard)/settings/billing/data/current-plan.json +12 -0
- package/template/src/app/(dashboard)/settings/billing/page.tsx +57 -0
- package/template/src/app/(dashboard)/settings/connections/page.tsx +366 -0
- package/template/src/app/(dashboard)/settings/notifications/page.tsx +845 -0
- package/template/src/app/(dashboard)/settings/user/page.tsx +415 -0
- package/template/src/app/(dashboard)/tasks/components/add-task-modal.tsx +291 -0
- package/template/src/app/(dashboard)/tasks/components/columns.tsx +159 -0
- package/template/src/app/(dashboard)/tasks/components/data-table-column-header.tsx +46 -0
- package/template/src/app/(dashboard)/tasks/components/data-table-faceted-filter.tsx +164 -0
- package/template/src/app/(dashboard)/tasks/components/data-table-pagination.tsx +107 -0
- package/template/src/app/(dashboard)/tasks/components/data-table-row-actions.tsx +72 -0
- package/template/src/app/(dashboard)/tasks/components/data-table-toolbar.tsx +189 -0
- package/template/src/app/(dashboard)/tasks/components/data-table-view-options.tsx +67 -0
- package/template/src/app/(dashboard)/tasks/components/data-table.tsx +122 -0
- package/template/src/app/(dashboard)/tasks/components/user-nav.tsx +70 -0
- package/template/src/app/(dashboard)/tasks/data/data.tsx +66 -0
- package/template/src/app/(dashboard)/tasks/data/schema.ts +13 -0
- package/template/src/app/(dashboard)/tasks/data/tasks.json +352 -0
- package/template/src/app/(dashboard)/tasks/page.tsx +204 -0
- package/template/src/app/(dashboard)/users/components/data-table.tsx +600 -0
- package/template/src/app/(dashboard)/users/components/stat-cards.tsx +91 -0
- package/template/src/app/(dashboard)/users/components/user-form-dialog.tsx +291 -0
- package/template/src/app/(dashboard)/users/data.json +182 -0
- package/template/src/app/(dashboard)/users/page.tsx +84 -0
- package/template/src/app/favicon.ico +0 -0
- package/template/src/app/globals.css +193 -0
- package/template/src/app/landing/components/about-section.tsx +125 -0
- package/template/src/app/landing/components/blog-section.tsx +86 -0
- package/template/src/app/landing/components/contact-section.tsx +299 -0
- package/template/src/app/landing/components/cta-section.tsx +121 -0
- package/template/src/app/landing/components/faq-section.tsx +125 -0
- package/template/src/app/landing/components/features-section.tsx +221 -0
- package/template/src/app/landing/components/footer.tsx +273 -0
- package/template/src/app/landing/components/hero-section.tsx +121 -0
- package/template/src/app/landing/components/landing-theme-customizer.tsx +563 -0
- package/template/src/app/landing/components/logo-carousel.tsx +130 -0
- package/template/src/app/landing/components/navbar.tsx +367 -0
- package/template/src/app/landing/components/pricing-section.tsx +214 -0
- package/template/src/app/landing/components/stats-section.tsx +71 -0
- package/template/src/app/landing/components/team-section.tsx +224 -0
- package/template/src/app/landing/components/testimonials-section.tsx +148 -0
- package/template/src/app/landing/landing-page-content.tsx +60 -0
- package/template/src/app/landing/page.tsx +6 -0
- package/template/src/app/layout.tsx +31 -0
- package/template/src/app/loading.tsx +10 -0
- package/template/src/app/not-found.tsx +20 -0
- package/template/src/app/page.tsx +32 -0
- package/template/src/assets/react.svg +1 -0
- package/template/src/components/app-sidebar.tsx +241 -0
- package/template/src/components/color-picker.tsx +91 -0
- package/template/src/components/command-search.tsx +251 -0
- package/template/src/components/dot-pattern.tsx +131 -0
- package/template/src/components/dynamic-imports.ts +28 -0
- package/template/src/components/icons/brand-icons.tsx +114 -0
- package/template/src/components/image-3d.tsx +90 -0
- package/template/src/components/landing/mega-menu.tsx +143 -0
- package/template/src/components/layouts/base-layout.tsx +109 -0
- package/template/src/components/logo.tsx +44 -0
- package/template/src/components/mode-toggle.tsx +76 -0
- package/template/src/components/nav-main.tsx +121 -0
- package/template/src/components/nav-secondary.tsx +43 -0
- package/template/src/components/nav-user.tsx +122 -0
- package/template/src/components/pricing-plans.tsx +181 -0
- package/template/src/components/sidebar-notification.tsx +59 -0
- package/template/src/components/site-footer.tsx +30 -0
- package/template/src/components/site-header.tsx +87 -0
- package/template/src/components/theme-customizer/circular-transition.css +115 -0
- package/template/src/components/theme-customizer/import-modal.tsx +128 -0
- package/template/src/components/theme-customizer/index.tsx +229 -0
- package/template/src/components/theme-customizer/layout-tab.tsx +274 -0
- package/template/src/components/theme-customizer/main.tsx +7 -0
- package/template/src/components/theme-customizer/theme-tab.tsx +403 -0
- package/template/src/components/theme-customizer.tsx +6 -0
- package/template/src/components/theme-provider.tsx +62 -0
- package/template/src/components/ui/accordion.tsx +77 -0
- package/template/src/components/ui/alert.tsx +75 -0
- package/template/src/components/ui/avatar.tsx +108 -0
- package/template/src/components/ui/badge.tsx +51 -0
- package/template/src/components/ui/breadcrumb.tsx +121 -0
- package/template/src/components/ui/button.tsx +57 -0
- package/template/src/components/ui/calendar.tsx +228 -0
- package/template/src/components/ui/card-decorator.tsx +20 -0
- package/template/src/components/ui/card.tsx +102 -0
- package/template/src/components/ui/chart.tsx +372 -0
- package/template/src/components/ui/checkbox.tsx +27 -0
- package/template/src/components/ui/collapsible.tsx +21 -0
- package/template/src/components/ui/command.tsx +193 -0
- package/template/src/components/ui/dialog.tsx +156 -0
- package/template/src/components/ui/drawer.tsx +224 -0
- package/template/src/components/ui/dropdown-menu.tsx +271 -0
- package/template/src/components/ui/field.tsx +238 -0
- package/template/src/components/ui/hover-card.tsx +50 -0
- package/template/src/components/ui/input-group.tsx +158 -0
- package/template/src/components/ui/input.tsx +19 -0
- package/template/src/components/ui/kbd.tsx +26 -0
- package/template/src/components/ui/label.tsx +19 -0
- package/template/src/components/ui/loading-spinner.tsx +31 -0
- package/template/src/components/ui/navigation-menu.tsx +170 -0
- package/template/src/components/ui/popover.tsx +89 -0
- package/template/src/components/ui/progress.tsx +82 -0
- package/template/src/components/ui/radio-group.tsx +37 -0
- package/template/src/components/ui/resizable.tsx +49 -0
- package/template/src/components/ui/scroll-area.tsx +54 -0
- package/template/src/components/ui/select.tsx +201 -0
- package/template/src/components/ui/separator.tsx +24 -0
- package/template/src/components/ui/sheet.tsx +134 -0
- package/template/src/components/ui/sidebar.tsx +726 -0
- package/template/src/components/ui/skeleton.tsx +13 -0
- package/template/src/components/ui/switch.tsx +31 -0
- package/template/src/components/ui/table.tsx +115 -0
- package/template/src/components/ui/tabs.tsx +81 -0
- package/template/src/components/ui/textarea.tsx +17 -0
- package/template/src/components/ui/toast.tsx +229 -0
- package/template/src/components/ui/toggle-group.tsx +89 -0
- package/template/src/components/ui/toggle.tsx +44 -0
- package/template/src/components/ui/tooltip.tsx +65 -0
- package/template/src/components/upgrade-to-pro-button.tsx +107 -0
- package/template/src/config/site.ts +8 -0
- package/template/src/config/theme-customizer-constants.ts +56 -0
- package/template/src/config/theme-data.ts +29 -0
- package/template/src/contexts/sidebar-config.ts +16 -0
- package/template/src/contexts/sidebar-context.tsx +33 -0
- package/template/src/contexts/theme-context.ts +16 -0
- package/template/src/hooks/use-circular-transition.ts +83 -0
- package/template/src/hooks/use-fullscreen.ts +43 -0
- package/template/src/hooks/use-mobile.ts +18 -0
- package/template/src/hooks/use-sidebar-config.ts +15 -0
- package/template/src/hooks/use-theme-manager.ts +218 -0
- package/template/src/hooks/use-theme.ts +11 -0
- package/template/src/lib/data-table.ts +54 -0
- package/template/src/lib/fonts.ts +8 -0
- package/template/src/lib/utils.ts +7 -0
- package/template/src/proxy.ts +38 -0
- package/template/src/types/theme-customizer.ts +45 -0
- package/template/src/types/theme.ts +58 -0
- package/template/src/utils/shadcn-ui-theme-presets.ts +741 -0
- package/template/src/utils/tweakcn-theme-presets.ts +3425 -0
- package/template/tsconfig.json +41 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
import { Field, FieldLabel } from "@/components/ui/field"
|
|
5
|
+
import { Button } from "@/components/ui/button"
|
|
6
|
+
import {
|
|
7
|
+
Card,
|
|
8
|
+
CardContent,
|
|
9
|
+
CardDescription,
|
|
10
|
+
CardHeader,
|
|
11
|
+
CardTitle,
|
|
12
|
+
} from "@/components/ui/card"
|
|
13
|
+
import { Input } from "@/components/ui/input"
|
|
14
|
+
|
|
15
|
+
export function ForgotPasswordForm1({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<"div">) {
|
|
19
|
+
return (
|
|
20
|
+
<div className={cn("flex flex-col gap-6", className)} {...props}>
|
|
21
|
+
<Card>
|
|
22
|
+
<CardHeader className="text-center">
|
|
23
|
+
<CardTitle className="text-xl">Forgot your password?</CardTitle>
|
|
24
|
+
<CardDescription>
|
|
25
|
+
Enter your email address and we'll send you a link to reset
|
|
26
|
+
your password
|
|
27
|
+
</CardDescription>
|
|
28
|
+
</CardHeader>
|
|
29
|
+
<CardContent>
|
|
30
|
+
<form>
|
|
31
|
+
<div className="grid gap-6">
|
|
32
|
+
<div className="grid gap-6">
|
|
33
|
+
<Field>
|
|
34
|
+
<FieldLabel htmlFor="email">Email</FieldLabel>
|
|
35
|
+
<Input
|
|
36
|
+
id="email"
|
|
37
|
+
type="email"
|
|
38
|
+
placeholder="m@example.com"
|
|
39
|
+
required
|
|
40
|
+
/>
|
|
41
|
+
</Field>
|
|
42
|
+
<Button type="submit" className="w-full cursor-pointer">
|
|
43
|
+
Send Reset Link
|
|
44
|
+
</Button>
|
|
45
|
+
</div>
|
|
46
|
+
<div className="text-center text-sm">
|
|
47
|
+
Remember your password?{" "}
|
|
48
|
+
<a
|
|
49
|
+
href="/auth/sign-in"
|
|
50
|
+
className="underline underline-offset-4"
|
|
51
|
+
>
|
|
52
|
+
Back to sign in
|
|
53
|
+
</a>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</form>
|
|
57
|
+
</CardContent>
|
|
58
|
+
</Card>
|
|
59
|
+
</div>
|
|
60
|
+
)
|
|
61
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ForgotPasswordForm1 } from "./components/forgot-password-form-1"
|
|
2
|
+
import { Logo } from "@/components/logo"
|
|
3
|
+
import Link from "next/link"
|
|
4
|
+
|
|
5
|
+
export default function ForgotPasswordPage() {
|
|
6
|
+
return (
|
|
7
|
+
<div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
|
8
|
+
<div className="flex w-full max-w-sm flex-col gap-6">
|
|
9
|
+
<Link
|
|
10
|
+
href="/"
|
|
11
|
+
className="flex items-center gap-2 self-center font-medium"
|
|
12
|
+
>
|
|
13
|
+
<div className="bg-primary text-primary-foreground flex size-9 items-center justify-center rounded-md">
|
|
14
|
+
<Logo size={24} />
|
|
15
|
+
</div>
|
|
16
|
+
Next-starter
|
|
17
|
+
</Link>
|
|
18
|
+
<ForgotPasswordForm1 />
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
import { Field, FieldLabel } from "@/components/ui/field"
|
|
5
|
+
import { Button } from "@/components/ui/button"
|
|
6
|
+
import { Input } from "@/components/ui/input"
|
|
7
|
+
|
|
8
|
+
export function ForgotPasswordForm2({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<"form">) {
|
|
12
|
+
return (
|
|
13
|
+
<form className={cn("flex flex-col gap-6", className)} {...props}>
|
|
14
|
+
<div className="flex flex-col items-center gap-2 text-center">
|
|
15
|
+
<h1 className="text-2xl font-bold">Forgot your password?</h1>
|
|
16
|
+
<p className="text-muted-foreground text-sm text-balance">
|
|
17
|
+
Enter your email address and we'll send you a link to reset your
|
|
18
|
+
password
|
|
19
|
+
</p>
|
|
20
|
+
</div>
|
|
21
|
+
<div className="grid gap-6">
|
|
22
|
+
<Field>
|
|
23
|
+
<FieldLabel htmlFor="email">Email</FieldLabel>
|
|
24
|
+
<Input id="email" type="email" placeholder="m@example.com" required />
|
|
25
|
+
</Field>
|
|
26
|
+
<Button type="submit" className="w-full cursor-pointer">
|
|
27
|
+
Send Reset Link
|
|
28
|
+
</Button>
|
|
29
|
+
</div>
|
|
30
|
+
<div className="text-center text-sm">
|
|
31
|
+
Remember your password?{" "}
|
|
32
|
+
<a href="/auth/sign-in-2" className="underline underline-offset-4">
|
|
33
|
+
Back to sign in
|
|
34
|
+
</a>
|
|
35
|
+
</div>
|
|
36
|
+
</form>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ForgotPasswordForm2 } from "./components/forgot-password-form-2"
|
|
2
|
+
import { Logo } from "@/components/logo"
|
|
3
|
+
import Link from "next/link"
|
|
4
|
+
|
|
5
|
+
export default function ForgotPassword2Page() {
|
|
6
|
+
return (
|
|
7
|
+
<div className="min-h-svh">
|
|
8
|
+
<div className="flex flex-col gap-4 p-6 md:p-10">
|
|
9
|
+
<div className="flex justify-center gap-2 md:justify-start">
|
|
10
|
+
<Link href="/" className="flex items-center gap-2 font-medium">
|
|
11
|
+
<div className="bg-primary text-primary-foreground flex size-8 items-center justify-center rounded-md">
|
|
12
|
+
<Logo size={24} />
|
|
13
|
+
</div>
|
|
14
|
+
Next-starter
|
|
15
|
+
</Link>
|
|
16
|
+
</div>
|
|
17
|
+
<div className="flex flex-1 items-center justify-center">
|
|
18
|
+
<div className="w-full max-w-md">
|
|
19
|
+
<ForgotPasswordForm2 />
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
import { Field, FieldLabel } from "@/components/ui/field"
|
|
5
|
+
import { Button } from "@/components/ui/button"
|
|
6
|
+
import { Card, CardContent } from "@/components/ui/card"
|
|
7
|
+
import { Input } from "@/components/ui/input"
|
|
8
|
+
import { Logo } from "@/components/logo"
|
|
9
|
+
import Link from "next/link"
|
|
10
|
+
|
|
11
|
+
export function ForgotPasswordForm3({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<"div">) {
|
|
15
|
+
return (
|
|
16
|
+
<div className={cn("flex flex-col gap-6", className)} {...props}>
|
|
17
|
+
<Card className="overflow-hidden p-0">
|
|
18
|
+
<CardContent className="p-0">
|
|
19
|
+
<form className="p-6 md:p-8">
|
|
20
|
+
<div className="flex flex-col gap-6">
|
|
21
|
+
<div className="flex justify-center mb-2">
|
|
22
|
+
<Link href="/" className="flex items-center gap-2 font-medium">
|
|
23
|
+
<div className="bg-primary text-primary-foreground flex size-8 items-center justify-center rounded-md">
|
|
24
|
+
<Logo size={24} />
|
|
25
|
+
</div>
|
|
26
|
+
<span className="text-xl">Next-starter</span>
|
|
27
|
+
</Link>
|
|
28
|
+
</div>
|
|
29
|
+
<div className="flex flex-col items-center text-center">
|
|
30
|
+
<h1 className="text-2xl font-bold">Forgot your password?</h1>
|
|
31
|
+
<p className="text-muted-foreground text-balance">
|
|
32
|
+
Enter your email to reset your Next-starter account password
|
|
33
|
+
</p>
|
|
34
|
+
</div>
|
|
35
|
+
<Field>
|
|
36
|
+
<FieldLabel htmlFor="email">Email</FieldLabel>
|
|
37
|
+
<Input
|
|
38
|
+
id="email"
|
|
39
|
+
type="email"
|
|
40
|
+
placeholder="m@example.com"
|
|
41
|
+
required
|
|
42
|
+
/>
|
|
43
|
+
</Field>
|
|
44
|
+
<Button type="submit" className="w-full cursor-pointer">
|
|
45
|
+
Send Reset Link
|
|
46
|
+
</Button>
|
|
47
|
+
<div className="text-center text-sm">
|
|
48
|
+
Remember your password?{" "}
|
|
49
|
+
<a
|
|
50
|
+
href="/auth/sign-in-3"
|
|
51
|
+
className="underline underline-offset-4"
|
|
52
|
+
>
|
|
53
|
+
Back to sign in
|
|
54
|
+
</a>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</form>
|
|
58
|
+
</CardContent>
|
|
59
|
+
</Card>
|
|
60
|
+
<div className="text-muted-foreground *:[a]:hover:text-primary text-center text-xs text-balance *:[a]:underline *:[a]:underline-offset-4">
|
|
61
|
+
By clicking continue, you agree to our <a href="#">Terms of Service</a>{" "}
|
|
62
|
+
and <a href="#">Privacy Policy</a>.
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
)
|
|
66
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ForgotPasswordForm3 } from "./components/forgot-password-form-3"
|
|
2
|
+
|
|
3
|
+
export default function ForgotPassword3Page() {
|
|
4
|
+
return (
|
|
5
|
+
<div className="min-h-screen flex items-center justify-center bg-background p-4">
|
|
6
|
+
<ForgotPasswordForm3 className="w-full max-w-sm md:max-w-4xl" />
|
|
7
|
+
</div>
|
|
8
|
+
)
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Metadata } from "next"
|
|
2
|
+
|
|
3
|
+
export const metadata: Metadata = {
|
|
4
|
+
title: "Authentication - Next-starter",
|
|
5
|
+
description: "Sign in to your account or create a new one",
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default function AuthLayout({
|
|
9
|
+
children,
|
|
10
|
+
}: {
|
|
11
|
+
children: React.ReactNode
|
|
12
|
+
}) {
|
|
13
|
+
return <div className="min-h-screen bg-background">{children}</div>
|
|
14
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { zodResolver } from "@hookform/resolvers/zod"
|
|
4
|
+
import { Controller, useForm } from "react-hook-form"
|
|
5
|
+
import { z } from "zod"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
import {
|
|
8
|
+
Field,
|
|
9
|
+
FieldError,
|
|
10
|
+
FieldGroup,
|
|
11
|
+
FieldLabel,
|
|
12
|
+
} from "@/components/ui/field"
|
|
13
|
+
import { Button } from "@/components/ui/button"
|
|
14
|
+
import {
|
|
15
|
+
Card,
|
|
16
|
+
CardContent,
|
|
17
|
+
CardDescription,
|
|
18
|
+
CardHeader,
|
|
19
|
+
CardTitle,
|
|
20
|
+
} from "@/components/ui/card"
|
|
21
|
+
import { Input } from "@/components/ui/input"
|
|
22
|
+
|
|
23
|
+
const loginFormSchema = z.object({
|
|
24
|
+
email: z.string().email("Invalid email address"),
|
|
25
|
+
password: z.string().min(6, "Password must be at least 6 characters"),
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
type LoginFormValues = z.infer<typeof loginFormSchema>
|
|
29
|
+
|
|
30
|
+
export function LoginForm1({
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}: React.ComponentProps<"div">) {
|
|
34
|
+
const form = useForm<LoginFormValues>({
|
|
35
|
+
resolver: zodResolver(loginFormSchema),
|
|
36
|
+
defaultValues: {
|
|
37
|
+
email: "test@example.com",
|
|
38
|
+
password: "password",
|
|
39
|
+
},
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<div className={cn("flex flex-col gap-6", className)} {...props}>
|
|
44
|
+
<Card>
|
|
45
|
+
<CardHeader className="text-center">
|
|
46
|
+
<CardTitle className="text-xl">Welcome back</CardTitle>
|
|
47
|
+
<CardDescription>
|
|
48
|
+
Enter your email below to login to your account
|
|
49
|
+
</CardDescription>
|
|
50
|
+
</CardHeader>
|
|
51
|
+
<CardContent>
|
|
52
|
+
<form action="/">
|
|
53
|
+
<div className="grid gap-6">
|
|
54
|
+
<FieldGroup className="grid gap-4">
|
|
55
|
+
<Controller
|
|
56
|
+
control={form.control}
|
|
57
|
+
name="email"
|
|
58
|
+
render={({ field, fieldState }) => (
|
|
59
|
+
<Field data-invalid={fieldState.invalid}>
|
|
60
|
+
<FieldLabel htmlFor="login-form-1-email">
|
|
61
|
+
Email
|
|
62
|
+
</FieldLabel>
|
|
63
|
+
|
|
64
|
+
<Input
|
|
65
|
+
id="login-form-1-email"
|
|
66
|
+
aria-invalid={fieldState.invalid}
|
|
67
|
+
type="email"
|
|
68
|
+
placeholder="test@example.com"
|
|
69
|
+
{...field}
|
|
70
|
+
/>
|
|
71
|
+
{fieldState.invalid && (
|
|
72
|
+
<FieldError errors={[fieldState.error]} />
|
|
73
|
+
)}
|
|
74
|
+
</Field>
|
|
75
|
+
)}
|
|
76
|
+
/>
|
|
77
|
+
<Controller
|
|
78
|
+
control={form.control}
|
|
79
|
+
name="password"
|
|
80
|
+
render={({ field, fieldState }) => (
|
|
81
|
+
<Field data-invalid={fieldState.invalid}>
|
|
82
|
+
<div className="flex items-center">
|
|
83
|
+
<FieldLabel htmlFor="login-form-1-password">
|
|
84
|
+
Password
|
|
85
|
+
</FieldLabel>
|
|
86
|
+
<a
|
|
87
|
+
href="/auth/forgot-password"
|
|
88
|
+
className="ml-auto text-sm underline-offset-4 hover:underline"
|
|
89
|
+
>
|
|
90
|
+
Forgot your password?
|
|
91
|
+
</a>
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
<Input
|
|
95
|
+
id="login-form-1-password"
|
|
96
|
+
aria-invalid={fieldState.invalid}
|
|
97
|
+
type="password"
|
|
98
|
+
{...field}
|
|
99
|
+
/>
|
|
100
|
+
{fieldState.invalid && (
|
|
101
|
+
<FieldError errors={[fieldState.error]} />
|
|
102
|
+
)}
|
|
103
|
+
</Field>
|
|
104
|
+
)}
|
|
105
|
+
/>
|
|
106
|
+
<Button type="submit" className="w-full cursor-pointer">
|
|
107
|
+
Login
|
|
108
|
+
</Button>
|
|
109
|
+
|
|
110
|
+
<Button
|
|
111
|
+
variant="outline"
|
|
112
|
+
className="w-full cursor-pointer"
|
|
113
|
+
type="button"
|
|
114
|
+
>
|
|
115
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
116
|
+
<path
|
|
117
|
+
d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
|
118
|
+
fill="currentColor"
|
|
119
|
+
/>
|
|
120
|
+
</svg>
|
|
121
|
+
Login with Google
|
|
122
|
+
</Button>
|
|
123
|
+
</FieldGroup>
|
|
124
|
+
<div className="text-center text-sm">
|
|
125
|
+
Don't have an account?{" "}
|
|
126
|
+
<a
|
|
127
|
+
href="/auth/sign-up"
|
|
128
|
+
className="underline underline-offset-4"
|
|
129
|
+
>
|
|
130
|
+
Sign up
|
|
131
|
+
</a>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</form>
|
|
135
|
+
</CardContent>
|
|
136
|
+
</Card>
|
|
137
|
+
<div className="text-muted-foreground *:[a]:hover:text-primary text-center text-xs text-balance *:[a]:underline *:[a]:underline-offset-4">
|
|
138
|
+
By clicking continue, you agree to our <a href="#">Terms of Service</a>{" "}
|
|
139
|
+
and <a href="#">Privacy Policy</a>.
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
)
|
|
143
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LoginForm1 } from "./components/login-form-1"
|
|
2
|
+
import { Logo } from "@/components/logo"
|
|
3
|
+
import Link from "next/link"
|
|
4
|
+
|
|
5
|
+
export default function Page() {
|
|
6
|
+
return (
|
|
7
|
+
<div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
|
8
|
+
<div className="flex w-full max-w-sm flex-col gap-6">
|
|
9
|
+
<Link
|
|
10
|
+
href="/"
|
|
11
|
+
className="flex items-center gap-2 self-center font-medium"
|
|
12
|
+
>
|
|
13
|
+
<div className="bg-primary text-primary-foreground flex size-9 items-center justify-center rounded-md">
|
|
14
|
+
<Logo size={24} />
|
|
15
|
+
</div>
|
|
16
|
+
Next-starter
|
|
17
|
+
</Link>
|
|
18
|
+
<LoginForm1 />
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
import { Field, FieldLabel } from "@/components/ui/field"
|
|
5
|
+
import { Button } from "@/components/ui/button"
|
|
6
|
+
import { Input } from "@/components/ui/input"
|
|
7
|
+
|
|
8
|
+
export function LoginForm2({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<"form">) {
|
|
12
|
+
return (
|
|
13
|
+
<form
|
|
14
|
+
className={cn("flex flex-col gap-6", className)}
|
|
15
|
+
{...props}
|
|
16
|
+
action="/dashboard"
|
|
17
|
+
>
|
|
18
|
+
<div className="flex flex-col items-center gap-2 text-center">
|
|
19
|
+
<h1 className="text-2xl font-bold">Login to your account</h1>
|
|
20
|
+
<p className="text-muted-foreground text-sm text-balance">
|
|
21
|
+
Enter your email below to login to your account
|
|
22
|
+
</p>
|
|
23
|
+
</div>
|
|
24
|
+
<div className="grid gap-6">
|
|
25
|
+
<Field>
|
|
26
|
+
<FieldLabel htmlFor="email">Email</FieldLabel>
|
|
27
|
+
<Input
|
|
28
|
+
id="email"
|
|
29
|
+
type="email"
|
|
30
|
+
placeholder="test@example.com"
|
|
31
|
+
defaultValue="test@example.com"
|
|
32
|
+
required
|
|
33
|
+
/>
|
|
34
|
+
</Field>
|
|
35
|
+
<Field>
|
|
36
|
+
<div className="flex items-center">
|
|
37
|
+
<FieldLabel htmlFor="password">Password</FieldLabel>
|
|
38
|
+
<a
|
|
39
|
+
href="/auth/forgot-password-2"
|
|
40
|
+
className="ml-auto text-sm underline-offset-4 hover:underline"
|
|
41
|
+
>
|
|
42
|
+
Forgot your password?
|
|
43
|
+
</a>
|
|
44
|
+
</div>
|
|
45
|
+
<Input
|
|
46
|
+
id="password"
|
|
47
|
+
type="password"
|
|
48
|
+
defaultValue="password"
|
|
49
|
+
required
|
|
50
|
+
/>
|
|
51
|
+
</Field>
|
|
52
|
+
<Button type="submit" className="w-full cursor-pointer">
|
|
53
|
+
Login
|
|
54
|
+
</Button>
|
|
55
|
+
<div className="after:border-border relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t">
|
|
56
|
+
<span className="bg-background text-muted-foreground relative z-10 px-2">
|
|
57
|
+
Or continue with
|
|
58
|
+
</span>
|
|
59
|
+
</div>
|
|
60
|
+
<Button variant="outline" className="w-full cursor-pointer">
|
|
61
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
62
|
+
<path
|
|
63
|
+
d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
|
|
64
|
+
fill="currentColor"
|
|
65
|
+
/>
|
|
66
|
+
</svg>
|
|
67
|
+
Login with GitHub
|
|
68
|
+
</Button>
|
|
69
|
+
</div>
|
|
70
|
+
<div className="text-center text-sm">
|
|
71
|
+
Don't have an account?{" "}
|
|
72
|
+
<a href="/auth/sign-up-2" className="underline underline-offset-4">
|
|
73
|
+
Sign up
|
|
74
|
+
</a>
|
|
75
|
+
</div>
|
|
76
|
+
</form>
|
|
77
|
+
)
|
|
78
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LoginForm2 } from "./components/login-form-2"
|
|
2
|
+
import { Logo } from "@/components/logo"
|
|
3
|
+
import Link from "next/link"
|
|
4
|
+
|
|
5
|
+
export default function LoginPage() {
|
|
6
|
+
return (
|
|
7
|
+
<div className="min-h-svh">
|
|
8
|
+
<div className="flex flex-col gap-4 p-6 md:p-10">
|
|
9
|
+
<div className="flex justify-center gap-2 md:justify-start">
|
|
10
|
+
<Link href="/" className="flex items-center gap-2 font-medium">
|
|
11
|
+
<div className="bg-primary text-primary-foreground flex size-8 items-center justify-center rounded-md">
|
|
12
|
+
<Logo size={24} />
|
|
13
|
+
</div>
|
|
14
|
+
Next-starter
|
|
15
|
+
</Link>
|
|
16
|
+
</div>
|
|
17
|
+
<div className="flex flex-1 items-center justify-center">
|
|
18
|
+
<div className="w-full max-w-md">
|
|
19
|
+
<LoginForm2 />
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
import { Field, FieldLabel } from "@/components/ui/field"
|
|
5
|
+
import { Button } from "@/components/ui/button"
|
|
6
|
+
import { Card, CardContent } from "@/components/ui/card"
|
|
7
|
+
import { Input } from "@/components/ui/input"
|
|
8
|
+
import { Logo } from "@/components/logo"
|
|
9
|
+
import Link from "next/link"
|
|
10
|
+
|
|
11
|
+
export function LoginForm3({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<"div">) {
|
|
15
|
+
return (
|
|
16
|
+
<div className={cn("flex flex-col gap-6", className)} {...props}>
|
|
17
|
+
<Card className="overflow-hidden p-0">
|
|
18
|
+
<CardContent className="p-0">
|
|
19
|
+
<form className="p-6 md:p-8" action="/dashboard">
|
|
20
|
+
<div className="flex flex-col gap-6">
|
|
21
|
+
<div className="flex justify-center mb-2">
|
|
22
|
+
<Link href="/" className="flex items-center gap-2 font-medium">
|
|
23
|
+
<div className="bg-primary text-primary-foreground flex size-8 items-center justify-center rounded-md">
|
|
24
|
+
<Logo size={24} />
|
|
25
|
+
</div>
|
|
26
|
+
<span className="text-xl">Next-starter</span>
|
|
27
|
+
</Link>
|
|
28
|
+
</div>
|
|
29
|
+
<div className="flex flex-col items-center text-center">
|
|
30
|
+
<h1 className="text-2xl font-bold">Welcome back</h1>
|
|
31
|
+
<p className="text-muted-foreground text-balance">
|
|
32
|
+
Login to your Next-starter account
|
|
33
|
+
</p>
|
|
34
|
+
</div>
|
|
35
|
+
<Field>
|
|
36
|
+
<FieldLabel htmlFor="email">Email</FieldLabel>
|
|
37
|
+
<Input
|
|
38
|
+
id="email"
|
|
39
|
+
type="email"
|
|
40
|
+
placeholder="test@example.com"
|
|
41
|
+
defaultValue="test@example.com"
|
|
42
|
+
required
|
|
43
|
+
/>
|
|
44
|
+
</Field>
|
|
45
|
+
<Field>
|
|
46
|
+
<div className="flex items-center">
|
|
47
|
+
<FieldLabel htmlFor="password">Password</FieldLabel>
|
|
48
|
+
<a
|
|
49
|
+
href="/auth/forgot-password-3"
|
|
50
|
+
className="ml-auto text-sm underline-offset-2 hover:underline"
|
|
51
|
+
>
|
|
52
|
+
Forgot your password?
|
|
53
|
+
</a>
|
|
54
|
+
</div>
|
|
55
|
+
<Input
|
|
56
|
+
id="password"
|
|
57
|
+
type="password"
|
|
58
|
+
defaultValue="password"
|
|
59
|
+
required
|
|
60
|
+
/>
|
|
61
|
+
</Field>
|
|
62
|
+
<Button type="submit" className="w-full cursor-pointer">
|
|
63
|
+
Login
|
|
64
|
+
</Button>
|
|
65
|
+
<div className="after:border-border relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t">
|
|
66
|
+
<span className="bg-card text-muted-foreground relative z-10 px-2">
|
|
67
|
+
Or continue with
|
|
68
|
+
</span>
|
|
69
|
+
</div>
|
|
70
|
+
<div className="grid grid-cols-3 gap-4">
|
|
71
|
+
<Button
|
|
72
|
+
variant="outline"
|
|
73
|
+
type="button"
|
|
74
|
+
className="w-full cursor-pointer"
|
|
75
|
+
>
|
|
76
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
77
|
+
<path
|
|
78
|
+
d="M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"
|
|
79
|
+
fill="currentColor"
|
|
80
|
+
/>
|
|
81
|
+
</svg>
|
|
82
|
+
<span className="sr-only">Login with Apple</span>
|
|
83
|
+
</Button>
|
|
84
|
+
<Button
|
|
85
|
+
variant="outline"
|
|
86
|
+
type="button"
|
|
87
|
+
className="w-full cursor-pointer"
|
|
88
|
+
>
|
|
89
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
90
|
+
<path
|
|
91
|
+
d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
|
92
|
+
fill="currentColor"
|
|
93
|
+
/>
|
|
94
|
+
</svg>
|
|
95
|
+
<span className="sr-only">Login with Google</span>
|
|
96
|
+
</Button>
|
|
97
|
+
<Button
|
|
98
|
+
variant="outline"
|
|
99
|
+
type="button"
|
|
100
|
+
className="w-full cursor-pointer"
|
|
101
|
+
>
|
|
102
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
103
|
+
<path
|
|
104
|
+
d="M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z"
|
|
105
|
+
fill="currentColor"
|
|
106
|
+
/>
|
|
107
|
+
</svg>
|
|
108
|
+
<span className="sr-only">Login with Meta</span>
|
|
109
|
+
</Button>
|
|
110
|
+
</div>
|
|
111
|
+
<div className="text-center text-sm">
|
|
112
|
+
Don't have an account?{" "}
|
|
113
|
+
<a
|
|
114
|
+
href="/auth/sign-up-3"
|
|
115
|
+
className="underline underline-offset-4"
|
|
116
|
+
>
|
|
117
|
+
Sign up
|
|
118
|
+
</a>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
</form>
|
|
122
|
+
</CardContent>
|
|
123
|
+
</Card>
|
|
124
|
+
<div className="text-muted-foreground *:[a]:hover:text-primary text-center text-xs text-balance *:[a]:underline *:[a]:underline-offset-4">
|
|
125
|
+
By clicking continue, you agree to our <a href="#">Terms of Service</a>{" "}
|
|
126
|
+
and <a href="#">Privacy Policy</a>.
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
)
|
|
130
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LoginForm3 } from "./components/login-form-3"
|
|
2
|
+
|
|
3
|
+
export default function LoginPage() {
|
|
4
|
+
return (
|
|
5
|
+
<div className="bg-muted flex min-h-svh flex-col items-center justify-center p-6 md:p-10">
|
|
6
|
+
<div className="w-full max-w-sm md:max-w-4xl">
|
|
7
|
+
<LoginForm3 />
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
)
|
|
11
|
+
}
|