Added favicons (#13)

This commit is contained in:
iko 2021-01-13 17:23:07 +03:00
parent fd870c1ae2
commit 5fb641bf89
29 changed files with 115 additions and 0 deletions

View File

@ -53,6 +53,7 @@ with {
cp -av ${octopod-css}/production/images/* /www/static/images/
cp -av ${octopod-css}/production/styles/* /www/static/styles/
cp -av ${octopod-css}/production/vendors/outline/* /www/static/vendors/outline/
cp -av ${octopod-css}/favicons/* /www/
'';
config = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,41 @@
{
"name": "App",
"icons": [
{
"src": "\/android-icon-36x36.png",
"sizes": "36x36",
"type": "image\/png",
"density": "0.75"
},
{
"src": "\/android-icon-48x48.png",
"sizes": "48x48",
"type": "image\/png",
"density": "1.0"
},
{
"src": "\/android-icon-72x72.png",
"sizes": "72x72",
"type": "image\/png",
"density": "1.5"
},
{
"src": "\/android-icon-96x96.png",
"sizes": "96x96",
"type": "image\/png",
"density": "2.0"
},
{
"src": "\/android-icon-144x144.png",
"sizes": "144x144",
"type": "image\/png",
"density": "3.0"
},
{
"src": "\/android-icon-192x192.png",
"sizes": "192x192",
"type": "image\/png",
"density": "4.0"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -100,6 +100,77 @@ headWidget projectNameEv = do
projectNameDyn <- holdDyn "Octopod" $ ("Octopod " <>) . uProjectName <$> projectNameEv
el "title" $ dynText projectNameDyn
-- favicon attributes
elAttr "link"
( "href" =: "/apple-icon-57x57.png"
<> "rel" =: "apple-touch-icon"
<> "sizes" =: "57x57") blank
elAttr "link"
( "href" =: "/apple-icon-60x60.png"
<> "rel" =: "apple-touch-icon"
<> "sizes" =: "60x60") blank
elAttr "link"
( "href" =: "/apple-icon-72x72.png"
<> "rel" =: "apple-touch-icon"
<> "sizes" =: "72x72") blank
elAttr "link"
( "href" =: "/apple-icon-76x76.png"
<> "rel" =: "apple-touch-icon"
<> "sizes" =: "76x76") blank
elAttr "link"
( "href" =: "/apple-icon-114x114.png"
<> "rel" =: "apple-touch-icon"
<> "sizes" =: "114x114") blank
elAttr "link"
( "href" =: "/apple-icon-120x120.png"
<> "rel" =: "apple-touch-icon"
<> "sizes" =: "120x120") blank
elAttr "link"
( "href" =: "/apple-icon-144x144.png"
<> "rel" =: "apple-touch-icon"
<> "sizes" =: "144x144") blank
elAttr "link"
( "href" =: "/apple-icon-152x152.png"
<> "rel" =: "apple-touch-icon"
<> "sizes" =: "152x152") blank
elAttr "link"
( "href" =: "/apple-icon-180x180.png"
<> "rel" =: "apple-touch-icon"
<> "sizes" =: "180x180") blank
elAttr "link"
( "href" =: "/android-icon-192x192.png"
<> "rel" =: "icon"
<> "sizes" =: "192x192"
<> "type" =: "image/png") blank
elAttr "link"
( "href" =: "/favicon-32x32.png"
<> "rel" =: "icon"
<> "sizes" =: "32x32"
<> "type" =: "image/png") blank
elAttr "link"
( "href" =: "/favicon-96x96.png"
<> "rel" =: "icon"
<> "sizes" =: "96x96"
<> "type" =: "image/png") blank
elAttr "link"
( "href" =: "/favicon-16x16.png"
<> "rel" =: "icon"
<> "sizes" =: "16x16"
<> "type" =: "image/png") blank
elAttr "link"
( "href" =: "/manifest.json"
<> "rel" =: "manifest") blank
elAttr "meta"
( "content" =: "#ffffff"
<> "name" =: "msapplication-TileColor") blank
elAttr "meta"
( "content" =: "/ms-icon-144x144.png"
<> "name" =: "msapplication-TileImage") blank
elAttr "meta"
( "content" =: "#ffffff"
<> "name" =: "theme-color") blank
-- | Common headers of all pages. Displays the project name.
headerWidget :: (MonadWidget t m, EventWriter t (Last ProjectName) m) => m ()
headerWidget =