From a463fbfe8f4d9c4ec6a8976900a79922743c86f5 Mon Sep 17 00:00:00 2001 From: rockyeverlast Date: Thu, 4 Apr 2024 20:45:49 +0530 Subject: [PATCH] updated banner/ form/stats/NewSubnet/Getstarted --- src/components/BuildPage/BuildBanner.jsx | 2 +- src/components/BuildPage/Connect.jsx | 1 + src/components/Contact/Form.jsx | 5 +- src/components/HomePage/Stats.jsx | 4 +- src/components/LearnPage/GetStarted.jsx | 8 +- .../SubnetsComponent/NewSubnetComp.jsx | 266 ++++++++++-------- 6 files changed, 153 insertions(+), 133 deletions(-) diff --git a/src/components/BuildPage/BuildBanner.jsx b/src/components/BuildPage/BuildBanner.jsx index 313af4d..fb8a08e 100644 --- a/src/components/BuildPage/BuildBanner.jsx +++ b/src/components/BuildPage/BuildBanner.jsx @@ -56,7 +56,7 @@ const BuildBanner = () => { as={"h2"} fontWeight={700} fontSize={"60px"} - textTransform={"upperCase"} + textTransform={"capitalize"} color={"#DE858E"} sx={{ "@media (max-width: 996px)": { diff --git a/src/components/BuildPage/Connect.jsx b/src/components/BuildPage/Connect.jsx index 8e19045..9b35ec0 100644 --- a/src/components/BuildPage/Connect.jsx +++ b/src/components/BuildPage/Connect.jsx @@ -108,6 +108,7 @@ const Connect = () => { background={"#000"} borderRadius={"10px"} minH={"270px"} + height={"100%"} border={"1px solid #454545"} > { Call us - { }} > 914 578 1245 - + diff --git a/src/components/HomePage/Stats.jsx b/src/components/HomePage/Stats.jsx index 0ba4460..475be5c 100644 --- a/src/components/HomePage/Stats.jsx +++ b/src/components/HomePage/Stats.jsx @@ -9,11 +9,12 @@ const StatsContent = { const Stats = () => { const { ref, inView } = useInView({ - threshold: 0.3, + threshold: 0.5, triggerOnce: false, }); return ( { > { "@media (max-width: 375px)": {}, }} > - + { }} /> - + { }} /> - + { }} /> - + { +export const NewSubnetComp = () => { const firstBoxRef = useRef(null); const secondBoxRef = useRef(null); const thirdBoxRef = useRef(null); - const mainBox = useRef(null); + const textBox = useRef(null); useEffect(() => { const animateBox = (boxRef) => { @@ -40,13 +40,36 @@ export const NewSubnetComp = ({ showSubnet }) => { { position: "sticky", top: "-116px", + opacity: 0, + autoAlpha: 1, }, { - transform: "translateX(0)", + // transform: "translateX(0)", + // duration: 0.5, + opacity: 1, + duration: 1, + autoAlpha: 0, + } + ); + const tl2 = gsap.timeline({ + scrollTrigger: { + trigger: textBox.current, + start: "top center+=50", + end: "bottom bottom+=100", + scrub: 1, + markers: false, + }, + }); + tl2.fromTo( + textBox.current, + { + opacity: 0, + }, + { + opacity: 1, duration: 0.5, } ); - return () => { // Clean up tl.kill(); @@ -55,33 +78,10 @@ export const NewSubnetComp = ({ showSubnet }) => { 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 ( - + { fontSize={"40px"} textTransform={"capitalize"} color={"#fff"} + ref={textBox} sx={{ "@media (max-width: 1024px)": {}, "@media (max-width: 600px)": { @@ -118,6 +119,7 @@ export const NewSubnetComp = ({ showSubnet }) => { position={"relative"} padding={"0 4rem"} paddingBottom={"50px"} + ref={textBox} > { textAlign={"left"} position={"relative"} width={"383px"} + ref={textBox} > @@ -158,6 +161,7 @@ export const NewSubnetComp = ({ showSubnet }) => { textAlign={"left"} position={"relative"} width={"383px"} + ref={textBox} > @@ -168,6 +172,7 @@ export const NewSubnetComp = ({ showSubnet }) => { textAlign={"left"} position={"relative"} width={"383px"} + ref={textBox} > @@ -177,6 +182,7 @@ export const NewSubnetComp = ({ showSubnet }) => { textAlign={"left"} position={"relative"} width={"383px"} + ref={textBox} > @@ -190,104 +196,118 @@ export const NewSubnetComp = ({ showSubnet }) => { paddingBottom={"2rem"} ref={secondBoxRef} > - - - With Unmatched Privacy and Scalability - - - - - + With Unmatched Privacy and Scalability + + + + + + "100%": { + transform: "translateY(-20px)", + }, + }, + }} + /> + + + + + 01. Decentralisation + + + Rubix Decentralised Identity( DID) issued at L1 is the + foundation for building digital ownership enhancing + applications. + - - - - 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 - - + + + 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 + - - + + { Single Comprehensive Stack: - Full Mobile node SDK, Smart Contracts, DID's, Secondary + Full Mobile node SDK, Smart Contracts, DID's, Secondary tokens ( FTs and NFTs) all in one place.