import { Box, Container, Image, Stack, Text } from "@chakra-ui/react";
import { Fade, ScaleFade, 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 = ({ showSubnet }) => {
const firstBoxRef = useRef(null);
const secondBoxRef = useRef(null);
const thirdBoxRef = useRef(null);
const mainBox = useRef(null);
useEffect(() => {
const animateBox = (boxRef) => {
const tl = gsap.timeline({
scrollTrigger: {
trigger: boxRef.current,
start: "top center+=50",
end: "bottom bottom+=100",
scrub: 1,
markers: false,
},
});
tl.fromTo(
boxRef.current,
{
position: "sticky",
top: "-116px",
},
{
transform: "translateX(0)",
duration: 0.5,
}
);
return () => {
// Clean up
tl.kill();
};
};
animateBox(firstBoxRef);
animateBox(secondBoxRef);
animateBox(thirdBoxRef);
// const tl2 = gsap.timeline({
// scrollTrigger: {
// trigger: mainBox.current,
// start: "top top",
// end: "bottom bottom",
// scrub: 1,
// markers: false,
// },
// });
// tl2.fromTo(
// mainBox.current,
// {
// position: "sticky",
// top: 60,
// left: 0,
// duration: 0.5,
// },
// {
// position: "relative",
// duration: 0.5,
// }
// );
}, []);
return (
{SubnetContent.heading}
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 Transaction consume < 10 kWh < 100000
Visa transaction
Fixed Hard Capped Supply Of RBT At 51.4 Million
{/*
*/}
);
};
//
//
//
// 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 Transaction consume < 10 kWh < 100000
// Visa transaction
//
//
//
//
// Fixed Hard Capped Supply Of RBT At 51.4 Million
//
// {/*
// */}
//
//
//
//
//
// ;