fix(trading): manifest.json and woff preloading (#5950)

This commit is contained in:
Matthew Russell 2024-03-08 17:27:36 +00:00 committed by GitHub
parent 4b917926c5
commit 1d71a839b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 35 additions and 35 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -1,22 +0,0 @@
{
"name": "Vega Protocol - Trading",
"short_name": "Console",
"description": "Vega Protocol - Trading dApp",
"start_url": "/",
"display": "standalone",
"orientation": "portrait",
"theme_color": "#000000",
"background_color": "#ffffff",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
}
]
}

View File

@ -4,11 +4,10 @@ export default function Document() {
return ( return (
<> <>
<Head> <Head>
{/* <meta
meta tags name="viewport"
- next advised against using _document for this, so they exist in our content="width=device-width, initial-scale=1.0, user-scalable=no"
- single page index.page.tsx />
*/}
{/* preload fonts */} {/* preload fonts */}
<link <link
@ -18,15 +17,38 @@ export default function Document() {
type="font/woff" type="font/woff"
/> />
<link
rel="preload"
href="/AlphaLyrae.woff2"
as="font"
type="font/woff2"
/>
{/* icons */} {/* icons */}
<link rel="icon" type="image/x-icon" href="/favicon.ico" /> <link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="apple-touch-icon" content="/favicon.ico" /> <link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
{/* scripts */} {/* scripts */}
<script src="/theme-setter.js" type="text/javascript" async /> <script src="/theme-setter.js" type="text/javascript" async />
{/* manifest */} {/* manifest */}
<link rel="manifest" href="/apps/trading/public/manifest.json" /> <link rel="manifest" href="/manifest.json" />
</Head> </Head>
<Html> <Html>
<body <body

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -9,14 +9,14 @@
"background_color": "#ffffff", "background_color": "#ffffff",
"icons": [ "icons": [
{ {
"src": "favicon.ico", "src": "/android-chrome-192x192.png",
"sizes": "64x64 32x32 24x24 16x16", "sizes": "192x192",
"type": "image/x-icon" "type": "image/png"
}, },
{ {
"src": "cover.png", "src": "/android-chrome-512x512.png",
"type": "image/png", "sizes": "512x512",
"sizes": "192x192" "type": "image/png"
} }
] ]
} }