forked from agentic-review-benchmarks/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsuccess-view.tsx
More file actions
22 lines (21 loc) · 988 Bytes
/
success-view.tsx
File metadata and controls
22 lines (21 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from 'react';
import {ReactComponent as EmailIcon} from '../../../assets/icons/email.svg';
import {useAppContext} from '../../app-context';
export const SuccessView: React.FC<{
email: string;
backgroundColor?: string;
textColor?: string;
}> = ({backgroundColor, textColor}) => {
const {t} = useAppContext();
return (
<div
className='flex h-[100vh] flex-col items-center justify-center bg-grey-200 px-4 sm:px-6 md:px-10'
data-testid="success-page"
style={{backgroundColor, color: textColor}}
>
<EmailIcon className='my-3 w-8' />
<h1 className='text-center text-lg font-bold sm:text-xl md:text-2xl lg:text-3xl'>{t(`Now check your email!`)}</h1>
<p className='mb-4 max-w-[600px] text-center sm:mb-[4.1rem]'>{t(`To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!`)}</p>
</div>
);
};