stacker.news/pages/signup.js

35 lines
907 B
JavaScript
Raw Normal View History

2023-01-10 00:56:19 +00:00
import Link from 'next/link'
import { StaticLayout } from '@/components/layout'
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 (
<StaticLayout footerLinks={false}>
<Login
Header={() => <SignUpHeader />}
Footer={() => <SignUpFooter callbackUrl={props.callbackUrl} />}
text='Sign up'
{...props}
/>
</StaticLayout>
2023-01-10 00:56:19 +00:00
)
}