From e7cd6da93833b65b1e94eb923b561dc89d5c37a3 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Wed, 2 Nov 2016 15:18:40 +0100 Subject: Add touch icons for Chrome, iOS and Windows 10 --- app/views/layouts/application.html.haml | 5 +++++ public/android-chrome-192x192.png | Bin 0 -> 14577 bytes public/apple-touch-icon.png | Bin 0 -> 11810 bytes public/browserconfig.xml | 9 +++++++++ public/manifest.json | 14 ++++++++++++++ public/mstile-150x150.png | Bin 0 -> 6916 bytes 6 files changed, 28 insertions(+) create mode 100644 public/android-chrome-192x192.png create mode 100644 public/apple-touch-icon.png create mode 100644 public/browserconfig.xml create mode 100644 public/manifest.json create mode 100644 public/mstile-150x150.png diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 89c7b14c4..ee36b08b8 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -5,6 +5,11 @@ %meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/ %meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge'}/ + %link{:rel => "apple-touch-icon", :sizes => "180x180" :href => "/assets/apple-touch-icon.png"}/ + %link{:rel => "manifest", href => "/assets/manifest.json"}/ + %meta{:name => "msapplication-config", content => "/assets/browserconfig.xml"}/ + %meta{:name => "theme-color", content => "#ffffff"}/ + %title = "#{yield(:page_title)} - " if content_for?(:page_title) Mastodon diff --git a/public/android-chrome-192x192.png b/public/android-chrome-192x192.png new file mode 100644 index 000000000..f059bbc46 Binary files /dev/null and b/public/android-chrome-192x192.png differ diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 000000000..c1a191302 Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/browserconfig.xml b/public/browserconfig.xml new file mode 100644 index 000000000..77318233c --- /dev/null +++ b/public/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #2b5797 + + + diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 000000000..173270f03 --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,14 @@ +{ + "name": "Mastodon", + "description": "Mastodon is a free, open-source social network server.", + "icons": [ + { + "src": "\/assets\/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image\/png" + } + ], + "theme_color": "#ffffff", + "display": "standalone", + "start_url": "/#/statuses/home" +} diff --git a/public/mstile-150x150.png b/public/mstile-150x150.png new file mode 100644 index 000000000..57eae8355 Binary files /dev/null and b/public/mstile-150x150.png differ -- cgit From bc1dba22c51e48ec6680e48cb2792513404b810f Mon Sep 17 00:00:00 2001 From: Eugen Date: Wed, 2 Nov 2016 17:13:47 +0100 Subject: Fix syntax errors --- app/views/layouts/application.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index ee36b08b8..3ec743768 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -5,10 +5,10 @@ %meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/ %meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge'}/ - %link{:rel => "apple-touch-icon", :sizes => "180x180" :href => "/assets/apple-touch-icon.png"}/ - %link{:rel => "manifest", href => "/assets/manifest.json"}/ - %meta{:name => "msapplication-config", content => "/assets/browserconfig.xml"}/ - %meta{:name => "theme-color", content => "#ffffff"}/ + %link{:rel => "apple-touch-icon", :sizes => "180x180", :href => "/assets/apple-touch-icon.png"}/ + %link{:rel => "manifest", :href => "/assets/manifest.json"}/ + %meta{:name => "msapplication-config", :content => "/assets/browserconfig.xml"}/ + %meta{:name => "theme-color", :content => "#ffffff"}/ %title = "#{yield(:page_title)} - " if content_for?(:page_title) -- cgit