From 8a201636624e9c2f6a763e042ffd3560c41513da Mon Sep 17 00:00:00 2001 From: Akos Olasz Date: Mon, 10 Jul 2023 12:07:17 +0200 Subject: [PATCH] hero update wip for preview --- .../LandingPage/PreHero/ParticleAnimation.tsx | 5 - src/components/LandingPage/PreHero/index.tsx | 163 +++++++++++++----- src/pages/index.tsx | 18 +- tailwind.config.js | 2 + 4 files changed, 128 insertions(+), 60 deletions(-) diff --git a/src/components/LandingPage/PreHero/ParticleAnimation.tsx b/src/components/LandingPage/PreHero/ParticleAnimation.tsx index 57f449f286..74bccc671a 100644 --- a/src/components/LandingPage/PreHero/ParticleAnimation.tsx +++ b/src/components/LandingPage/PreHero/ParticleAnimation.tsx @@ -38,13 +38,11 @@ const ParticleAnimation: React.FC<{ debugColors?: boolean; paintParticles?: boolean; animate: boolean; - blur: MotionValue; }> = ({ debugForces = false, debugColors = false, paintParticles = true, animate, - blur, }) => { const canvasRef = useRef(null); const [particles, setParticles] = useState([]); @@ -235,9 +233,6 @@ const ParticleAnimation: React.FC<{ ); }; diff --git a/src/components/LandingPage/PreHero/index.tsx b/src/components/LandingPage/PreHero/index.tsx index 398ddd23cf..945680c840 100644 --- a/src/components/LandingPage/PreHero/index.tsx +++ b/src/components/LandingPage/PreHero/index.tsx @@ -10,6 +10,7 @@ import { import React, { ReactNode, useEffect, useRef, useState } from "react"; import AnimateSpawn from "../../Common/AnimateSpawn"; import DarkHeroStyles from "../../Common/DarkHeroStyles"; +import LinkArrowRight from "../../Common/Icons/LinkArrowRight"; import LinkArrowUpRight from "../../Common/Icons/LinkArrowUpRight"; import { OnChainBadge } from "../../Common/OnChainBadge/OnChainBadge"; import { Facts } from "./Facts"; @@ -38,15 +39,15 @@ const PreHero: React.FC<{ offset: ["end end", "end start"], }); - const blurSize = useTransform(scrollYProgress, [0.3, 0.66], [0, 50]); + // const blurSize = useTransform(scrollYProgress, [0.3, 0.66], [0, 50]); const blobOpacity = useTransform(scrollYProgress, [0, 0.5], [1, 0]); - const blur = useMotionTemplate`blur(${blurSize}px)`; + // const blur = useMotionTemplate`blur(${blurSize}px)`; return (
{isDark && } - +
-
+
-

- {headline} -

-

+ +

+ {/* {headline} */} -

+

+ +
+ + Start building + +
+ > +
+
+
+ Internet Identity +
+

+ Web3 world ID +

+
+ + + +
+
+
+
+
+ Open Internet Services +
+

+ User-run Web3 +

+
+ + + +
+
+ +
+
+
+ Internet Identity +
+

+ Web3 world ID +

+
+ + + +
+
-
+ {/*
-
+
*/} - { document.getElementById("stats").scrollIntoView(); @@ -143,40 +207,47 @@ const PreHero: React.FC<{ - + */}
- - -
- - INTERNET COMPUTER DASHBOARD - - - Comparison of Layer-1 blockchains - - -
- -
+ + +
+ + INTERNET COMPUTER DASHBOARD + + + Comparison of Layer-1 blockchains + + +
+ +
+
diff --git a/src/pages/index.tsx b/src/pages/index.tsx index e2b9290281..56dbe2af75 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -28,16 +28,16 @@ export default function Home(): JSX.Element { > diff --git a/tailwind.config.js b/tailwind.config.js index 49f07d1ffe..85f42cd535 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -180,6 +180,8 @@ module.exports = { ".tw-heading-6": "@apply text-heading-6 font-bold", ".tw-heading-7": "@apply text-heading-7 font-bold", ".tw-heading-7-caps": "@apply text-heading-7-caps font-bold uppercase tracking-[1px]", + ".tw-button-sm": "@apply text-paragraph-sm font-bold tracking-[1px] uppercase", + // ".tw-title-navigation": "@apply text-navigation font-medium",