Skip to content

Commit ceb3e85

Browse files
committed
Add svg and dev versions favicons
1 parent 1d13064 commit ceb3e85

7 files changed

Lines changed: 56 additions & 3 deletions

File tree

assets/icons/favicon-16x16.png

-164 Bytes
Loading

assets/icons/favicon-32x32.png

-352 Bytes
Loading

assets/icons/favicon-dev-16x16.png

579 Bytes
Loading

assets/icons/favicon-dev-32x32.png

1.11 KB
Loading

assets/icons/favicon-dev.svg

Lines changed: 24 additions & 0 deletions
Loading

assets/icons/favicon.svg

Lines changed: 23 additions & 0 deletions
Loading

src/web/FloraWeb/Components/Header.hs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,16 @@ header = do
3333
meta_ [charset_ "UTF-8"]
3434
meta_ [name_ "viewport", content_ "width=device-width, initial-scale=1"]
3535
unless indexPage $ meta_ [name_ "robots", content_ "noindex"]
36-
-- link_ [rel_ "icon", href_ "/static/icons/favicon.svg", type_ "image/svg+xml"]
3736
link_ [rel_ "apple-touch-icon", sizes_ "180x180", href_ "/static/icons/apple-touch-icon.png"]
38-
link_ [rel_ "icon", type_ "image/png", sizes_ "32x32", href_ "/static/icons/favicon-32x32.png"]
39-
link_ [rel_ "icon", type_ "image/png", sizes_ "16x16", href_ "/static/icons/favicon-16x16.png"]
37+
case environment of
38+
Development -> do
39+
link_ [rel_ "icon", href_ "/static/icons/favicon-dev.svg", type_ "image/svg+xml"]
40+
link_ [rel_ "icon", type_ "image/png", sizes_ "32x32", href_ "/static/icons/favicon-dev-32x32.png"]
41+
link_ [rel_ "icon", type_ "image/png", sizes_ "16x16", href_ "/static/icons/favicon-dev-16x16.png"]
42+
_ -> do
43+
link_ [rel_ "icon", href_ "/static/icons/favicon.svg", type_ "image/svg+xml"]
44+
link_ [rel_ "icon", type_ "image/png", sizes_ "32x32", href_ "/static/icons/favicon-32x32.png"]
45+
link_ [rel_ "icon", type_ "image/png", sizes_ "16x16", href_ "/static/icons/favicon-16x16.png"]
4046
link_ [rel_ "manifest", href_ "/static/icons/site.webmanifest"]
4147
link_ [rel_ "mask-icon", href_ "/static/icons/safari-pinned-tab.svg", color_ "#5bbad5"]
4248
meta_ [name_ "msapplication-TileColor", content_ "#da532c"]

0 commit comments

Comments
 (0)