Skip to content

Commit 5610f15

Browse files
update meta tags
1 parent 8e9e0b6 commit 5610f15

4 files changed

Lines changed: 35 additions & 16 deletions

File tree

editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"moment": "^2.29.1",
4545
"monaco-editor": "^0.33.0",
4646
"next": "^12.1.4",
47-
"next-pwa": "^5.5.5",
47+
"next-pwa": "^5.6.0",
4848
"pouchdb-adapter-idb": "^7.2.2",
4949
"re-resizable": "^6.9.1",
5050
"react": "^18.2.0",

editor/pages/_app.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,6 @@ function HeadInjection() {
3232
<meta property="title" content="Design to Codes" />
3333
<meta property="description" content="Design to Codes description" />
3434

35-
{/* safari 15 color */}
36-
<meta
37-
name="theme-color"
38-
content="white"
39-
media="(prefers-color-scheme: light)"
40-
/>
41-
<meta
42-
name="theme-color"
43-
content={colors.color_editor_bg_on_dark}
44-
media="(prefers-color-scheme: dark)"
45-
/>
46-
4735
{/* disable zoom */}
4836
<meta
4937
name="viewport"

editor/pages/_document.tsx

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,46 @@
11
import { Html, Head, Main, NextScript } from "next/document";
2+
import { colors } from "theme";
23

34
export default function Document() {
45
return (
56
<Html>
67
<Head>
78
{/* PWA manifest */}
89
<link rel="manifest" href="/manifest.json" />
10+
<meta name="application-name" content="PWA App" />
11+
<meta name="apple-mobile-web-app-capable" content="yes" />
12+
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
13+
<meta name="apple-mobile-web-app-title" content="PWA App" />
14+
<meta name="description" content="Best PWA App in the world" />
15+
<meta name="format-detection" content="telephone=no" />
16+
<meta name="mobile-web-app-capable" content="yes" />
17+
<meta name="msapplication-config" content="/icons/browserconfig.xml" />
18+
<meta name="msapplication-TileColor" content="#2B5797" />
19+
<meta name="msapplication-tap-highlight" content="no" />
20+
21+
{/* region Font */}
22+
<link rel="preconnect" href="https://fonts.googleapis.com" />
23+
<link
24+
rel="preconnect"
25+
href="https://fonts.gstatic.com"
26+
crossOrigin=""
27+
/>
28+
{/* (en) Nanum Pen Script (+ ko), Roboto Mono, Inter */}
929
<link
10-
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&"
30+
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Nanum+Pen+Script&family=Roboto+Mono:wght@400;500;600;700&display=swap"
1131
rel="stylesheet"
12-
type="text/css"
32+
/>
33+
34+
{/* safari 15 color */}
35+
<meta
36+
name="theme-color"
37+
content="white"
38+
media="(prefers-color-scheme: light)"
39+
/>
40+
<meta
41+
name="theme-color"
42+
content={colors.color_editor_bg_on_dark}
43+
media="(prefers-color-scheme: dark)"
1344
/>
1445
</Head>
1546
<body>

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15999,7 +15999,7 @@ next-compose-plugins@^2.2.1:
1599915999
resolved "https://registry.yarnpkg.com/next-compose-plugins/-/next-compose-plugins-2.2.1.tgz#020fc53f275a7e719d62521bef4300fbb6fde5ab"
1600016000
integrity sha512-OjJ+fV15FXO2uQXQagLD4C0abYErBjyjE0I0FHpOEIB8upw0hg1ldFP6cqHTJBH1cZqy96OeR3u1dJ+Ez2D4Bg==
1600116001

16002-
next-pwa@^5.5.5:
16002+
next-pwa@^5.6.0:
1600316003
version "5.6.0"
1600416004
resolved "https://registry.yarnpkg.com/next-pwa/-/next-pwa-5.6.0.tgz#f7b1960c4fdd7be4253eb9b41b612ac773392bf4"
1600516005
integrity sha512-XV8g8C6B7UmViXU8askMEYhWwQ4qc/XqJGnexbLV68hzKaGHZDMtHsm2TNxFcbR7+ypVuth/wwpiIlMwpRJJ5A==

0 commit comments

Comments
 (0)