Skip to content
Permalink
Browse files

Set up favicon, mask icon, and application theme meta tag

  • Loading branch information
lovett committed Nov 16, 2019
1 parent 3116373 commit d57e1acb1c84a16e595f23499c32a0733d80e047
Showing with 21 additions and 2 deletions.
  1. +10 −0 Makefile
  2. BIN public/favicon.ico
  3. BIN public/toils.png
  4. +6 −0 public/toils.svg
  5. +5 −2 resources/views/layouts/app.blade.php
@@ -131,3 +131,13 @@ build: dummy
cd build && composer install --no-dev --no-suggest --quiet --classmap-authoritative
cd build && rm composer.lock composer.json package.json package-lock.json webpack.mix.js
tar --create --gzip --file=toils.tar.gz --exclude=node_modules --exclude=storage --transform s/build/toils/ build

# Generate a favicon with multiple sizes.
favicon: dummy
convert -density 900 -background none -geometry 180x180 public/toils.svg public/toils.png
convert -density 900 -background none -geometry 48x48 public/toils.svg temp-48.png
convert -density 900 -background none -geometry 32x32 public/toils.svg temp-32.png
convert -density 900 -background none -geometry 16x16 public/toils.svg temp-16.png
convert temp-16.png temp-32.png temp-48.png public/favicon.ico
rm temp-48.png temp-32.png temp-16.png
optipng -quiet -o 3 public/*.png
BIN +14.7 KB (100%) public/favicon.ico
Binary file not shown.
BIN +3.48 KB public/toils.png
Binary file not shown.
@@ -0,0 +1,6 @@
<!-- Generated by IcoMoon.io -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<title>clipboard</title>
<path d="M14.5 2h-4.5c0-1.105-0.895-2-2-2s-2 0.895-2 2h-4.5c-0.276 0-0.5 0.224-0.5 0.5v13c0 0.276 0.224 0.5 0.5 0.5h13c0.276 0 0.5-0.224 0.5-0.5v-13c0-0.276-0.224-0.5-0.5-0.5zM8 1c0.552 0 1 0.448 1 1s-0.448 1-1 1c-0.552 0-1-0.448-1-1s0.448-1 1-1zM14 15h-12v-12h2v1.5c0 0.276 0.224 0.5 0.5 0.5h7c0.276 0 0.5-0.224 0.5-0.5v-1.5h2v12z"></path>
<path d="M7 13.414l-3.207-3.707 0.914-0.914 2.293 1.793 4.293-3.793 0.914 0.914z"></path>
</svg>
@@ -5,11 +5,14 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="theme-color" content="#007bff" />
<meta name="msapplication-TileColor" content="#2D8E5E" />
<meta name="msapplication-TileImage" content="app-icon.png" />

<title>{{ config('app.name') }} :: {{ $pageTitle }}</title>

<link rel="shortcut icon" href="{{ asset('toils.png') }}" />
<link rel="stylesheet" href="{{ asset('css/app.css') }}" />

<link rel="mask-icon" href="{{ asset('toils.svg') }}" color="black" />
</head>
<body>
<svg class="d-none">

0 comments on commit d57e1ac

Please sign in to comment.
You can’t perform that action at this time.