Skip to content

Commit

Permalink
feat: add user profile to manage account
Browse files Browse the repository at this point in the history
  • Loading branch information
ixartz committed Aug 9, 2023
1 parent 42e55f1 commit 581efbe
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ CLERK_SECRET_KEY=your_secret_key

NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/dashboard
18 changes: 18 additions & 0 deletions src/app/(auth)/dashboard/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { Metadata } from 'next';

import { Main } from '@/templates/Main';

export const metadata: Metadata = {
title: 'Dashboard',
description: 'User dashboard',
};

const Dashboard = async () => {
return (
<Main>
<p>Hello</p>
</Main>
);
};

export default Dashboard;
16 changes: 16 additions & 0 deletions src/app/(auth)/dashboard/user-profile/[[...user-profile]]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { UserProfile } from '@clerk/nextjs';
import type { Metadata } from 'next';

export const metadata: Metadata = {
title: 'Sign up',
description:
'Seamlessly sign in to your account with our user-friendly login process.',
};

const UserProfilePage = () => (
<div className="flex min-h-screen items-center justify-center">
<UserProfile />
</div>
);

export default UserProfilePage;

0 comments on commit 581efbe

Please sign in to comment.