Skip to content

Commit

Permalink
(Landing) add payments countdown, remove "купи силу голоса" button
Browse files Browse the repository at this point in the history
Undeadlol1 committed Dec 4, 2016
1 parent 5c6c27b commit 6bb0b61
Showing 3 changed files with 15 additions and 14 deletions.
18 changes: 9 additions & 9 deletions app/components/elements/LandingCountDowns.jsx
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@ function createDate(year, month, day, hours, minutes) {
export const blockchainStartAt = createDate(2016, 9, 18, 11, 0)
export const crowdsaleStartAt = createDate(2016, 10, 1, 11, 0)
export const crowdsaleEndAt = createDate(2016, 11, 4, 11, 0)
export const paymentsStartAt = createDate(2017, 0, 15, 11, 0)

const stages = [25, 20, 15, 10, 5, 0]
export function calculateCurrentStage(date = Date.now()) {
@@ -214,6 +215,13 @@ export default class LandingCountDowns extends React.Component {
: <LandingCrowdsaleStats />
}
</div>
<div className="small-12 medium-12 columns">
<CountDown
date={paymentsStartAt}
countFrom={crowdsaleEndAt.getTime()}
title={`До первых выплат осталось:`}
/>
</div>
<div className="small-12 medium-12 columns CountDowns__counter" style={{paddingTop: 40}}>
{
state.showBitcoinsRaised
@@ -242,21 +250,13 @@ export default class LandingCountDowns extends React.Component {
{/* <small>Текущий бонус <span className="red"> + {calculateCurrentStage()}%</span></small> */}
</p>
</div>
{/* <div className="small-12 medium-4 columns">
<CountDown
title={`Бонус уменьшится: до ${nextStage}%`}
date={currentStage.date}
countFrom={previousStage.date.getTime()}
displayWhenZero
/>
</div> */}
</div>
}


{/* BUTTON */}
{
state.prefill
true // disabled after crowdsale end
? null
: <div className="row CountDowns__button">
<div className="small-12 columns">
6 changes: 3 additions & 3 deletions app/components/elements/LandingDistribution.jsx
Original file line number Diff line number Diff line change
@@ -91,10 +91,10 @@ export default class LandingDistribution extends React.Component {
</div>
</div>
<div className="row Distribution__action">
<div className="small-12 columns text-center">
{/* disabled after crowdsale end
<div className="small-12 columns text-center">
{this.props.button}
{/* <a href="https://wiki.golos.io/" className="button button-blue">Узнай больше про Голос</a> */}
</div>
</div> */}
</div>
<hr />
</section>
5 changes: 3 additions & 2 deletions app/components/elements/LandingPress.jsx
Original file line number Diff line number Diff line change
@@ -65,10 +65,11 @@ export default class LandingPress extends React.Component {
</div>
</div> */}
<div className="row Press__action">
<div className="small-12 columns">
{/* disabled after crowdsale end
<div className="small-12 columns">
{this.props.button}
<p className="Press__action__p">Продажа Голоса закончится при достижении 5000 ฿</p>
</div>
</div> */}
</div>
<hr />
</section>

0 comments on commit 6bb0b61

Please sign in to comment.