Sharpen portal PWA icons and add social preview image metadata.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Eric 2026-10-06 23:29:08 +08:00
parent b90e524b25
commit 02232177e9
10 changed files with 21 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 893 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 759 B

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 453 B

After

Width:  |  Height:  |  Size: 915 B

View File

@ -2,17 +2,18 @@
<defs>
<linearGradient id="g" x1="8" y1="6" x2="56" y2="58" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#FF6B6B"/>
<stop offset="50%" stop-color="#FFE66D"/>
<stop offset="45%" stop-color="#FFE66D"/>
<stop offset="100%" stop-color="#4ECDC4"/>
</linearGradient>
<radialGradient id="glow" cx="50%" cy="55%" r="45%">
<stop offset="0%" stop-color="#4ECDC4" stop-opacity="0.28"/>
<radialGradient id="glow" cx="50%" cy="58%" r="48%">
<stop offset="0%" stop-color="#4ECDC4" stop-opacity="0.35"/>
<stop offset="100%" stop-color="#4ECDC4" stop-opacity="0"/>
</radialGradient>
</defs>
<rect width="64" height="64" rx="14" fill="#0a0e17"/>
<circle cx="32" cy="34" r="22" fill="url(#glow)"/>
<circle cx="32" cy="32" r="20" fill="none" stroke="url(#g)" stroke-width="3.2"/>
<path d="M18 34c5-9 23-9 28 0" fill="none" stroke="url(#g)" stroke-width="2.8" stroke-linecap="round"/>
<circle cx="44" cy="20" r="4" fill="url(#g)"/>
<circle cx="32" cy="36" r="24" fill="url(#glow)"/>
<circle cx="32" cy="32" r="19" fill="none" stroke="url(#g)" stroke-width="3.5"/>
<path d="M17 33.5c5.5-9.5 24.5-9.5 30 0" fill="none" stroke="url(#g)" stroke-width="3" stroke-linecap="round"/>
<circle cx="44.5" cy="19.5" r="4.2" fill="url(#g)"/>
<circle cx="43.2" cy="18.2" r="1.2" fill="#fff" fill-opacity="0.45"/>
</svg>

Before

Width:  |  Height:  |  Size: 933 B

After

Width:  |  Height:  |  Size: 1019 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -11,25 +11,25 @@
"lang": "zh-CN",
"icons": [
{
"src": "/favicon.svg",
"src": "/favicon.svg?v=2",
"sizes": "any",
"type": "image/svg+xml",
"purpose": "any"
},
{
"src": "/icon-192.png",
"src": "/icon-192.png?v=2",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/icon-512.png",
"src": "/icon-512.png?v=2",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/apple-touch-icon.png",
"src": "/apple-touch-icon.png?v=2",
"sizes": "180x180",
"type": "image/png",
"purpose": "any"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 453 B

After

Width:  |  Height:  |  Size: 915 B

View File

@ -41,6 +41,13 @@ export const metadata: Metadata = {
description: "随处工作,自由生活。出海导航 · 数字游民小册 · 旅居社群",
type: "website",
url: "https://nomadro.cn",
images: [{ url: "/icon-512.png", width: 512, height: 512, alt: "nomadro" }],
},
twitter: {
card: "summary",
title: "nomadro",
description: "随处工作,自由生活。出海导航 · 数字游民小册 · 旅居社群",
images: ["/icon-512.png"],
},
manifest: "/manifest.webmanifest",
appleWebApp: {
@ -54,6 +61,8 @@ export const metadata: Metadata = {
{ url: "/favicon.svg", type: "image/svg+xml" },
{ url: "/favicon-32x32.png", sizes: "32x32", type: "image/png" },
{ url: "/favicon-16x16.png", sizes: "16x16", type: "image/png" },
{ url: "/icon-192.png", sizes: "192x192", type: "image/png" },
{ url: "/icon-512.png", sizes: "512x512", type: "image/png" },
],
apple: [{ url: "/apple-touch-icon.png", sizes: "180x180", type: "image/png" }],
},