From cddc9e3a161765d200db2c8b50be86c1c8d01066 Mon Sep 17 00:00:00 2001 From: rockyeverlast Date: Mon, 13 May 2024 17:37:06 +0530 Subject: [PATCH] video integration Rubix Insights --- .../ArticleInternalEigth.jsx | 184 ++++++++++++++++++ .../ArticleInternalSeven.jsx | 184 ++++++++++++++++++ 2 files changed, 368 insertions(+) create mode 100644 src/components/ArticleInternalEight/ArticleInternalEigth.jsx create mode 100644 src/components/ArticleInternalSeven/ArticleInternalSeven.jsx diff --git a/src/components/ArticleInternalEight/ArticleInternalEigth.jsx b/src/components/ArticleInternalEight/ArticleInternalEigth.jsx new file mode 100644 index 0000000..3e5b773 --- /dev/null +++ b/src/components/ArticleInternalEight/ArticleInternalEigth.jsx @@ -0,0 +1,184 @@ +/* eslint-disable no-unused-vars */ +import React, { useEffect, useState } from "react"; +import { Box, Text, Image } from "@chakra-ui/react"; +import { AspectRatio } from "@chakra-ui/react"; + +const VideoInternal = () => { + const [windowWidth, setWindowWidth] = useState(window.innerWidth); + + useEffect(() => { + const handleResize = () => { + setWindowWidth(window.innerWidth); + }; + + window.addEventListener("resize", handleResize); + + return () => { + window.removeEventListener("resize", handleResize); + }; + }, []); + + const isMobile = windowWidth <= 996; + + useEffect(() => { + window.scrollTo(0, 0); + }, []); + return ( + <> + + + + Driving Sustainable Innovations + + + + Author - Keynote Speaker - Srini + + + {/* + Rubix’s technology may live on the web but it was designed to + address real world problems like climate change, hunger and + inequality. We select our partners with care. Every app built on the + Rubix platform is designed to address a real world issue. + */} + + + + {!isMobile ? ( +
+ +
+ ) : ( +
+ +
+ )} +
+
+ + ); +}; + +export default VideoInternal; diff --git a/src/components/ArticleInternalSeven/ArticleInternalSeven.jsx b/src/components/ArticleInternalSeven/ArticleInternalSeven.jsx new file mode 100644 index 0000000..5445ea0 --- /dev/null +++ b/src/components/ArticleInternalSeven/ArticleInternalSeven.jsx @@ -0,0 +1,184 @@ +/* eslint-disable no-unused-vars */ +import React, { useEffect, useState } from "react"; +import { Box, Text, Image } from "@chakra-ui/react"; +import { AspectRatio } from "@chakra-ui/react"; + +const VideoInternal = () => { + const [windowWidth, setWindowWidth] = useState(window.innerWidth); + + useEffect(() => { + const handleResize = () => { + setWindowWidth(window.innerWidth); + }; + + window.addEventListener("resize", handleResize); + + return () => { + window.removeEventListener("resize", handleResize); + }; + }, []); + + const isMobile = windowWidth <= 996; + + useEffect(() => { + window.scrollTo(0, 0); + }, []); + return ( + <> + + + + Building Blocks of Next Gen Blockchain + + + + Author - Keynote Speaker -Hari + + + {/* + Rubix’s technology may live on the web but it was designed to + address real world problems like climate change, hunger and + inequality. We select our partners with care. Every app built on the + Rubix platform is designed to address a real world issue. + */} + + + + {!isMobile ? ( +
+ +
+ ) : ( +
+ +
+ )} +
+
+ + ); +}; + +export default VideoInternal;