Skip to content

Commit

Permalink
fix: minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
w84april committed Nov 19, 2024
1 parent 3f32cde commit f808667
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 18 deletions.
8 changes: 4 additions & 4 deletions apps/common/components/ModalMobileMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ export function ModalMobileMenu(props: TModalMobileMenu): ReactElement {
className={'fixed inset-0 overflow-y-auto md:hidden'}
style={{zIndex: 88}}
onClose={onClose}>
<div
className={`relative flex min-h-screen items-end justify-end px-0 pb-0 pt-4 text-center sm:block sm:p-0`}>
<div className={`relative flex min-h-screen items-end justify-end px-0 pb-0 pt-4 text-center`}>
<TransitionChild
as={Fragment}
enter={'ease-out duration-300'}
Expand All @@ -111,7 +110,7 @@ export function ModalMobileMenu(props: TModalMobileMenu): ReactElement {
</TransitionChild>

<span
className={'hidden sm:inline-block sm:h-screen sm:align-bottom'}
className={'hidden'}
aria-hidden={'true'}>
&#8203;
</span>
Expand All @@ -132,6 +131,7 @@ export function ModalMobileMenu(props: TModalMobileMenu): ReactElement {
<LogoYearn
className={'size-10'}
front={'text-black'}
back={'text-white'}
/>
</Link>
</div>
Expand All @@ -140,7 +140,7 @@ export function ModalMobileMenu(props: TModalMobileMenu): ReactElement {
background:
'linear-gradient(180deg, rgba(12, 12, 12, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%)'
}}
className={'flex h-[calc(100vh-88px)] flex-col justify-end px-6 pb-[66px]'}>
className={'flex h-[calc(100vh-88px)] w-full flex-col justify-end px-6 pb-[66px]'}>
<FooterNav />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/landing/components/common/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function Button(
return (
<button
{...rest}
className={cl('py-3 px-4 rounded-[4px] transition-colors', STYLE[variant], rest.className)}>
className={cl('py-3 px-4 text-white rounded-[4px] transition-colors', STYLE[variant], rest.className)}>
{rest.children}
</button>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/landing/components/common/EarnCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function EarnCard(props: {title: string; info: string; logoSrc: string; h
className={'group relative z-30 flex h-full overflow-hidden rounded-lg border border-[#292929] p-6'}>
<div className={'flex md:mt-auto md:items-end'}>
<div>
<p className={'text-[24px] group-hover:text-grey-900'}>{props.title}</p>
<p className={'text-[24px] text-white group-hover:text-grey-900'}>{props.title}</p>
<p className={'text-grey-400 group-hover:text-grey-900'}>{props.info}</p>
</div>
<div>
Expand Down
1 change: 1 addition & 0 deletions apps/landing/components/common/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export function LandingAppHeader(): ReactElement {
<LogoYearn
className={'size-10'}
front={'text-black'}
back={'text-white'}
/>
</Link>
</div>
Expand Down
5 changes: 1 addition & 4 deletions apps/landing/components/sections/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ export function About(): ReactElement {
backgroundPosition: 'center'
}}>
<div className={'relative lg:mr-[400px]'}>
<p
className={
'mb-10 text-left font-aeonikFono text-3xl font-light text-white md:text-center md:text-5xl'
}>
<p className={'mb-10 text-left font-aeonikFono text-3xl font-light text-white md:text-5xl'}>
{'WTF IS YEARN VAULT?'}
</p>
<div
Expand Down
14 changes: 9 additions & 5 deletions apps/landing/components/sections/Contribute.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {type ReactElement, useState} from 'react';
import Link from 'next/link';
import {IconArrow} from '@common/icons/IconArrow';

const CARDS = [
{title: 'BUG BOUNTY.', description: 'Bugs?! Ew! Report a bug and you might earn $$.'},
Expand All @@ -26,11 +27,14 @@ function ContributeCard(props: {title: string; description: string}): ReactEleme
<div className={'mb-2 text-xl'}>{props.title}</div>
<div className={'opacity-60'}>{props.description}</div>
</div>
<Link
className={'leading-6 underline opacity-70 transition-opacity hover:opacity-100'}
href={'/'}>
{'Read more'}
</Link>
<div className={'flex justify-between gap-2'}>
<Link
className={'leading-6 underline opacity-70 transition-opacity hover:opacity-100'}
href={'/'}>
{'Read more'}
</Link>
{isHovering && <IconArrow className={'text-black'} />}
</div>
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions apps/landing/components/sections/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ export function Hero(): ReactElement {
'relative mx-6 mt-6 flex h-[568px] w-[2365px] max-w-[2352px] flex-col items-center self-center rounded-lg border border-[#292929]'
}>
<AnimatedLogos />
<div className={'z-20 mt-[88px] text-center'}>
<div className={'z-20 mt-[88px] text-center md:mt-[160px]'}>
<p className={'text-[80px] font-bold leading-[80px] text-white'}>{'THE DEFI WAY'}</p>
<p className={'text-[80px] font-bold leading-[80px] text-white'}>{'TO EARN ON CRYPTO'}</p>
<p className={'mt-4 text-grey-400'}>
{'Yearn is DeFi’s longest running, most battle tested, and most trusted yield protocol.'}
</p>
</div>
<div className={'mt-[72px] flex gap-2'}>
<div className={'mt-[72px] flex gap-2 md:mt-[48px] lg:mt-[72px]'}>
<Button className={'w-[192px] px-[15px]'}>{'DISCOVER PRODUCTS'}</Button>
<Button
onClick={() => scrollToHash('form')}
Expand Down
2 changes: 1 addition & 1 deletion apps/landing/components/sections/WaysToEarn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function WaysToEarn(): ReactElement {
}>
<div className={'flex h-full flex-col justify-between'}>
<div>
<p className={'text-md mb-4 group-hover:text-grey-900 md:text-[32px]'}>
<p className={'text-md mb-4 text-white group-hover:text-grey-900 md:text-[32px]'}>
{'VAULTS PUT YOUR CRYPTO TO WORK, SO YOU DONT HAVE TO.'}
</p>
<p className={'z-20 text-grey-400 group-hover:text-grey-900'}>
Expand Down
Binary file modified public/landing/hero-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f808667

Please sign in to comment.