Large update for all components
reorganization, linting, updating file imports, consolidation warning: there will be errors in this commit todo: update webpack, add missing styles, scss files, consolidate the rest of components within features/*
This commit is contained in:
1
app/javascript/gabsocial/components/promo_panel/index.js
Normal file
1
app/javascript/gabsocial/components/promo_panel/index.js
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from './promo_panel';
|
||||
@@ -0,0 +1,43 @@
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import Icon from 'gabsocial/components/icon';
|
||||
|
||||
import './promo_panel.scss';
|
||||
|
||||
export default class PromoPanel extends PureComponent {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className='promo-panel'>
|
||||
<div className='promo-panel__container'>
|
||||
|
||||
<div className='promo-panel-item'>
|
||||
<a className='promo-panel-item__btn button button-alternative-2' href='https://invest.gab.com'>
|
||||
<Icon id='check-circle' className='promo-panel-item__icon' fixedWidth />
|
||||
<FormattedMessage id='promo.invest_heading' defaultMessage='Invest in Gab' />
|
||||
</a>
|
||||
<p className='promo-panel-item__message'>
|
||||
<FormattedMessage
|
||||
id='promo.invest_message'
|
||||
defaultMessage='Learn more about investing in Gab and our vision for the future.'
|
||||
/>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className='promo-panel-item'>
|
||||
<a className='promo-panel-item__btn button button-alternative-2' href='/invites'>
|
||||
<Icon id='envelope' className='promo-panel-item__icon' fixedWidth />
|
||||
<FormattedMessage id='promo.invite_heading' defaultMessage='Invite Friends' />
|
||||
</a>
|
||||
<p className='promo-panel-item__message promo-panel-item__message--dark'>
|
||||
<FormattedMessage
|
||||
id='promo.invite_message'
|
||||
defaultMessage='Invite others to be a member of Gab.'
|
||||
/>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
.promo-panel {
|
||||
margin-top: 10px;
|
||||
padding: 10px 10px 20px 10px;
|
||||
border-bottom: 1px solid lighten($ui-base-color, 4%);
|
||||
}
|
||||
|
||||
.promo-panel-item {
|
||||
display: block;
|
||||
|
||||
&:not(:first-of-type) {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
&__message {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
margin-top: 6px;
|
||||
color: $primary-text-color;
|
||||
|
||||
&--dark {
|
||||
color: $ui-secondary-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user