aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-05 22:51:53 +0900
committernsfisis <nsfisis@gmail.com>2024-03-05 22:51:53 +0900
commit52e83d4e1fb5266bcd921d3685746e784660e748 (patch)
treed4e4b50b671e9cf88ed5cd36197d291ae9cbc566
parent6169405cdceca08dc0355bf066c7188498afefd5 (diff)
downloadphperkaigi-2024-albatross-52e83d4e1fb5266bcd921d3685746e784660e748.tar.gz
phperkaigi-2024-albatross-52e83d4e1fb5266bcd921d3685746e784660e748.tar.zst
phperkaigi-2024-albatross-52e83d4e1fb5266bcd921d3685746e784660e748.zip
add favicon
-rw-r--r--Makefile2
-rw-r--r--Makefile.prod2
-rw-r--r--services/app/assets/favicon.svg21
-rw-r--r--services/app/templates/_page.html.twig1
4 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c5976e6..db19a71 100644
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,8 @@ logs:
build-assets: services/app/public/assets
docker build -t albatross-build-assets -f services/app/Dockerfile.frontend ./services/app
docker run --rm -v "$$(pwd)"/services/app/esbuild.mjs:/app/esbuild.mjs -v "$$(pwd)"/services/app/assets:/app/assets -v "$$(pwd)"/services/app/public/assets:/app/public/assets --env-file "$$(pwd)"/.env.local albatross-build-assets npm run build
+ rm -f services/app/public/assets/favicon.svg
+ cp services/app/assets/favicon.svg services/app/public/assets
services/app/public/assets:
@mkdir -p services/app/public/assets
diff --git a/Makefile.prod b/Makefile.prod
index efb551e..1bfbfca 100644
--- a/Makefile.prod
+++ b/Makefile.prod
@@ -26,6 +26,8 @@ logs:
build-assets: services/app/public/assets
docker build -t albatross-build-assets -f services/app/Dockerfile.frontend ./services/app
docker run --rm -v "$$(pwd)"/services/app/esbuild.mjs:/app/esbuild.mjs -v "$$(pwd)"/services/app/assets:/app/assets -v "$$(pwd)"/services/app/public/assets:/app/public/assets --env-file "$$(pwd)"/.env.prod albatross-build-assets npm run build
+ rm -f services/app/public/assets/favicon.svg
+ cp services/app/assets/favicon.svg services/app/public/assets
services/app/public/assets:
@mkdir -p services/app/public/assets
diff --git a/services/app/assets/favicon.svg b/services/app/assets/favicon.svg
new file mode 100644
index 0000000..931fc7b
--- /dev/null
+++ b/services/app/assets/favicon.svg
@@ -0,0 +1,21 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="130" height="130" viewBox="0 0 130 130">
+ <defs>
+ <style>
+ .cls-1 {
+ fill: none;
+ }
+ .cls-2 {
+ fill: #e60082;
+ }
+ @media (prefers-color-scheme: dark) {
+ .cls-2 {
+ fill: #fff;
+ }
+ }
+ </style>
+ </defs>
+ <g transform="translate(627 -2695)">
+ <rect class="cls-1" width="130" height="130" rx="5" transform="translate(-627 2695)"/>
+ <path id="ttl_logo" class="cls-2" d="M109.44,46.755c-.044-.422-.184-1.635-.229-2.031a33.3,33.3,0,0,0-2.493-8.4C99.059,19.619,80.376,18.662,64.9,23.4A81.749,81.749,0,0,0,52.789,28.1a4.476,4.476,0,0,1-6.2-2.578C44.424,19.075,44.146,10.741,45.347,0,41.894,30.908,30.908,39.686,0,36.231c8.49.949,15.308,2.466,20.663,4.808a7.064,7.064,0,0,1,2.713,10.813q-1.432,1.849-2.762,3.781C7.53,74.662,3.576,99.531,9.39,121.736c.008-.4.02-1.02.047-1.771.194-5.34,1.6-39.572,25.766-63.228,1.965,6.352,2.186,14.475,1.029,24.842C39.686,50.67,50.669,41.894,81.578,45.347c-8.792-.983-15.791-2.576-21.228-5.062A70.955,70.955,0,0,1,72.492,36.52a37.193,37.193,0,0,1,8.647-.852,18.06,18.06,0,0,1,7.23,1.463c3.974,1.807,5.926,5.8,6.8,9.936.028.208.131.893.164,1.1.081.4.074,1.13.134,1.54.557,15.945-13.589,39.72-29.5,44.04A21.9,21.9,0,0,1,50.882,92.5a15.726,15.726,0,0,1-7.218-8.4,10.8,10.8,0,0,1-.124-7.89l-.612.876c-2.992,4.969-1.251,11.5,1.872,16.031,5.132,7.174,15.394,9.676,23.777,8.412,21.848-3.465,40.913-30.683,40.983-52.124-.029-.775-.039-1.894-.12-2.654" transform="translate(-617.883 2701.132)"/>
+ </g>
+</svg>
diff --git a/services/app/templates/_page.html.twig b/services/app/templates/_page.html.twig
index d2072ea..700027d 100644
--- a/services/app/templates/_page.html.twig
+++ b/services/app/templates/_page.html.twig
@@ -4,6 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ page_title }} | {{ site_name }}</title>
<link rel="stylesheet" href="{{ base_path() }}/assets/index.css">
+ <link rel="icon" type="image/svg+xml" href="{{ base_path() }}/assets/favicon.svg">
<script type="module" src="{{ base_path() }}/assets/index.js"></script>
</head>
<body>