feat: add custom favicon from favicon.io

This commit is contained in:
b1ek 2024-08-20 19:22:32 +10:00
parent 821ed27b2c
commit 4201519e1c
Signed by: blek
GPG Key ID: 14546221E3595D0C
8 changed files with 6 additions and 1 deletions

View File

@ -17,7 +17,11 @@ $this->registerMetaTag(['charset' => Yii::$app->charset], 'charset');
$this->registerMetaTag(['name' => 'viewport', 'content' => 'width=device-width, initial-scale=1, shrink-to-fit=no']);
$this->registerMetaTag(['name' => 'description', 'content' => $this->params['meta_description'] ?? '']);
$this->registerMetaTag(['name' => 'keywords', 'content' => $this->params['meta_keywords'] ?? '']);
$this->registerLinkTag(['rel' => 'icon', 'type' => 'image/x-icon', 'href' => Yii::getAlias('@web/favicon.ico')]);
$this->registerLinkTag(['rel' => 'icon', 'type' => 'image/svg', 'href' => Yii::getAlias('@web/favicon.ico')]);
$this->registerLinkTag(['rel' => 'apple-touch-icon', 'sizes' => '180x180', 'type' => 'image/png', 'href' => Yii::getAlias('@web/apple-touch-icon.png')]);
$this->registerLinkTag(['rel' => 'apple-touch-icon', 'sizes' => '32x32', 'type' => 'image/png', 'href' => Yii::getAlias('@web/favicon-32x32.png')]);
$this->registerLinkTag(['rel' => 'apple-touch-icon', 'sizes' => '16x16', 'type' => 'image/png', 'href' => Yii::getAlias('@web/favicon-16x16.png')]);
$this->registerLinkTag(['rel' => 'manifest', 'href' => Yii::getAlias('@web/site.webmanifest')]);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
web/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

BIN
web/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

After

Width:  |  Height:  |  Size: 15 KiB

1
web/site.webmanifest Normal file
View File

@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}