Add CTA banner to the bottom of the page
This commit is contained in:
parent
1d5ce04b86
commit
989b1800fa
|
@ -31,7 +31,7 @@ const weights = {
|
||||||
const sizes = {
|
const sizes = {
|
||||||
xs: 'text-xs',
|
xs: 'text-xs',
|
||||||
sm: 'text-sm',
|
sm: 'text-sm',
|
||||||
md: 'text-md',
|
md: 'text-base',
|
||||||
lg: 'text-lg',
|
lg: 'text-lg',
|
||||||
xl: 'text-xl',
|
xl: 'text-xl',
|
||||||
'2xl': 'text-2xl',
|
'2xl': 'text-2xl',
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
import { Button, Stack, Text } from 'soapbox/components/ui';
|
import { Button, HStack, Stack, Text } from 'soapbox/components/ui';
|
||||||
import { useAppSelector, useSoapboxConfig } from 'soapbox/hooks';
|
import { useAppSelector, useSoapboxConfig } from 'soapbox/hooks';
|
||||||
|
|
||||||
const SignUpPanel = () => {
|
const SignUpPanel = () => {
|
||||||
|
@ -12,13 +12,14 @@ const SignUpPanel = () => {
|
||||||
if (me || singleUserMode) return null;
|
if (me || singleUserMode) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div>
|
||||||
<Stack space={2}>
|
<Stack space={2}>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Text size='lg' weight='bold'>
|
<Text size='lg' weight='bold'>
|
||||||
<FormattedMessage id='signup_panel.title' defaultMessage='New to {site_title}?' values={{ site_title: siteTitle }} />
|
<FormattedMessage id='signup_panel.title' defaultMessage='New to {site_title}?' values={{ site_title: siteTitle }} />
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Text theme='muted'>
|
<Text theme='muted' size='sm'>
|
||||||
<FormattedMessage id='signup_panel.subtitle' defaultMessage='Sign up now to discuss.' />
|
<FormattedMessage id='signup_panel.subtitle' defaultMessage='Sign up now to discuss.' />
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
@ -27,6 +28,27 @@ const SignUpPanel = () => {
|
||||||
<FormattedMessage id='account.register' defaultMessage='Sign up' />
|
<FormattedMessage id='account.register' defaultMessage='Sign up' />
|
||||||
</Button>
|
</Button>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
|
<div className='fixed bottom-0 left-0 right-0 py-4 bg-primary-600'>
|
||||||
|
<div className='max-w-3xl mx-auto sm:px-6 md:max-w-7xl md:px-8'>
|
||||||
|
<HStack alignItems='center' justifyContent='between'>
|
||||||
|
<Stack>
|
||||||
|
<Text theme='white' size='xl' weight='bold'>
|
||||||
|
<FormattedMessage id='signup_panel.title' defaultMessage='New to {site_title}?' values={{ site_title: siteTitle }} />
|
||||||
|
</Text>
|
||||||
|
|
||||||
|
<Text theme='white' className='opacity-80'>
|
||||||
|
<FormattedMessage id='signup_panel.subtitle' defaultMessage='Sign up now to discuss.' />
|
||||||
|
</Text>
|
||||||
|
</Stack>
|
||||||
|
|
||||||
|
<Button theme='ghost' to='/'>
|
||||||
|
<FormattedMessage id='account.register' defaultMessage='Sign up' />
|
||||||
|
</Button>
|
||||||
|
</HStack>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue