stacker.news/pages/signup.js

35 lines
910 B
JavaScript
Raw Normal View History

2023-01-10 00:56:19 +00:00
import Link from 'next/link'
2023-05-01 20:58:30 +00:00
import LayoutStatic from '../components/layout-static'
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>
2023-07-11 15:21:46 +00:00
<div className='font-weight-bold text-muted pb-4'>Join 15,000+ bitcoiners and start stacking sats today</div>
2023-01-10 00:56:19 +00:00
</>
)
}
function SignUpFooter ({ callbackUrl }) {
return (
<small className='font-weight-bold text-muted pt-4'>Already have an account? <Link href={{ pathname: '/login', query: { callbackUrl } }}>login</Link></small>
)
}
export default function SignUp ({ ...props }) {
return (
2023-05-01 20:58:30 +00:00
<LayoutStatic>
<Login
Header={() => <SignUpHeader />}
Footer={() => <SignUpFooter callbackUrl={props.callbackUrl} />}
text='Sign up'
{...props}
/>
2023-05-01 20:58:30 +00:00
</LayoutStatic>
2023-01-10 00:56:19 +00:00
)
}