From e0eea5ff4ecd70dca60a82738433deac9623ccde Mon Sep 17 00:00:00 2001 From: rockyeverlast Date: Mon, 13 May 2024 16:58:20 +0530 Subject: [PATCH] Video for insights --- .../ArticleInternalEigth.jsx | 184 ++++++++++++++++++ .../ArticleInternalSeven.jsx | 12 +- src/components/HomePage/Resources.jsx | 10 +- src/routes/_routes.jsx | 7 +- 4 files changed, 204 insertions(+), 9 deletions(-) create mode 100644 src/components/ArticleInternalEight/ArticleInternalEigth.jsx diff --git a/src/components/ArticleInternalEight/ArticleInternalEigth.jsx b/src/components/ArticleInternalEight/ArticleInternalEigth.jsx new file mode 100644 index 0000000..0c07995 --- /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 index 221303f..745c9e9 100644 --- a/src/components/ArticleInternalSeven/ArticleInternalSeven.jsx +++ b/src/components/ArticleInternalSeven/ArticleInternalSeven.jsx @@ -69,7 +69,7 @@ const VideoInternal = () => { }, }} > - Rubix Demo + Building Blocks of Next Gen Blockchain { }, }} > - Videos January 5, 2023 + Author - Keynote Speaker -Hari - { 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. - + */} { }} >