From 8ae8e67dd95814f759edd24673e90c6fde2f6c64 Mon Sep 17 00:00:00 2001 From: Bohdan Chornokondratenko Date: Wed, 28 Aug 2024 11:48:49 +0200 Subject: [PATCH] fix(landing): downscale the desktop interface --- src/features/landing/LandingPage.lazy.tsx | 2 +- .../landing/sections/AboutSection.tsx | 6 +++--- .../FeaturesSection/LeaderboardsAnimation.tsx | 4 ++-- .../FeaturesSection/ResultsAnimation.tsx | 20 +++++++++---------- .../sections/FeaturesSection/index.tsx | 2 +- src/features/landing/sections/Footer.tsx | 2 +- src/features/landing/sections/HeroSection.tsx | 7 ++++--- src/index.css | 6 +++--- tailwind.config.ts | 4 ---- 9 files changed, 25 insertions(+), 28 deletions(-) diff --git a/src/features/landing/LandingPage.lazy.tsx b/src/features/landing/LandingPage.lazy.tsx index 6b31a63..34768bc 100644 --- a/src/features/landing/LandingPage.lazy.tsx +++ b/src/features/landing/LandingPage.lazy.tsx @@ -22,7 +22,7 @@ const NAVIGATION_ANCHORS = { function LandingPage() { return ( -
+
diff --git a/src/features/landing/sections/AboutSection.tsx b/src/features/landing/sections/AboutSection.tsx index d569f97..a96117b 100644 --- a/src/features/landing/sections/AboutSection.tsx +++ b/src/features/landing/sections/AboutSection.tsx @@ -8,9 +8,9 @@ import { LazyVideo } from '../shared/LazyVideo' export function AboutSection({ className, id }: { className: string; id: string }) { return ( -
-

What is virtual speedcubing?

-
+
+

What is virtual speedcubing?

+

diff --git a/src/features/landing/sections/FeaturesSection/LeaderboardsAnimation.tsx b/src/features/landing/sections/FeaturesSection/LeaderboardsAnimation.tsx index 7268958..5a10adc 100644 --- a/src/features/landing/sections/FeaturesSection/LeaderboardsAnimation.tsx +++ b/src/features/landing/sections/FeaturesSection/LeaderboardsAnimation.tsx @@ -39,14 +39,14 @@ function Row({

{place}
- {nickname} + {nickname} diff --git a/src/features/landing/sections/FeaturesSection/ResultsAnimation.tsx b/src/features/landing/sections/FeaturesSection/ResultsAnimation.tsx index fb49b22..cecba4f 100644 --- a/src/features/landing/sections/FeaturesSection/ResultsAnimation.tsx +++ b/src/features/landing/sections/FeaturesSection/ResultsAnimation.tsx @@ -20,7 +20,7 @@ export function ResultsAnimation() { Attempt 3 @@ -78,21 +78,21 @@ export function ResultsAnimation() { transitionLeft='42%' transitionTop='15%' toRotation='32deg' - toLeft='44.5%' - toTop='53.5%' + toLeft='45%' + toTop='53%' > Attempt 4 Attempt 5 @@ -133,7 +133,7 @@ function ResultsAnimationItem( } as CSSProperties } className={cn( - 'animate-landing-features-results absolute whitespace-nowrap rounded-3xl border border-secondary-20 px-6 py-1 text-[0.875rem] text-grey-20', + 'absolute animate-landing-features-results whitespace-nowrap rounded-3xl border border-secondary-20 px-6 py-2 text-[0.875rem] text-grey-20', )} >
{props.children}
diff --git a/src/features/landing/sections/FeaturesSection/index.tsx b/src/features/landing/sections/FeaturesSection/index.tsx index 73e0f8b..4f47998 100644 --- a/src/features/landing/sections/FeaturesSection/index.tsx +++ b/src/features/landing/sections/FeaturesSection/index.tsx @@ -14,7 +14,7 @@ export function FeaturesSection({ className, id }: { className: string; id: stri

The problem we solve

-
    +

      Quick links

      -
      @@ -54,7 +55,7 @@ export function HeroSection() { function AlternatingText({ text1, text2, text3 }: { text1: string; text2: string; text3: string }) { return ( - + {text1} diff --git a/src/index.css b/src/index.css index 0dad4ed..b22332a 100644 --- a/src/index.css +++ b/src/index.css @@ -108,13 +108,13 @@ } .landing-h1 { - @apply font-kanit text-[4rem] leading-[1.1] tracking-[0.01em] text-white-100; + @apply font-kanit text-[3.625rem] leading-[1.1] tracking-[0.01em] text-white-100; } .landing-h2 { - @apply font-kanit text-[3rem] leading-[1.1] tracking-[0.01em] text-white-100; + @apply font-kanit text-[2.75rem] leading-[1.1] tracking-[0.01em] text-white-100; } .landing-h3 { - @apply font-kanit text-[1.75rem] leading-[1.4] tracking-normal text-white-100; + @apply font-kanit text-[1.625rem] leading-[1.4] tracking-normal text-white-100; } .landing-offset-anchor::before { diff --git a/tailwind.config.ts b/tailwind.config.ts index 29779c6..e39e925 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -96,10 +96,6 @@ export default { transform: 'rotate(var(--to-rotation))', }, }, - fake: { - from: { backgroundColor: 'white' }, - to: { backgroundColor: 'black' }, - }, 'landing-features-scrambles': { from: { clipPath: 'inset(0 100% 0 0)' }, to: { clipPath: 'inset(0)' },