Commit 43b69b94 authored by Roger Jungemann's avatar Roger Jungemann
Browse files

Remove welcome banner

parent 80b8ef9c
......@@ -9,7 +9,6 @@ import ConnectedSidePanel from 'app/components/modules/ConnectedSidePanel';
import CloseButton from 'app/components/elements/CloseButton';
import Dialogs from 'app/components/modules/Dialogs';
import Modals from 'app/components/modules/Modals';
import WelcomePanel from 'app/components/elements/WelcomePanel';
import MiniHeader from 'app/components/modules/MiniHeader';
import tt from 'counterpart';
import PageViewsCounter from 'app/components/elements/PageViewsCounter';
......@@ -38,7 +37,6 @@ class App extends React.Component {
// TODO: put both of these and associated toggles into Redux Store.
this.state = {
showCallout: true,
showBanner: true,
};
this.listenerActive = null;
}
......@@ -99,17 +97,12 @@ class App extends React.Component {
return (
pathname !== n.pathname ||
new_visitor !== n.new_visitor ||
this.state.showBanner !== nextState.showBanner ||
this.state.showCallout !== nextState.showCallout ||
nightmodeEnabled !== n.nightmodeEnabled ||
showAnnouncement !== n.showAnnouncement
);
}
setShowBannerFalse = () => {
this.setState({ showBanner: false });
};
onEntropyEvent = e => {
if (e.type === 'mousemove')
key_utils.addEntropy(e.pageX, e.pageY, e.screenX, e.screenY);
......@@ -242,14 +235,6 @@ class App extends React.Component {
)}
<div className="App__content">
{process.env.BROWSER &&
ip &&
new_visitor &&
this.state.showBanner ? (
<WelcomePanel
setShowBannerFalse={this.setShowBannerFalse}
/>
) : null}
{callout}
{children}
</div>
......
import React from 'react';
import CloseButton from 'app/components/elements/CloseButton';
import { Link } from 'react-router';
import tt from 'counterpart';
import { SIGNUP_URL } from 'shared/constants';
export default class WelcomePanel extends React.Component {
constructor(props) {
super(props);
this.setShowBannerFalse = props.setShowBannerFalse;
}
render() {
return (
<div className="welcomeWrapper">
<div className="welcomeBanner">
<CloseButton onClick={this.setShowBannerFalse} />
<div className="row">
<div className="text-center welcomeImage small-12 show-for-small-only">
<img
className="heroImage"
src={require('app/assets/images/welcome-hero.png')}
/>
</div>
</div>
<div className="row">
<div className="large-1 show-for-large" />
<div className="small-12 medium-6 large-5 welcomePitch">
<h2 className="fade-in--1">
{tt('navigation.intro_tagline')}
</h2>
<h4 className="fade-in--3">
{tt('navigation.intro_paragraph')}
</h4>
<div className="row buttonWrapper">
<a
className="button button--primary fade-in--5"
href={SIGNUP_URL}
>
{' '}
<b>{tt('navigation.sign_up')}</b>{' '}
</a>
<Link
href="/faq.html"
className="button ghost fade-in--7"
>
<b>{tt('navigation.learn_more')}</b>
</Link>
</div>
</div>
<div className="text-center welcomeImage medium-6 large-5 show-for-medium">
<img
className="heroImage"
src={require('app/assets/images/welcome-hero.png')}
/>
</div>
</div>
</div>
</div>
);
}
}
......@@ -273,9 +273,6 @@
"bluepaper": "Steem Bluepaper",
"smt_whitepaper": "SMT Whitepaper",
"whitepaper": "Steem Whitepaper",
"intro_tagline": "Your voice is worth something",
"intro_paragraph":
"Get paid for good content. Post and upvote articles on Steemit to get your share of the daily rewards pool.",
"jobs": "Jobs at Steemit"
},
"reply_editor": {
......
......@@ -264,10 +264,7 @@
"api_docs": "Documentos API de Steemit",
"bluepaper": "Steem Bluepaper",
"smt_whitepaper": "Libro blanco de SMT",
"whitepaper": "Libro blanco de Steem",
"intro_tagline": "El dinero habla.",
"intro_paragraph":
"Tu voz tiene valor. Únete a la comunidad que te paga por publicar y votar contenido de alta calidad"
"whitepaper": "Libro blanco de Steem"
},
"reply_editor": {
"shorten_title": "Abreviar el título",
......
......@@ -273,10 +273,7 @@
"api_docs": "Documentation API sur Steemit",
"whitepaper": "Livre blanc sur le Steem",
"bluepaper": "Steem Bluepaper",
"smt_whitepaper": "Livre blanc sur le SMT",
"intro_tagline": "Présentations sur la monnaie",
"intro_paragraph":
"Votre voix vaut quelque chose. Rejoignez la communauté qui vous rémunère pour vos articles et participez à la curation du contenu de qualité."
"smt_whitepaper": "Livre blanc sur le SMT"
},
"reply_editor": {
"shorten_title": "Raccourcir le titre",
......
......@@ -265,10 +265,7 @@
"api_docs": "Steemit API Docs",
"bluepaper": "Steem Bluepaper",
"smt_whitepaper": "SMT Whitepaper",
"whitepaper": "Steem Whitepaper",
"intro_tagline": "Il denaro parla",
"intro_paragraph":
"La tua voce vale qualcosa. Entra nella comunità che ti pagare per pubblicare e curare contenuti di alta qualità."
"whitepaper": "Steem Whitepaper"
},
"reply_editor": {
"shorten_title": "Titolo breve",
......
......@@ -262,10 +262,7 @@
"business_center": "Businesses Accepting Steem",
"api_docs": "Steemit API資料",
"bluepaper": "Steemブルーペーパー",
"whitepaper": "Steemホワイトペーパー",
"intro_tagline": "金がものを言う",
"intro_paragraph":
"あなたの声には価値があります。あなたのハイクオリティな投稿やキュレーションに報酬を出すコミュニティに参加しましょう。"
"whitepaper": "Steemホワイトペーパー"
},
"reply_editor": {
"shorten_title": "タイトルが長すぎます",
......
......@@ -262,10 +262,7 @@
"api_docs": "스팀잇 API 문서",
"bluepaper": "스팀 블루페이퍼",
"smt_whitepaper": "SMT 화이트페이퍼",
"whitepaper": "스팀 화이트페이퍼",
"intro_tagline": "생각의 가치",
"intro_paragraph":
"당신의 생각과 글은 소중합니다. 스팀잇은 고급 컨텐츠 생산자들과 큐레이터들에게 투명한 금전적 보상을 지원합니다. 지금 참여하세요."
"whitepaper": "스팀 화이트페이퍼"
},
"reply_editor": {
"shorten_title": "짧은 제목",
......
......@@ -252,10 +252,7 @@
"app_center": "Steemit App Center",
"business_center": "Businesses Accepting Steem",
"api_docs": "Dokumentacja Steemit API",
"whitepaper": "Steem Whitepaper",
"intro_tagline": "Pieniądze mają głos.",
"intro_paragraph":
"Twój głos ma wartość. Dołącz do społeczności, która płaci za publikowanie i głosowanie na wysokiej jakości treści."
"whitepaper": "Steem Whitepaper"
},
"reply_editor": {
"shorten_title": "Tytuł skrócony",
......
......@@ -265,10 +265,7 @@
"api_docs": "API-документация Steemit",
"bluepaper": "Синяя бумага Steem",
"smt_whitepaper": "Белая книга SMT",
"whitepaper": "Белая книга Steem",
"intro_tagline": "Здесь говорят деньги.",
"intro_paragraph":
"Ваше мнение имеет цену. Присоединяйтесь к сообществу, которое платит за контент и за работу по отбору самого лучшего контента."
"whitepaper": "Белая книга Steem"
},
"reply_editor": {
"shorten_title": "Сократите заголовок",
......
......@@ -242,10 +242,7 @@
"app_center": "Steemit应用中心",
"business_center": "Businesses Accepting Steem",
"api_docs": "Steemit API文档",
"whitepaper": "Steem白皮书",
"intro_tagline": "妙笔生金",
"intro_paragraph":
"你的思想是有有价值的。赶快加入发表文章获得赏金的社区。"
"whitepaper": "Steem白皮书"
},
"reply_editor": {
"shorten_title": "缩短标题",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment