Home.js 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. import React from 'react';
  2. import './home.scss';
  3. import Sidebar from '../../components/sidebar/Sidebar';
  4. export default class Home extends React.Component {
  5. state = {
  6. videoURL: 'https://gcs-vimeo.akamaized.net/exp=1562893179~acl=%2A%2F1021052489.mp4%2A~hmac=6ef33efd6a7867f05a06d888e576e87a48b2f33f42ca65ed7e78cd0d7a5cf3b0/vimeo-prod-skyfire-std-us/01/2799/9/238996987/1021052489.mp4'
  7. }
  8. render() {
  9. return (
  10. <>
  11. <Sidebar/>
  12. <div className="hero">
  13. <h1>International triathlon competitions among professionals and amateurs</h1>
  14. <div className="bg"></div>
  15. <div className="bg-img"></div>
  16. <video id="background-video" loop autoPlay>
  17. <source src={this.state.videoURL} type="video/mp4" />
  18. <source src={this.state.videoURL} type="video/ogg" />
  19. Your browser does not support the video tag.
  20. </video>
  21. </div>
  22. </>
  23. )
  24. }
  25. }