From 034778b1e8797710e38f1ace40381236e4d27d1f Mon Sep 17 00:00:00 2001 From: rockyeverlast Date: Mon, 15 Apr 2024 20:44:59 +0530 Subject: [PATCH] Added transition to mobile nav --- src/components/MobileMenu/MobileMenu.jsx | 566 +++++++++--------- .../SubnetsComponent/NewSubnetComp.jsx | 450 ++++++++++++++ 2 files changed, 730 insertions(+), 286 deletions(-) diff --git a/src/components/MobileMenu/MobileMenu.jsx b/src/components/MobileMenu/MobileMenu.jsx index 5160401..4f4d7c7 100644 --- a/src/components/MobileMenu/MobileMenu.jsx +++ b/src/components/MobileMenu/MobileMenu.jsx @@ -12,7 +12,6 @@ import { AccordionIcon, IconButton, Text, - motion, } from "@chakra-ui/react"; import { Box, Image } from "@chakra-ui/react"; import { Link, useLocation } from "react-router-dom"; @@ -101,295 +100,290 @@ export const MobileMenu = () => { - {menu && ( + - - - - - - - - - + + + + + + - - - {/* Learn */} - - - - - LEARN - - - - - - - Learn - - - - Proof-of-pledge Protocol - - - Smart Contracts - - - Tokenomics in Rubix - - - - - {/* Build */} - - - - - BUILD - - - - - - - Build - - - - Set up Rubix Node - - - Quorum - - - Subnets - - - - - {/* UseCases */} - - - - - USE CASES - - - - - - - FinTech - - - - AdTech - - - - MarTech - - - - HealthTech - - - - - - {/* Community */} - - - - - COMMUNITY - - - - - - - Community - - - - - - {/* Wallet*/} - - - - - AFFILIATES - - - - - - - Wallet - - - Explore - - - - - - - - + - )} + + + {/* Learn */} + + + + + LEARN + + + + + + + Learn + + + + Proof-of-pledge Protocol + + + Smart Contracts + + + Tokenomics in Rubix + + + + + {/* Build */} + + + + + BUILD + + + + + + + Build + + + + Set up Rubix Node + + + Quorum + + + Subnets + + + + + {/* UseCases */} + + + + + USE CASES + + + + + + + FinTech + + + + AdTech + + + + MarTech + + + + HealthTech + + + + + + {/* Community */} + + + + + COMMUNITY + + + + + + + Community + + + + + + {/* Wallet*/} + + + + + AFFILIATES + + + + + + + Wallet + + + Explore + + + + + + + + + ); }; diff --git a/src/components/SubnetsComponent/NewSubnetComp.jsx b/src/components/SubnetsComponent/NewSubnetComp.jsx index 8a98483..e502bea 100644 --- a/src/components/SubnetsComponent/NewSubnetComp.jsx +++ b/src/components/SubnetsComponent/NewSubnetComp.jsx @@ -470,3 +470,453 @@ export const NewSubnetComp = () => { ); }; + +// import { Box, Container, Image, Stack, Text } from "@chakra-ui/react"; +// import { Fade, Slide, SlideFade, Collapse } from "@chakra-ui/react"; +// import { useEffect, useRef, useState } from "react"; +// import { Component1 } from "./Component1"; +// import { Component2 } from "./Component2"; +// import { Component3 } from "./Component3"; +// import { Component4 } from "./Component4"; +// // import { SubnetPage2 } from "./SubnetPage2"; +// import cube from "../../assets/images/cube.png"; +// import stack from "../../assets/images/stackNew.webp"; +// import { gsap } from "gsap"; +// import { ScrollTrigger } from "gsap/ScrollTrigger"; + +// // Initialize ScrollTrigger +// gsap.registerPlugin(ScrollTrigger); + +// // const SubnetContent = { +// // heading: `decentralised Auto Syncing subnets`, +// // }; + +// export const NewSubnetComp = () => { +// const firstBoxRef = useRef(null); +// const secondBoxRef = useRef(null); +// const thirdBoxRef = useRef(null); +// const mainBox = useRef(null); + +// useEffect(() => { +// gsap.set(firstBoxRef.current, { opacity: 1 }); +// let tl = gsap +// .timeline({ +// scrollTrigger: { +// trigger: mainBox.current, +// start: "top top", +// scrub: 1, +// pin: true, +// end: "bottom bottom", +// markers: false, +// }, +// }) +// .fromTo(firstBoxRef.current, { alpha: 1 }, { alpha: 0 }) +// .fromTo(secondBoxRef.current, { alpha: 0 }, { alpha: 1 }) +// .fromTo(secondBoxRef.current, { alpha: 1 }, { alpha: 0 }) +// .fromTo(thirdBoxRef.current, { alpha: 0 }, { alpha: 1 }); + +// return () => { +// tl.kill(); +// }; +// }, []); + +// return ( +//
+// +// +// +// +// decentralised Auto Syncing subnets +// +// +// + +// +// +// + +// +// +// + +// +// +// + +// +// +// +// +// +// + +// +// +// With Unmatched Privacy and Scalability +// +// +// +// +// +// +// +// +// +// 01. Decentralisation +// +// +// Rubix Decentralised Identity(DID) issued at L1 is the +// foundation for building digital ownership enhancing +// applications. +// +// +// +// +// 02. Ultra Scalability +// +// +// Unlike monolithic chains which become centralized and +// introduce latency to achieve high throughput in the Rubix +// object chain architecture, where mobile nodes have real time +// full state data, the network TPS will increase with increase +// in numbers of nodes. +// +// +// +// +// 03. Data Security and Privacy +// +// +// Rubix Decentralised Identity(DID) issued at L1 is the +// foundation for building digital ownership enhancing +// applications +// +// +// +// +// +// + +// +// +// All In One Composable Stack +// +// +// +// +// +// +// Single Comprehensive Stack: +// +// +// Full Mobile node SDK, Smart Contracts, DID's, Secondary +// tokens ( FTs and NFTs) all in one place. +// +// +// +// +// High Partition Tolerence: +// +// +// Issues in one shard wont affect other shards performance +// +// +// +// +// Fully Deterministic +// +// +// App can bring own Block space ( BYOB ) +// +// +// +// +// +// +// +// +// +// Unique Token/Object Based Architecture +// +// +// Build unlimited FTs and NFTs all at L1!! +// +// +// +// +// Green By The Design +// +// +// 100000 Rubix Transactions consume < 10 kWh < 100000 +// Visa transactions +// +// +// +// +// 51.4 Million RBT +// +// Fixed Supply.Hardcapped +// +// +// +// +// +// +//
+// ); +// };