30 lines
988 B
JavaScript
30 lines
988 B
JavaScript
import React from 'react';
|
|
import { FormattedMessage } from 'react-intl';
|
|
import { NavLink } from 'react-router-dom';
|
|
import { me, siteTitle } from 'gabsocial/initial_state';
|
|
|
|
const SignUpPanel = () => {
|
|
if (me) return null;
|
|
|
|
return (
|
|
<div className='wtf-panel'>
|
|
<div className='wtf-panel-header'>
|
|
<span className='wtf-panel-header__label'>
|
|
<FormattedMessage id='signup_panel.title' defaultMessage='New to {site_title}?' values={{site_title: siteTitle}} />
|
|
</span>
|
|
</div>
|
|
<div className='wtf-panel__content'>
|
|
<span className='wtf-panel__subtitle'>
|
|
<FormattedMessage id='signup_panel.subtitle' defaultMessage='Sign up now to discuss.' />
|
|
</span>
|
|
<div className='wtf-panel__form'>
|
|
<a className='button' href="/auth/sign_up">
|
|
<FormattedMessage id='account.register' defaultMessage='Sign up' />
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default SignUpPanel;
|