set_isHovering(true)}
onMouseLeave={() => set_isHovering(false)}
style={{
background: isHovering
? '#0657F9'
: 'linear-gradient(180deg, rgba(12, 12, 12, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%)'
- }}
- className={
- 'group relative col-span-12 row-span-4 overflow-hidden rounded-lg border border-[#292929] p-6 transition-colors md:col-span-7 md:row-span-12 md:p-10'
- }>
-
-
-
- {'VAULTS PUT YOUR CRYPTO TO WORK, SO YOU DONT HAVE TO.'}
-
-
- {
- 'The DeFi economy offers loads of way to earn yield on your capital. Yearn Vaults automatically take advantage of these opportunities to give you the best risk adjusted yields without you having to lift a finger.'
- }
-
-
-
-
-
+
+
+
+
+ {'VAULTS PUT YOUR CRYPTO TO WORK, SO YOU DONT HAVE TO.'}
+
+
+ {
+ 'The DeFi economy offers loads of way to earn yield on your capital. Yearn Vaults automatically take advantage of these opportunities to give you the best risk adjusted yields without you having to lift a finger.'
+ }
+
+
+
+
+
+
+
+
-
-
-
+
@@ -83,6 +90,7 @@ export function WaysToEarn(): ReactElement {
'Yearn Vaults are a core part of DeFi, and you can access them through many popular apps and UIs.'
}
logoSrc={'/landing/integrations.png'}
+ href={'/home/integrations'}
hoverLogoSrc={'/landing/integrations-hover.png'}
/>
diff --git a/pages/_app.tsx b/pages/_app.tsx
index 4a6a1f0e..191bed84 100755
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -27,6 +27,7 @@ import type {ReactElement} from 'react';
import type {Chain} from 'viem';
import '../style.css';
+import {usePathname} from 'next/navigation';
/** 🔵 - Yearn Finance ***************************************************************************
** The 'WithLayout' function is a React functional component that returns a ReactElement. It is used
@@ -49,9 +50,10 @@ const WithLayout = memo(function WithLayout(
const {name} = useCurrentApp(props.router);
const [isSearchOpen, set_isSearchOpen] = useState(false);
const [isNavbarOpen, set_isNavbarOpen] = useState(false);
- const isOnLanding = props.router.asPath?.startsWith('/home/') || props.router.asPath === '/';
+ const isHomepage = props.router.asPath?.startsWith('/home');
+ const pathName = usePathname();
- if (isOnLanding) {
+ if (isHomepage) {
return (
- {pathName === '/landing' ? (
-
- ) : (
-
- )}
+ {pathName === '/' ?
:
}
;
+ return (
+
+ );
}
export default Index;
diff --git a/pages/landing.tsx b/pages/landing.tsx
deleted file mode 100644
index 21cf1219..00000000
--- a/pages/landing.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import {About} from 'apps/landing/components/sections/About';
-import {Contribute} from 'apps/landing/components/sections/Contribute';
-import {Footer} from 'apps/landing/components/sections/Footer';
-import {Form} from 'apps/landing/components/sections/Form';
-import {Hero} from 'apps/landing/components/sections/Hero';
-import {Partners} from 'apps/landing/components/sections/Partners';
-import {WaysToEarn} from 'apps/landing/components/sections/WaysToEarn';
-
-import type {ReactElement} from 'react';
-
-function Landing(): ReactElement {
- return (
-
- );
-}
-
-export default Landing;