File tree Expand file tree Collapse file tree 5 files changed +13
-15
lines changed
features/landing/components Expand file tree Collapse file tree 5 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,10 @@ export function Drawer({
5858
5959 if ( isOpen ) {
6060 document . addEventListener ( 'keydown' , handleEscape ) ;
61- // Prevent body scroll when drawer is open
62- document . body . style . overflow = 'hidden' ;
6361 }
6462
6563 return ( ) => {
6664 document . removeEventListener ( 'keydown' , handleEscape ) ;
67- document . body . style . overflow = 'unset' ;
6865 } ;
6966 } , [ isOpen , onClose ] ) ;
7067
Original file line number Diff line number Diff line change 11'use client' ;
22
33import React , { useEffect , useState } from 'react' ;
4- import Image from 'next/image' ;
54import { cn } from '@/lib/utils' ;
65import { LaunchBadges } from './LaunchBadges' ;
76
@@ -28,14 +27,16 @@ const HeroText = () => {
2827
2928const HeroIllustration = ( ) => {
3029 return (
31- < div className = 'mb-8 md:mb-0 md:mt-10 2xl:mt-24 md:ml-20 xl:ml-32 2xl:ml-40' >
32- < Image
33- src = '/illustration.gif'
34- alt = 'Provider-Borrower Illustration animation'
35- width = { 730 }
36- height = { 730 }
37- className = 'max-w-full w-auto'
38- priority
30+ < div className = 'flex justify-end mb-8 md:mb-0 md:mt-10 2xl:mt-24 md:ml-20 xl:ml-32 2xl:ml-40' >
31+ < video
32+ src = '/assets/media/illustration.webm'
33+ autoPlay
34+ muted
35+ loop
36+ playsInline
37+ className = 'max-w-full w-auto h-[200px] sm:h-[300px]'
38+ style = { { pointerEvents : 'none' } }
39+ preload = 'auto'
3940 />
4041 </ div >
4142 ) ;
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ interface StatItemProps {
1616}
1717
1818const StatItem = ( { label, value, isLoading } : StatItemProps ) => (
19- < div className = 'flex flex-col items-center md:items-start' >
19+ < div className = 'flex flex-col items-center md:items-start min-w-[120px] sm:min-w-[140px] ' >
2020 < p className = 'text-text-secondary text-sm font-medium font-inter whitespace-nowrap' >
2121 { label }
2222 </ p >
23- < div className = 'text-badge-success text-center font-inter text-4xl font-semibold mt-1.5 whitespace-nowrap' >
23+ < div className = 'text-badge-success text-center font-inter text-3xl sm:text- 4xl font-semibold mt-1.5 whitespace-nowrap' >
2424 { isLoading ?
25- < div className = 'h-10 w-[120px] bg-gradient-to-r from-[#101216] to-[#2B2F35] rounded-md animate-pulse' />
25+ < div className = 'h-9 sm:h- 10 w-[120px] bg-gradient-to-r from-[#101216] to-[#2B2F35] rounded-md animate-pulse' />
2626 : value }
2727 </ div >
2828 </ div >
You can’t perform that action at this time.
0 commit comments