Skip to content

Commit ca628f9

Browse files
authored
Merge pull request #20 from ltonetwork/new-dawn
A new dawn awaits
2 parents 2dc622c + 168f8b9 commit ca628f9

11 files changed

Lines changed: 1167 additions & 61 deletions

File tree

package-lock.json

Lines changed: 1114 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"next": "12.0.7",
1515
"react": "17.0.2",
1616
"react-circular-progressbar": "^2.0.4",
17+
"react-countdown": "^2.3.6",
1718
"react-countup": "^6.1.0",
1819
"react-dom": "17.0.2",
1920
"react-modal-video": "^1.2.8",

public/css/dark.css

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,38 @@ b, strong {
311311
justify-content: center;
312312
height: 100%;
313313
pointer-events: all;
314-
padding-bottom: 200px;
314+
padding-bottom: 250px;
315315
}
316316

317317
.hero__image--text h1 {
318318
font-size: 85px;
319319
line-height: 1;
320-
text-shadow: 0px 0px 5px rgba(255,255,255,0.5);
320+
color: #ffffff;
321+
text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
322+
max-width: 80vw;
323+
text-align: center;
324+
}
325+
326+
.hero__image--timer {
327+
display: flex;
328+
z-index: 10;
329+
align-items: center;
330+
justify-content: center;
331+
height: 100%;
332+
pointer-events: all;
333+
padding-bottom: 120px;
334+
}
335+
336+
.hero__image--timer span {
337+
font-size: 36px;
338+
line-height: 1;
339+
color: #ffffff;
340+
text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
341+
max-width: 90vw;
342+
text-align: center;
343+
}
344+
.hero__image--timer .hero__timer--short {
345+
display: none;
321346
}
322347

323348
.hero__link {
@@ -339,6 +364,14 @@ b, strong {
339364
.hero__image--text h1 {
340365
font-size: 45px;
341366
}
367+
368+
.hero__image--timer .hero__timer--long {
369+
display: none;
370+
}
371+
.hero__image--timer .hero__timer--short {
372+
padding-top: 20px;
373+
display: inline;
374+
}
342375
}
343376

344377
@keyframes pulse {
@@ -7984,4 +8017,4 @@ body {
79848017
}
79858018
}
79868019

7987-
/* ====================== [ End Responsive ] ====================== */
8020+
/* ====================== [ End Responsive ] ====================== */

public/img/hero/layer-bigField.png

-89.5 KB
Loading

public/img/hero/layer-sky.jpg

-45.4 KB
Loading
42.7 KB
Loading

public/img/hero/layer-sun.png

-26.4 KB
Loading
-26.7 KB
Loading
-3.31 KB
Loading

src/components/HomeHero/index.jsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import Link from "next/link";
33
import heroPhrases from "../../data/hero-phrases.json";
4+
import Countdown from 'react-countdown';
45

56
const orientHero = () => {
67
const hero = document.querySelector('.hero');
@@ -135,6 +136,19 @@ class HomeHero extends React.Component {
135136
behavior: 'smooth',
136137
});
137138
};
139+
140+
renderCountdown({ days, hours, minutes, seconds, completed }) {
141+
if (completed) {
142+
// Render a completed state
143+
return <span className="hero__timer hero__timer--complete">EQTY</span>
144+
} else {
145+
// Render a countdown
146+
return <>
147+
<span className="hero__timer hero__timer--long">{days} days {hours} hours {minutes} minutes {seconds} seconds</span>
148+
<span className="hero__timer hero__timer--short">{days}d {hours}h {minutes}m {seconds}s</span>
149+
</>;
150+
}
151+
}
138152

139153
render() {
140154
return (
@@ -146,6 +160,7 @@ class HomeHero extends React.Component {
146160
<div className="hero__image" data-x="0.09" data-y="0.09" data-scale="1.15"><img src="/img/hero/layer-smallField.png"/></div>
147161
<div className="hero__image" data-x="0.13" data-y="0.13" data-scale="1.15"><img src="/img/hero/layer-bigField.png"/></div>
148162
<div className="hero__image hero__image--text" data-x="0.15" data-y="1.5" data-scale="1"><h1 className="hero__title">L<br/>T<br/>O</h1></div>
163+
<div className="hero__image hero__image--timer" data-x="0.15" data-y="1.5" data-scale="1"><Countdown date="2025-09-01T17:00:00+00:00" renderer={(args) => this.renderCountdown(args)} /></div>
149164
<div className="hero__image hero__image--leaf7 nudge-left" data-x="0.17" data-y="0.17" data-scale="1.19"><img src="/img/hero/layer-leaf7Trans.png"/></div>
150165
<div className="hero__image hero__image--leaf6 nudge-left" data-x="0.22" data-y="0.22" data-scale="1.2"><img src="/img/hero/layer-leaf6Trans.png"/></div>
151166
<div className="hero__image hero__image--leaf5 nudge-left stay-top" data-x="0.25" data-y="0.25" data-scale="1.2"><img src="/img/hero/layer-leaf5.png"/></div>

0 commit comments

Comments
 (0)