From a0d96e7b824ea388446ee582e723f9fbffb5580a Mon Sep 17 00:00:00 2001
From: Daniil Polienko
Date: Wed, 20 Nov 2024 12:58:51 +0300
Subject: [PATCH] fix: merge
---
apps/landing/components/common/EarnCard.tsx | 14 ++-
apps/landing/components/common/Header.tsx | 2 +-
.../components/sections/Contribute.tsx | 42 +++++---
apps/landing/components/sections/Hero.tsx | 4 +-
.../components/sections/WaysToEarn.tsx | 96 ++++++++++---------
pages/_app.tsx | 12 +--
pages/index.tsx | 26 ++++-
pages/landing.tsx | 31 ------
8 files changed, 126 insertions(+), 101 deletions(-)
delete mode 100644 pages/landing.tsx
diff --git a/apps/landing/components/common/EarnCard.tsx b/apps/landing/components/common/EarnCard.tsx
index 42376e04a..c166081b7 100644
--- a/apps/landing/components/common/EarnCard.tsx
+++ b/apps/landing/components/common/EarnCard.tsx
@@ -1,12 +1,20 @@
import {type ReactElement, useState} from 'react';
import Image from 'next/image';
+import Link from 'next/link';
import {IconArrow} from '@common/icons/IconArrow';
-export function EarnCard(props: {title: string; info: string; logoSrc: string; hoverLogoSrc: string}): ReactElement {
+export function EarnCard(props: {
+ title: string;
+ info: string;
+ logoSrc: string;
+ hoverLogoSrc: string;
+ href: string;
+}): ReactElement {
const [isHovering, set_isHovering] = useState(false);
return (
- set_isHovering(true)}
onMouseLeave={() => set_isHovering(false)}
style={{
@@ -38,6 +46,6 @@ export function EarnCard(props: {title: string; info: string; logoSrc: string; h
height={200}
alt={'app-logo'}
/>
-
+
);
}
diff --git a/apps/landing/components/common/Header.tsx b/apps/landing/components/common/Header.tsx
index 89fed5fd5..567020ef4 100644
--- a/apps/landing/components/common/Header.tsx
+++ b/apps/landing/components/common/Header.tsx
@@ -32,7 +32,7 @@ export function LandingAppHeader(): ReactElement {
const [isMenuOpen, set_isMenuOpen] = useState(false);
const menu = useMemo((): TMenu[] => {
- const HOME_MENU = {path: '/', label: 'Home'};
+ const HOME_MENU = {path: '/home', label: 'Home'};
return [
HOME_MENU,
diff --git a/apps/landing/components/sections/Contribute.tsx b/apps/landing/components/sections/Contribute.tsx
index 62f9a5408..2be37a678 100644
--- a/apps/landing/components/sections/Contribute.tsx
+++ b/apps/landing/components/sections/Contribute.tsx
@@ -3,16 +3,38 @@ 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 $$.'},
- {title: 'LEAVE FEEDBACK.', description: "Thoughts? Ideas? Improvements? Let's hear it!"},
- {title: 'WRITE DOCS.', description: 'Want to help write docs for Yearn, be our guest!'},
- {title: 'BUILD.', description: 'Yearn is open source, anyone can contribute to its future!'}
+ {
+ title: 'BUG BOUNTY.',
+ description: 'Bugs?! Ew! Report a bug and you might earn $$.',
+ href: 'https://immunefi.com/bug-bounty/yearnfinance/information/',
+ target: '_blank'
+ },
+ {
+ title: 'LEAVE FEEDBACK.',
+ description: "Thoughts? Ideas? Improvements? Let's hear it!",
+ href: 'https://gov.yearn.fi/c/general-chat/feedback/2',
+ target: '_blank'
+ },
+ {
+ title: 'WRITE DOCS.',
+ description: 'Want to help write docs for Yearn, be our guest!',
+ href: 'https://docs.yearn.fi/',
+ target: '_blank'
+ },
+ {
+ title: 'BUILD.',
+ description: 'Yearn is open source, anyone can contribute to its future!',
+ href: 'https://github.com/yearn',
+ target: '_blank'
+ }
];
-function ContributeCard(props: {title: string; description: string}): ReactElement {
+function ContributeCard(props: {title: string; description: string; href: string; target: string}): ReactElement {
const [isHovering, set_isHovering] = useState(false);
return (
- set_isHovering(true)}
onMouseLeave={() => set_isHovering(false)}
style={{
@@ -28,14 +50,10 @@ function ContributeCard(props: {title: string; description: string}): ReactEleme
{props.description}
-
- {'Read more'}
-
+
{'Read more'}
{isHovering &&
}
-
+
);
}
diff --git a/apps/landing/components/sections/Hero.tsx b/apps/landing/components/sections/Hero.tsx
index d1c1e8c50..3a864454e 100644
--- a/apps/landing/components/sections/Hero.tsx
+++ b/apps/landing/components/sections/Hero.tsx
@@ -133,7 +133,9 @@ export function Hero(): ReactElement {
-
+
+
+