Spaces:
Running
Running
Add OpenCS2 favicon set (32/192/512 PNG, transparent corners)
Browse files- Process favicon.png: corner-floodfill the pure-black bg to alpha (interior
dark navy preserved), trim, render at 32/192/512 with Lanczos, oxipng -o max
- Total assets: 1.7K + 25K + 179K (vs 1MB original)
- Layout head: rel=icon for 32/192/512 + apple-touch-icon at 192
- Drop the old emoji-based favicon.svg (and src/lib/assets/)
- src/lib/assets/favicon.svg +0 -5
- src/routes/+layout.svelte +4 -3
- static/favicon-192.png +3 -0
- static/favicon-32.png +3 -0
- static/favicon-512.png +3 -0
src/lib/assets/favicon.svg
DELETED
src/routes/+layout.svelte
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
<script lang="ts">
|
| 2 |
import { page } from '$app/state';
|
| 3 |
import './layout.css';
|
| 4 |
-
import favicon from '$lib/assets/favicon.svg';
|
| 5 |
import { site } from '$lib/site';
|
| 6 |
import { ModeWatcher } from 'mode-watcher';
|
| 7 |
import { Toaster } from '$lib/components/ui/sonner';
|
|
@@ -17,8 +16,10 @@
|
|
| 17 |
|
| 18 |
<svelte:head>
|
| 19 |
<title>{site.name}</title>
|
| 20 |
-
<link rel="icon" type="image/
|
| 21 |
-
<link rel="
|
|
|
|
|
|
|
| 22 |
<link rel="canonical" href={canonicalUrl} />
|
| 23 |
<link rel="author" href={site.websiteUrl} />
|
| 24 |
<link rel="me" href={site.githubUrl} />
|
|
|
|
| 1 |
<script lang="ts">
|
| 2 |
import { page } from '$app/state';
|
| 3 |
import './layout.css';
|
|
|
|
| 4 |
import { site } from '$lib/site';
|
| 5 |
import { ModeWatcher } from 'mode-watcher';
|
| 6 |
import { Toaster } from '$lib/components/ui/sonner';
|
|
|
|
| 16 |
|
| 17 |
<svelte:head>
|
| 18 |
<title>{site.name}</title>
|
| 19 |
+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png" />
|
| 20 |
+
<link rel="icon" type="image/png" sizes="192x192" href="/favicon-192.png" />
|
| 21 |
+
<link rel="icon" type="image/png" sizes="512x512" href="/favicon-512.png" />
|
| 22 |
+
<link rel="apple-touch-icon" sizes="192x192" href="/favicon-192.png" />
|
| 23 |
<link rel="canonical" href={canonicalUrl} />
|
| 24 |
<link rel="author" href={site.websiteUrl} />
|
| 25 |
<link rel="me" href={site.githubUrl} />
|
static/favicon-192.png
ADDED
|
|
Git LFS Details
|
static/favicon-32.png
ADDED
|
|
Git LFS Details
|
static/favicon-512.png
ADDED
|
|
Git LFS Details
|