on master help sign in
Merge pull request #1907 from urbit/gc/ogcard

new opengraph card image and favicons

commit18497810992e1360590048f33a2d7c1929bf1bd0 authormatildepark <m@park.computer> dateTue 22 Nov 2022, 16:27 (4 years ago) parent9061947287975f
13 files changed+28−2
components/FavIcons.js+5 components/Meta.js+21−2 pages/_app.js+2 public/images/android-chrome-192x192.png public/images/android-chrome-512x512.png public/images/apple-touch-icon.png public/images/developers-guide-logo.png public/images/favicon-16x16.png public/images/favicon-32x32.png public/images/favicon.ico public/images/network-explorer-logo.png public/images/operators-guide-logo.png public/images/star-market-logo.png
components/FavIcons.jsnew file+5
@@ -0,0 +1,5 @@
1+<link rel="icon" type="image/png" href="/images/favicon.ico" />
2+<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png"/>
3+<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png"/>
4+<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png"/>
5+<link rel="manifest" href="/images/site.webmanifest"/>
components/Meta.js+21−2
@@ -2,14 +2,33 @@ export default function Meta(post, disableImage, large = false) {
22 const author = post?.extra?.author || "urbit.org";
33 const title = post?.title ? post.title : "";
44 const description =
5− post?.description || "Urbit is a personal server built from scratch.";
5+ post?.description || "Urbit is a new kind of computer that you can own completely in ways that matter: networking, identity, & data.";
66 const image =
77 post?.extra?.image ||
88 post?.image ||
9− "https://media.urbit.org/logo/urbit-logo-card.png";
9+ "https://storage.googleapis.com/media.urbit.org/site/opengraph/urbit.png";
1010 return (
1111 <>
1212 <link rel="icon" type="image/png" href="/images/favicon.ico" />
13+ <link
14+ rel="apple-touch-icon"
15+ sizes="180x180"
16+ href="/images/apple-touch-icon.png"
17+ />
18+ <link
19+ rel="icon"
20+ type="image/png"
21+ sizes="32x32"
22+ href="/images/favicon-32x32.png"
23+ />
24+ <link
25+ rel="icon"
26+ type="image/png"
27+ sizes="16x16"
28+ href="/images/favicon-16x16.png"
29+ />
30+ <link rel="manifest" href="/images/site.webmanifest" />
31+
1332 <meta
1433 name="twitter:card"
1534 content={large ? "summary_large_image" : "summary"}
pages/_app.js+2
@@ -5,6 +5,7 @@ import { Search } from "@urbit/foundation-design-system";
55import "@urbit/foundation-design-system/styles/globals.css";
66import "@urbit/foundation-design-system/styles/markdown.css";
77import "@urbit/foundation-design-system/styles/prism.css";
8+import Head from "next/head";
89
910const MATOMO_URL = process?.env?.NEXT_PUBLIC_MATOMO_URL || "";
1011const MATOMO_SITE_ID = process?.env?.NEXT_PUBLIC_MATOMO_SITE_ID || "";
@@ -59,6 +60,7 @@ function MyApp({ Component, pageProps }) {
5960
6061 return (
6162 <>
63+
6264 <GlobalHotKeys keyMap={keyMap} handlers={handlers} />
6365 <Search
6466 showSearch={showSearch}
public/images/android-chrome-192x192.pngnew file

Binary file not shown.

public/images/android-chrome-512x512.pngnew file

Binary file not shown.

public/images/apple-touch-icon.pngnew file

Binary file not shown.

public/images/developers-guide-logo.pngdeleted

Binary file not shown.

public/images/favicon-16x16.pngnew file

Binary file not shown.

public/images/favicon-32x32.pngnew file

Binary file not shown.

public/images/favicon.ico

Binary file not shown.

public/images/network-explorer-logo.pngdeleted

Binary file not shown.

public/images/operators-guide-logo.pngdeleted

Binary file not shown.

public/images/star-market-logo.pngdeleted

Binary file not shown.