Skip to content

Commit 40cef50

Browse files
committed
feat: update favicon generation and manifest configuration
Signed-off-by: Rid <rid@cylo.io>
1 parent cf27c25 commit 40cef50

15 files changed

+694
-718
lines changed

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "2.0.0",
44
"private": true,
55
"scripts": {
6+
"generate-favicons": "node ../../generate-favicons.js src/app/icon0.svg .",
67
"dev": "next dev --turbopack",
78
"build": "run-s contentlayer:build next:build",
89
"start": "next start",
@@ -55,7 +56,6 @@
5556
"react-dom": "19.1.0",
5657
"react-intersection-observer": "^9.16.0",
5758
"react-wrap-balancer": "^1.1.1",
58-
"sharp": "^0.34.0",
5959
"simplex-noise": "^4.0.3",
6060
"tailwind-merge": "^3.1.0",
6161
"tailwindcss-animate": "^1.0.7"

apps/web/public/appbox-gradient-box-purple.svg

Lines changed: 2 additions & 2 deletions
Loading

apps/web/public/site.webmanifest

Lines changed: 0 additions & 1 deletion
This file was deleted.
5.35 KB
Loading
13.9 KB
Loading

apps/web/src/app/[locale]/layout.tsx

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,31 @@ export async function generateMetadata(props: {
9292
// },
9393

9494
icons: {
95-
icon: "/appbox-box-white.svg",
96-
apple: "/appbox-box-white.svg",
97-
shortcut: "/appbox-box-white.svg"
95+
icon: [
96+
{
97+
url: "/icon1.svg",
98+
sizes: "any",
99+
type: "image/svg+xml"
100+
},
101+
{
102+
url: "/icon0.svg",
103+
sizes: "any",
104+
type: "image/svg+xml"
105+
}
106+
],
107+
apple: [
108+
{
109+
url: "/apple-icon.png",
110+
sizes: "180x180",
111+
type: "image/png"
112+
}
113+
],
114+
shortcut: "/favicon.ico"
98115
},
99116

100117
manifest: siteConfig.url
101-
? `${siteConfig.url}/site.webmanifest`
102-
: "/site.webmanifest"
118+
? `${siteConfig.url}/manifest.webmanifest`
119+
: "/manifest.webmanifest"
103120
}
104121
}
105122

@@ -127,6 +144,7 @@ export default async function RootLayout(props: AppLayoutProps) {
127144
>
128145
<head>
129146
<meta name="theme-color" content="#181423" />
147+
<meta name="apple-mobile-web-app-title" content={siteConfig.name} />
130148
<Script
131149
type="text/javascript"
132150
strategy="afterInteractive"

apps/web/src/app/apple-icon.png

5.15 KB
Loading

apps/web/src/app/favicon.ico

1.84 KB
Binary file not shown.

apps/web/src/app/icon0.svg

Lines changed: 45 additions & 0 deletions
Loading

apps/web/src/app/icon1.svg

Lines changed: 45 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)