Skip to content

Commit 91a7a00

Browse files
committed
(feat) changed file format
1 parent fb4f4cf commit 91a7a00

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed
479 KB
Binary file not shown.

public/illustration.gif

-4.25 MB
Binary file not shown.

src/components/ui/drawer/Drawer.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/features/landing/components/HeroSection.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use client';
22

33
import React, { useEffect, useState } from 'react';
4-
import Image from 'next/image';
54
import { cn } from '@/lib/utils';
65
import { LaunchBadges } from './LaunchBadges';
76

@@ -28,14 +27,16 @@ const HeroText = () => {
2827

2928
const 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
);

src/features/landing/components/MarketStats.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ interface StatItemProps {
1616
}
1717

1818
const 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>

0 commit comments

Comments
 (0)