Skip to content

Commit

Permalink
update: og
Browse files Browse the repository at this point in the history
  • Loading branch information
w84april committed Nov 18, 2024
1 parent 4e86c99 commit 394fe25
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/common/hooks/useCurrentApp.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {useMemo} from 'react';
import landingManifest from 'public/apps/landing-manifest.json';
import homeManifest from 'public/manifest.json';
import {VaultsHeader} from '@vaults/components/header/VaultsHeader';
import {AppName, APPS} from '@common/components/Apps';
Expand All @@ -25,6 +26,11 @@ export function useCurrentApp({pathname}: NextRouter): TCurrentApp {
'/vaults': {
...APPS[AppName.VAULTS],
header: <VaultsHeader pathname={pathname} />
},
'/landing': {
name: 'Home',
manifest: landingManifest,
menu: []
}
};

Expand Down
35 changes: 35 additions & 0 deletions public/apps/landing-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "Yearn Vaults",
"short_name": "Vaults",
"description": "The defi way to earn on crypto",
"iconPath": "./favicons/favicon.svg",
"locale": "en-US",
"uri": "https://yearn.fi/landing/",
"og": "https://yearn.fi/apps/landing-og.png",
"twitter": "@iearnfinance",
"github": "https://github.com/yearn/yearn.fi",
"icons": [
{
"src": "./favicons/android-icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "./favicons/android-icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "./favicons/android-icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#000000",
"background_color": "#000000",
"title_color": "#ffffff",
"start_url": "/",
"display": "standalone",
"orientation": "portrait"
}
Binary file added public/apps/landing-og.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 394fe25

Please sign in to comment.