Merge pull request #130 from fhemberger/feature/manifest

Add touch icons for Chrome, iOS and Windows 10
lolsob-rspec
Eugen 2016-11-02 17:41:32 +01:00 committed by GitHub
commit fc683a2644
6 changed files with 28 additions and 0 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
public/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

9
public/browserconfig.xml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/assets/mstile-150x150.png"/>
<TileColor>#2b5797</TileColor>
</tile>
</msapplication>
</browserconfig>

14
public/manifest.json Normal file
View File

@ -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"
}

BIN
public/mstile-150x150.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB