blanchon commited on
Commit
aaa744c
·
1 Parent(s): 85d9997

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 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/svg+xml" href={favicon} />
21
- <link rel="apple-touch-icon" href={favicon} />
 
 
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

  • SHA256: 87cc0f2e73a324eaa949b5c3036bd8724d88d7558a52bea836266bf18abb7ddb
  • Pointer size: 130 Bytes
  • Size of remote file: 24.5 kB
static/favicon-32.png ADDED

Git LFS Details

  • SHA256: f08e48aaa00b310d1c6c1f2cb6370c309caaf640fbb1e1f8fe193b7d7d2384cf
  • Pointer size: 129 Bytes
  • Size of remote file: 1.69 kB
static/favicon-512.png ADDED

Git LFS Details

  • SHA256: 52e6a4eaf18ba988ec90864fc489c3cc8e785d73931e67b9ac22e3065f85a30d
  • Pointer size: 131 Bytes
  • Size of remote file: 179 kB