From bc41bdce068a76dc58bfc57ebcc7388c59f825c0 Mon Sep 17 00:00:00 2001 From: Manavsheth78 Date: Fri, 10 Feb 2023 14:49:59 +0530 Subject: [PATCH] logo added --- src/components/Home/Home.jsx | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/src/components/Home/Home.jsx b/src/components/Home/Home.jsx index 5d61a32..12c1f7f 100644 --- a/src/components/Home/Home.jsx +++ b/src/components/Home/Home.jsx @@ -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 (
+
@@ -23,14 +35,16 @@ const Home = () => {
- Muted Video -
- - {/* */} - {/*

1-2 April

*/} -
+
); };