2023-01-10 00:56:19 +00:00
|
|
|
import Link from 'next/link'
|
2023-07-23 15:08:43 +00:00
|
|
|
import { StaticLayout } from '../components/layout'
|
2023-01-10 00:56:19 +00:00
|
|
|
import Login from '../components/login'
|
2023-07-11 15:21:46 +00:00
|
|
|
export { getServerSideProps } from './login'
|
2023-01-10 00:56:19 +00:00
|
|
|
|
|
|
|
function SignUpHeader () {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<h3 className='w-100 pb-2'>
|
|
|
|
Sign up
|
|
|
|
</h3>
|
2024-03-05 03:00:43 +00:00
|
|
|
<div className='fw-bold text-muted pb-4'>Join 21,000+ bitcoiners and start stacking sats today</div>
|
2023-01-10 00:56:19 +00:00
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
function SignUpFooter ({ callbackUrl }) {
|
|
|
|
return (
|
2023-07-24 18:35:05 +00:00
|
|
|
<small className='fw-bold text-muted pt-4'>Already have an account? <Link href={{ pathname: '/login', query: { callbackUrl } }}>login</Link></small>
|
2023-01-10 00:56:19 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function SignUp ({ ...props }) {
|
|
|
|
return (
|
2023-07-23 15:08:43 +00:00
|
|
|
<StaticLayout footerLinks={false}>
|
2023-01-10 23:13:37 +00:00
|
|
|
<Login
|
|
|
|
Header={() => <SignUpHeader />}
|
|
|
|
Footer={() => <SignUpFooter callbackUrl={props.callbackUrl} />}
|
|
|
|
text='Sign up'
|
|
|
|
{...props}
|
|
|
|
/>
|
2023-07-23 15:08:43 +00:00
|
|
|
</StaticLayout>
|
2023-01-10 00:56:19 +00:00
|
|
|
)
|
|
|
|
}
|