Files
WrenchBoardMainSite/src/components/HomeFour/HeroHomeFour.js
T
2021-12-18 20:23:31 -05:00

60 lines
2.5 KiB
JavaScript

import React, { useState } from 'react';
import heroThumb from '../../assets/images/hero-thumb-6.png';
import PopupVideo from '../PopupVideo';
function HeroHomeFour() {
const [showVideo, setVideoValue] = useState(false);
const handleShowVideo = (e) => {
e.preventDefault();
setVideoValue(!showVideo);
};
return (
<>
{showVideo && (
<PopupVideo
videoSrc="//www.youtube.com/embed/EE7NqzhMDms?autoplay=1"
handler={(e) => handleShowVideo(e)}
/>
)}
<section className="appie-hero-area appie-hero-5-area appie-hero-3-area">
<div className="container">
<div className="row justify-content-center">
<div className="col-lg-10">
<div className="appie-hero-content text-center">
<h1 className="appie-title">
Mobile Interaction Designs of January 2022{' '}
</h1>
<p>
Jolly good excuse my french boot super my good sir cup of <br />
char richard about chinwag.
</p>
<div className="hero-btns">
<a className="main-btn" href="#">
Get a Quote
</a>
<a
onClick={(e) => handleShowVideo(e)}
className="appie-video-popup"
href="https://www.youtube.com/watch?v=EE7NqzhMDms"
>
<i className="fas fa-play"></i> Watch the trailer
</a>
</div>
<div
className="thumb mt-80 wow animated fadeInUp"
data-wow-duration="2000ms"
data-wow-delay="400ms"
>
<img src={heroThumb} alt="" />
</div>
</div>
</div>
</div>
</div>
</section>
</>
);
}
export default HeroHomeFour;