|
@@ -7,9 +7,12 @@ import videoBg from '../../assets/img/video-bg.mp4';
|
|
|
import Sidebar from '../../components/sidebar/Sidebar';
|
|
|
import EventInfoShort from '../../components/eventInfoShort/EventInfoShort';
|
|
|
|
|
|
+import logo from '../../assets/img/logo.png';
|
|
|
+import bgVideo from '../../assets/img/bg-video.mp4';
|
|
|
+
|
|
|
export default class Home extends React.Component {
|
|
|
state = {
|
|
|
- videoURL: 'https://gcs-vimeo.akamaized.net/exp=1564520542~acl=%2A%2F1021052489.mp4%2A~hmac=faf2d737dfcc461ab05364a37b61f39c7e8afda27ec51769eb01027130e159be/vimeo-prod-skyfire-std-us/01/2799/9/238996987/1021052489.mp4'
|
|
|
+ videoURL: 'https://gcs-vimeo.akamaized.net/exp=1564565194~acl=%2A%2F1021052489.mp4%2A~hmac=f6d3e53b00695ca1e6920c195176211b64e179e250acfcdaf35bb334a60cac3f/vimeo-prod-skyfire-std-us/01/2799/9/238996987/1021052489.mp4'
|
|
|
}
|
|
|
|
|
|
render() {
|
|
@@ -19,20 +22,22 @@ export default class Home extends React.Component {
|
|
|
<>
|
|
|
<Sidebar history={this.props.history}/>
|
|
|
<div className="hero">
|
|
|
- <div className="container-wrap hero-wrap">
|
|
|
- <div className="hero-logo">
|
|
|
- <img src={logo} alt="logo" />
|
|
|
- <h3><span>Just</span>tri it</h3>
|
|
|
+ <div className="container-wrap">
|
|
|
+ <div className="hero-wrap">
|
|
|
+ <div className="hero-logo">
|
|
|
+ <img src={logo} alt="logo"/>
|
|
|
+ <h3><span>Just</span>tri it</h3>
|
|
|
+ </div>
|
|
|
+ <h1>International competitions among professionals and amateurs</h1>
|
|
|
</div>
|
|
|
- <h1>International competitions among professionals and amateurs</h1>
|
|
|
</div>
|
|
|
|
|
|
<div className="bg"></div>
|
|
|
<div className="bg-img"></div>
|
|
|
|
|
|
<video id="background-video" loop autoPlay>
|
|
|
- <source src={videoBg} type="video/mp4" />
|
|
|
- <source src={videoBg} type="video/ogg" />
|
|
|
+ <source src={bgVideo} type="video/mp4" />
|
|
|
+ <source src={bgVideo} type="video/ogg" />
|
|
|
Your browser does not support the video tag.
|
|
|
</video>
|
|
|
</div>
|
|
@@ -42,16 +47,14 @@ export default class Home extends React.Component {
|
|
|
|
|
|
<div className="events-list">
|
|
|
{
|
|
|
- events.reverse().map((event, ind) =>
|
|
|
- ind < 4 && <EventInfoShort
|
|
|
- key={event._id}
|
|
|
- title={event.title}
|
|
|
- country={event.country}
|
|
|
- city={event.city}
|
|
|
- id={event._id}
|
|
|
- eventDate={event.eventDate}
|
|
|
- imgSrc={event.mainBannerPicture}
|
|
|
- />
|
|
|
+ events.reverse().map( (event,ind) => ind < 6 && <EventInfoShort
|
|
|
+ key={event._id}
|
|
|
+ title={event.title}
|
|
|
+ country={event.country}
|
|
|
+ city={event.city}
|
|
|
+ id={event._id}
|
|
|
+ eventDate={event.eventDate}
|
|
|
+ imgSrc={event.mainBannerPicture} />
|
|
|
)
|
|
|
}
|
|
|
</div>
|