diff --git a/apps/docs/public/apple-touch-icon.png b/apps/docs/public/apple-touch-icon.png new file mode 100644 index 0000000000..5f8176133b Binary files /dev/null and b/apps/docs/public/apple-touch-icon.png differ diff --git a/apps/docs/public/favicon.ico b/apps/docs/public/favicon.ico index 0ced76d8e5..b0498113b9 100644 Binary files a/apps/docs/public/favicon.ico and b/apps/docs/public/favicon.ico differ diff --git a/apps/docs/public/favicon.png b/apps/docs/public/favicon.png deleted file mode 100644 index ccba5e5847..0000000000 Binary files a/apps/docs/public/favicon.png and /dev/null differ diff --git a/apps/docs/public/favicon.svg b/apps/docs/public/favicon.svg index 35d8e854bc..3f9b752bd1 100644 --- a/apps/docs/public/favicon.svg +++ b/apps/docs/public/favicon.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/apps/docs/public/manifest.webmanifest b/apps/docs/public/manifest.webmanifest new file mode 100644 index 0000000000..4186cfa637 --- /dev/null +++ b/apps/docs/public/manifest.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "Puck", + "short_name": "Pck", + "icons": [ + { + "src": "/maskable_icon_x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/maskable_icon.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#111", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/apps/docs/public/maskable_icon.png b/apps/docs/public/maskable_icon.png new file mode 100644 index 0000000000..b95f63be34 Binary files /dev/null and b/apps/docs/public/maskable_icon.png differ diff --git a/apps/docs/public/maskable_icon_x192.png b/apps/docs/public/maskable_icon_x192.png new file mode 100644 index 0000000000..e712afc208 Binary files /dev/null and b/apps/docs/public/maskable_icon_x192.png differ diff --git a/apps/docs/public/social.png b/apps/docs/public/social.png index dee9a29718..7099643d6e 100644 Binary files a/apps/docs/public/social.png and b/apps/docs/public/social.png differ diff --git a/apps/docs/theme.config.tsx b/apps/docs/theme.config.tsx index 2d2bc44ee6..39dc8c3cd7 100644 --- a/apps/docs/theme.config.tsx +++ b/apps/docs/theme.config.tsx @@ -8,36 +8,63 @@ import { Viewport } from "./components/Viewport"; const Head = () => { const { asPath, defaultLocale, locale } = useRouter(); - const config = useConfig(); + const { frontMatter, title } = useConfig(); + + const siteUrl = "https://puckeditor.com"; const url = - "https://puckeditor.com" + - (defaultLocale === locale ? asPath : `/${locale}${asPath}`); + siteUrl + (defaultLocale === locale ? asPath : `/${locale}${asPath}`); - const defaultDescription = - "Puck empowers developers to build amazing visual editing experiences into their own React applications, powering the next generation of content tools."; + const defaultTitle = `Puck - The open-source visual editor for React`; + const description = + frontMatter.description || + `Puck empowers developers to build amazing visual editing experiences into their own React applications, powering the next generation of content tools.`; return ( <> + - - + + - + - - + + + + + + - + + + + + + + + - + + + + {asPath == "/" && ( +