Skip to content

Commit

Permalink
logo added
Browse files Browse the repository at this point in the history
  • Loading branch information
Manavsheth78 committed Feb 10, 2023
1 parent b71b785 commit bc41bdc
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions src/components/Home/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import React from "react";
import React,{useEffect,useRef} from "react";
import "./Home.css";
import IMG from "../../assets/logo.svg";
import Title from "../../assets/title.png";
const Home = () => {

const vidRef = useRef(null);

useEffect(()=>{
handlePlayVideo();
},[])
const handlePlayVideo = () => {
vidRef.current.play();
}


return (
<section id="home">

<div className="container home__container">
<div className="home__content">
<div className="home__title">
Expand All @@ -23,14 +35,16 @@ const Home = () => {
<div className="home__btn"></div>
</div>

<img src={IMG} alt="Muted Video" />
<div

/>

{/* <img src={IMG} style={{repeat:'no-repeat'}} alt="" /> */}
{/* <p>1-2 April</p> */}
</div>
<video
title="Advertisement"
webkit-playsinline="true"
playsinline="true"
width="600px"
autoplay="true"
muted="muted"
ref={vidRef} src={"/assests/loader.mp4"} playsInline={true}/>
{/* <img src={IMG} alt="Muted Video" /> */}
</div>
</section>
);
};
Expand Down

0 comments on commit bc41bdc

Please sign in to comment.