diff --git a/apps/marketing/src/app/(marketing)/layout.tsx b/apps/marketing/src/app/(marketing)/layout.tsx index ab9de03d5..1e442f717 100644 --- a/apps/marketing/src/app/(marketing)/layout.tsx +++ b/apps/marketing/src/app/(marketing)/layout.tsx @@ -45,7 +45,7 @@ export default function MarketingLayout({ children }: MarketingLayoutProps) { background pattern diff --git a/apps/web/src/app/(dashboard)/documents/username-claim/public-profile-intro.tsx b/apps/web/src/app/(dashboard)/documents/username-claim/public-profile-intro.tsx index c14f6c99d..a9c2fb4ea 100644 --- a/apps/web/src/app/(dashboard)/documents/username-claim/public-profile-intro.tsx +++ b/apps/web/src/app/(dashboard)/documents/username-claim/public-profile-intro.tsx @@ -2,11 +2,14 @@ import React, { useRef, useState } from 'react'; +import Image from 'next/image'; + import { zodResolver } from '@hookform/resolvers/zod'; -import { BadgeCheck, File } from 'lucide-react'; +import { File } from 'lucide-react'; import { useForm } from 'react-hook-form'; import { z } from 'zod'; +import Check from '@documenso/assets/Check.svg'; import Lucas from '@documenso/assets/images/Lucas.png'; import Timur from '@documenso/assets/images/Timur.png'; import type { User } from '@documenso/prisma/client'; @@ -60,7 +63,7 @@ export const PublicProfileIntro = ({ user }: PublicProfileIntroProps) => { const isProfileURLClaimed = user.profileURL ? false : true; const [showClaimingDialog, setShowClaimingDialog] = useState(isProfileURLClaimed); - const [showClaimedDialog, setShowClaimedDialog] = useState(false); + const [showClaimedDialog, setShowClaimedDialog] = useState(true); const onFormSubmit = async ({ profileURL }: TPublicProfileFormSchema) => { try { @@ -92,40 +95,38 @@ export const PublicProfileIntro = ({ user }: PublicProfileIntroProps) => { - + Introducing public profile! - + Reserve your Documenso public profile username - - - - documenso.com/u/timur - - - - Timur - -
- Timur Ercan -
- - Hey I’m Timur
Pick any of the following agreements below and start signing to - get started -
-
- - Documents + + + documenso.com/u/timur + + + + Timur + +
+ Timur Ercan Check +
+ + Hey I’m Timur
Pick any of the following agreements below and start signing to + get started +
+ + Documents
NDA.pdf - + Like to discuss about my work?
@@ -135,6 +136,12 @@ export const PublicProfileIntro = ({ user }: PublicProfileIntroProps) => {
+
@@ -173,7 +180,7 @@ export const PublicProfileIntro = ({ user }: PublicProfileIntroProps) => {
- + All set! @@ -192,7 +199,7 @@ export const PublicProfileIntro = ({ user }: PublicProfileIntroProps) => { Timur
- Lucas Smith + Lucas Smith Check
diff --git a/apps/web/src/app/(unauthenticated)/signup/layout.tsx b/apps/web/src/app/(unauthenticated)/signup/layout.tsx index cbd6e8a37..6ca54db08 100644 --- a/apps/web/src/app/(unauthenticated)/signup/layout.tsx +++ b/apps/web/src/app/(unauthenticated)/signup/layout.tsx @@ -1,8 +1,5 @@ import React from 'react'; -import { Card } from '@documenso/ui/primitives/card'; - -import ClaimUsernameCard from '../../../components/(dashboard)/claim-username-card/claim-username-card'; import { NewHeader } from '../../../components/(dashboard)/layout/new/new-header'; type SignUpLayoutProps = { @@ -13,13 +10,11 @@ export default function SignUpLayout({ children }: SignUpLayoutProps) { return ( <> -
-
- - -
{children}
-
-
+
+
{children}
); diff --git a/apps/web/src/app/(unauthenticated)/signup/page.tsx b/apps/web/src/app/(unauthenticated)/signup/page.tsx index 4d3715886..12e0eb28d 100644 --- a/apps/web/src/app/(unauthenticated)/signup/page.tsx +++ b/apps/web/src/app/(unauthenticated)/signup/page.tsx @@ -1,8 +1,6 @@ import type { Metadata } from 'next'; -import Link from 'next/link'; import { redirect } from 'next/navigation'; -import { IS_GOOGLE_SSO_ENABLED } from '@documenso/lib/constants/auth'; import { decryptSecondaryData } from '@documenso/lib/server-only/crypto/decrypt'; import { SignUpForm } from '~/components/forms/signup'; @@ -31,25 +29,7 @@ export default function SignUpPage({ searchParams }: SignUpPageProps) { return ( <> -

Create a new account

- -

- Create your account and start using state-of-the-art document signing. Open and beautiful - signing is within your grasp. -

- - - -

- Already have an account?{' '} - - Sign in instead - -

+ ); } diff --git a/apps/web/src/components/(dashboard)/claim-username-card/claim-username-card.tsx b/apps/web/src/components/(dashboard)/claim-username-card/claim-username-card.tsx index d215e91f0..b5b3e828b 100644 --- a/apps/web/src/components/(dashboard)/claim-username-card/claim-username-card.tsx +++ b/apps/web/src/components/(dashboard)/claim-username-card/claim-username-card.tsx @@ -4,8 +4,9 @@ import React from 'react'; import Image from 'next/image'; -import { BadgeCheck, File } from 'lucide-react'; +import { File } from 'lucide-react'; +import Check from '@documenso/assets/Check.svg'; import Timur from '@documenso/assets/images/Timur.png'; import backgroundPattern from '@documenso/assets/images/background-blog-og.png'; import { cn } from '@documenso/ui/lib/utils'; @@ -13,68 +14,71 @@ import { Avatar, AvatarFallback, AvatarImage } from '@documenso/ui/primitives/av import { Button } from '@documenso/ui/primitives/button'; import { Card, CardFooter, CardHeader } from '@documenso/ui/primitives/card'; -export default function ClaimUsernameCard() { +type ClaimUsernameCardProps = { + className: string; +}; + +export default function ClaimUsernameCard({ className }: ClaimUsernameCardProps) { const onSignUpClick = () => {}; return ( -
-
+
+ background pattern -
- - - + + documenso.com/u/timur - + Timur -
- Timur Ercan +
+ Timur Ercan Check
- - Hey I’m Timur
Pick any of the following agreements below and start signing to get - started + + Hey I’m Timur
Pick any of the following agreements below and
start signing + to get started
- - - Documents -
-
-
- -
- NDA.pdf - - Like to discuss about my work? - + + Documents +
+
+
+ +
+ NDA.pdf + + Like to discuss about my work? + +
+
- -
-
-
-
- -
- NDA.pdf - - Like to discuss about my work? - +
+
+
+ +
+ NDA.pdf + + Like to discuss about my work? + +
+
- -
+ - + + - - {isGoogleSSOEnabled && ( - <> -
-
- Or -
-
- - - - )} - - +
+
+ ( + + Public profile URL + + <> + +
+ + documenso.com/u/ + +
+ +
+ +
+ )} + /> +
+
+ ( + + Full Name + + + + + + )} + /> + + ( + + Email Address + + + + + + )} + /> + + ( + + Password + + + + + + )} + /> + + ( + + Sign Here + + onChange(v ?? '')} + height={200} + /> + + + + + )} + /> +
+
+ + {isGoogleSSOEnabled && ( + <> +
+
+ Or +
+
+ + + + )} +

+ Already have an account?{' '} + + Sign in instead + +

+
+

+ {isValid ? 'Claim username' : `Basic details ${stepsRemaining}/2`} +

+ +

Minimise contract

+
+ +
+
+
+ {!isValid && ( + + )} + {isValid && ( + + )} + + +
+ + ); }; diff --git a/packages/assets/Check.svg b/packages/assets/Check.svg new file mode 100644 index 000000000..f07b41a5f --- /dev/null +++ b/packages/assets/Check.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/ui/primitives/signature-pad/signature-pad.tsx b/packages/ui/primitives/signature-pad/signature-pad.tsx index eb9403df4..39d89ebe3 100644 --- a/packages/ui/primitives/signature-pad/signature-pad.tsx +++ b/packages/ui/primitives/signature-pad/signature-pad.tsx @@ -17,6 +17,7 @@ export type SignaturePadProps = Omit, 'onChang onChange?: (_signatureDataUrl: string | null) => void; containerClassName?: string; disabled?: boolean; + height?: number; }; export const SignaturePad = ({ @@ -25,6 +26,7 @@ export const SignaturePad = ({ defaultValue, onChange, disabled = false, + height, ...props }: SignaturePadProps) => { const $el = useRef(null); @@ -230,6 +232,7 @@ export const SignaturePad = ({ onPointerUp={(event) => onMouseUp(event)} onPointerLeave={(event) => onMouseLeave(event)} onPointerEnter={(event) => onMouseEnter(event)} + height={height} {...props} />