stacker.news/pages/signup.js

35 lines
905 B
JavaScript
Raw Normal View History

2023-01-09 18:56:19 -06:00
import Link from 'next/link'
import { StaticLayout } from '@/components/layout'
import Login from '@/components/login'
2023-07-11 10:21:46 -05:00
export { getServerSideProps } from './login'
2023-01-09 18:56:19 -06:00
function SignUpHeader () {
return (
<>
<h3 className='w-100 pb-2'>
Sign up
</h3>
2024-02-23 09:32:20 -06:00
<div className='fw-bold text-muted w-100 text-start pb-4'>You sure you want to stack sats, pardner?</div>
2023-01-09 18:56:19 -06:00
</>
)
}
function SignUpFooter ({ callbackUrl }) {
return (
2024-02-23 09:32:20 -06:00
<small className='fw-bold text-muted pt-4'>Been here before? <Link href={{ pathname: '/login', query: { callbackUrl } }}>login</Link></small>
2023-01-09 18:56:19 -06: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-09 18:56:19 -06:00
)
}