Skip to content

Commit

Permalink
fix: partners
Browse files Browse the repository at this point in the history
  • Loading branch information
w84april committed Nov 14, 2024
1 parent 218a2ce commit 5e0c26e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 84 deletions.
8 changes: 5 additions & 3 deletions apps/landing/components/common/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import {type ReactElement, useMemo, useState} from 'react';
import Link from 'next/link';
import {useRouter} from 'next/router';
import {AppName, APPS} from '@common/components/Apps';

import {IconYearnLogo} from '../icons/IconYearnLogo';
import {LogoYearn} from '@common/icons/LogoYearn';

type TMenu = {path: string; label: string | ReactElement; target?: string};
type TNavbar = {nav: TMenu[]; currentPathName: string};
Expand Down Expand Up @@ -107,7 +106,10 @@ export function LandingAppHeader(): ReactElement {
</button>
</div>
<div className={'flex justify-center'}>
<IconYearnLogo />
<LogoYearn
className={'size-10'}
front={'text-black'}
/>
</div>
<Navbar
currentPathName={pathname || ''}
Expand Down
32 changes: 0 additions & 32 deletions apps/landing/components/icons/IconYearnLogo.tsx

This file was deleted.

72 changes: 23 additions & 49 deletions apps/landing/components/sections/Partners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,63 +3,37 @@ import Image from 'next/image';

import type {ReactElement} from 'react';

const PARTNERS = [
{src: '/landing/partners/aave.png', width: 220},
{src: '/landing/partners/ajna.png', width: 173},
{src: '/landing/partners/compound.png', width: 246},
{src: '/landing/partners/curve.png', width: 175},
{src: '/landing/partners/lido.png', width: 182},
{src: '/landing/partners/pendle.png', width: 257},
{src: '/landing/partners/sky.png', width: 130},
{src: '/landing/partners/spark.png', width: 194},
{src: '/landing/partners/swell.png', width: 142}
];

export function Partners(): ReactElement {
return (
<div className={'flex w-full justify-center'}>
<div className={'h-20 w-full'}>
<Marquee
gradient
gradientColor={'black'}
gradientColor={'#080A0C'}
pauseOnHover={true}
className={'grid h-full overflow-hidden'}>
<div className={'mx-5 flex h-full flex-col items-center justify-center pr-10 '}>
<Image
src={'/landing/partners/ajna.png'}
alt={'Ajna'}
width={174}
height={32}
/>
</div>{' '}
<div className={'mx-5 flex flex-col items-center justify-center pr-10 '}>
<Image
src={'/landing/partners/ajna.png'}
alt={'Ajna'}
width={174}
height={32}
/>
</div>
<div className={'mx-5 flex flex-col items-center justify-center pr-10 '}>
<Image
src={'/landing/partners/ajna.png'}
alt={'Ajna'}
width={174}
height={32}
/>
</div>
<div className={'mx-5 flex flex-col items-center justify-center pr-10 '}>
<Image
src={'/landing/partners/ajna.png'}
alt={'Ajna'}
width={174}
height={32}
/>
</div>
<div className={'mx-5 flex flex-col items-center justify-center pr-10 '}>
<Image
src={'/landing/partners/ajna.png'}
alt={'Ajna'}
width={174}
height={32}
/>
</div>
<div className={'mx-5 flex flex-col items-center justify-center pr-10 '}>
<Image
src={'/landing/partners/ajna.png'}
alt={'Ajna'}
width={174}
height={32}
/>
</div>
{PARTNERS.map(partner => (
<div className={'mx-5 flex h-full max-h-[32px] flex-col items-center justify-center pr-10'}>
<Image
src={partner.src}
alt={'partner'}
width={partner.width}
height={32}
/>
</div>
))}
</Marquee>
</div>
</div>
Expand Down

0 comments on commit 5e0c26e

Please sign in to comment.