Skip to content

The only tool you need to know what is happening and how to fix it.

feat: favicon updated (#246)

narrow-adventure3baae4f100ed
diff --git a/docs/public/apple-touch-icon.png b/docs/public/apple-touch-icon.png
new file mode 100644
index 00000000..86f3149a
Binary files /dev/null and b/docs/public/apple-touch-icon.png differ
diff --git a/docs/public/favicon.ico b/docs/public/favicon.ico
index b2ee5c7a..2a55dd16 100644
Binary files a/docs/public/favicon.ico and b/docs/public/favicon.ico differ
diff --git a/docs/public/favicon.svg b/docs/public/favicon.svg
new file mode 100644
index 00000000..7cb1d6ba
--- /dev/null
+++ b/docs/public/favicon.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
+ <rect width="64" height="64" rx="14" fill="#0B0E14"/>
+ <g transform="translate(6 6) scale(0.84)" stroke="#ffffff" stroke-width="5" stroke-linecap="round" fill="none">
+ <path d="M31.0001 5.16663C45.2678 5.16663 56.8334 16.7322 56.8334 31C56.8334 35.7042 55.5754 40.1191 53.3769 43.9166M12.9168 12.5524C10.4596 14.9548 8.50808 17.8246 7.17709 20.9928C5.8461 24.161 5.16257 27.5635 5.16677 31C5.16677 45.2677 16.7324 56.8333 31.0001 56.8333C35.7044 56.8333 40.1193 55.5752 43.9168 53.3768"/>
+ <path d="M12.9167 31C12.9167 34.8414 14.1154 38.4038 16.1588 41.3333M31.0001 12.9166C33.7116 12.9178 36.3881 13.5287 38.8315 14.7042C41.2749 15.8796 43.4228 17.5895 45.116 19.7073C46.8093 21.8251 48.0046 24.2965 48.6136 26.9387C49.2225 29.5809 49.2295 32.3263 48.634 34.9715C48.0385 37.6168 46.8557 40.0943 45.1733 42.2207C43.4908 44.347 41.3517 46.0678 38.9142 47.2557C36.4768 48.4435 33.8034 49.0681 31.092 49.083C28.3806 49.098 25.7005 48.503 23.2501 47.3421"/>
+ <path d="M31 41.3333C33.7406 41.3333 36.3689 40.2446 38.3068 38.3067C40.2446 36.3689 41.3333 33.7405 41.3333 31C41.3333 28.2594 40.2446 25.6311 38.3068 23.6932C36.3689 21.7553 33.7406 20.6666 31 20.6666"/>
+ </g>
+</svg>
diff --git a/docs/theme.config.jsx b/docs/theme.config.jsx
index cfd481e8..892d2d6f 100644
--- a/docs/theme.config.jsx
+++ b/docs/theme.config.jsx
@@ -66,6 +66,9 @@ export default {
/>
<meta name="theme-color" content="#05070c" />
<meta name="color-scheme" content="dark" />
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="alternate icon" href="/favicon.ico" sizes="any" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
</>
),
// Electric Indigo (#7c5cff) ≈ hsl(253, 100%, 68%)
diff --git a/frontend/src/app.html b/frontend/src/app.html
index f06a745e..337568e5 100644
--- a/frontend/src/app.html
+++ b/frontend/src/app.html
@@ -3,6 +3,10 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>Traceway</title>
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="alternate icon" href="/favicon.ico" sizes="any" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<script>
// Default to dark; honor stored preference if the user has set one.
try {
diff --git a/frontend/src/lib/assets/favicon.svg b/frontend/src/lib/assets/favicon.svg
deleted file mode 100644
index cc5dc66a..00000000
--- a/frontend/src/lib/assets/favicon.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="107" height="128" viewBox="0 0 107 128"><title>svelte-logo</title><path d="M94.157 22.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282 29.608A29.92 29.92 0 0 0 8.764 49.65a31.5 31.5 0 0 0 3.108 20.231 30 30 0 0 0-4.477 11.183 31.9 31.9 0 0 0 5.448 24.116c10.402 14.887 30.942 19.297 45.791 9.835l26.083-16.624A29.92 29.92 0 0 0 98.235 78.35a31.53 31.53 0 0 0-3.105-20.232 30 30 0 0 0 4.474-11.182 31.88 31.88 0 0 0-5.447-24.116" style="fill:#ff3e00"/><path d="M45.817 106.582a20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.503 18 18 0 0 1 .624-2.435l.49-1.498 1.337.981a33.6 33.6 0 0 0 10.203 5.098l.97.294-.09.968a5.85 5.85 0 0 0 1.052 3.878 6.24 6.24 0 0 0 6.695 2.485 5.8 5.8 0 0 0 1.603-.704L69.27 76.28a5.43 5.43 0 0 0 2.45-3.631 5.8 5.8 0 0 0-.987-4.371 6.24 6.24 0 0 0-6.698-2.487 5.7 5.7 0 0 0-1.6.704l-9.953 6.345a19 19 0 0 1-5.296 2.326 20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.502 17.99 17.99 0 0 1 8.13-12.052l26.081-16.623a19 19 0 0 1 5.3-2.329 20.72 20.72 0 0 1 22.237 8.243 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-.624 2.435l-.49 1.498-1.337-.98a33.6 33.6 0 0 0-10.203-5.1l-.97-.294.09-.968a5.86 5.86 0 0 0-1.052-3.878 6.24 6.24 0 0 0-6.696-2.485 5.8 5.8 0 0 0-1.602.704L37.73 51.72a5.42 5.42 0 0 0-2.449 3.63 5.79 5.79 0 0 0 .986 4.372 6.24 6.24 0 0 0 6.698 2.486 5.8 5.8 0 0 0 1.602-.704l9.952-6.342a19 19 0 0 1 5.295-2.328 20.72 20.72 0 0 1 22.237 8.242 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-8.13 12.053l-26.081 16.622a19 19 0 0 1-5.3 2.328" style="fill:#fff"/></svg>
\ No newline at end of file
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index 3baff413..e93e9f5b 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -133,7 +133,7 @@
}
</script>
-<svelte:head><link rel="icon" href="/favicon.ico" /></svelte:head>
+<svelte:head><title>Traceway</title></svelte:head>
<Tooltip.Provider delayDuration={0}>
<!-- This is not ideal, but because our layout is a top level route it can end up showing sidebar on the login page (after the login before the transition). -->
diff --git a/frontend/static/apple-touch-icon.png b/frontend/static/apple-touch-icon.png
new file mode 100644
index 00000000..86f3149a
Binary files /dev/null and b/frontend/static/apple-touch-icon.png differ
diff --git a/frontend/static/favicon.ico b/frontend/static/favicon.ico
index b2ee5c7a..2a55dd16 100644
Binary files a/frontend/static/favicon.ico and b/frontend/static/favicon.ico differ
diff --git a/frontend/static/favicon.svg b/frontend/static/favicon.svg
new file mode 100644
index 00000000..7cb1d6ba
--- /dev/null
+++ b/frontend/static/favicon.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
+ <rect width="64" height="64" rx="14" fill="#0B0E14"/>
+ <g transform="translate(6 6) scale(0.84)" stroke="#ffffff" stroke-width="5" stroke-linecap="round" fill="none">
+ <path d="M31.0001 5.16663C45.2678 5.16663 56.8334 16.7322 56.8334 31C56.8334 35.7042 55.5754 40.1191 53.3769 43.9166M12.9168 12.5524C10.4596 14.9548 8.50808 17.8246 7.17709 20.9928C5.8461 24.161 5.16257 27.5635 5.16677 31C5.16677 45.2677 16.7324 56.8333 31.0001 56.8333C35.7044 56.8333 40.1193 55.5752 43.9168 53.3768"/>
+ <path d="M12.9167 31C12.9167 34.8414 14.1154 38.4038 16.1588 41.3333M31.0001 12.9166C33.7116 12.9178 36.3881 13.5287 38.8315 14.7042C41.2749 15.8796 43.4228 17.5895 45.116 19.7073C46.8093 21.8251 48.0046 24.2965 48.6136 26.9387C49.2225 29.5809 49.2295 32.3263 48.634 34.9715C48.0385 37.6168 46.8557 40.0943 45.1733 42.2207C43.4908 44.347 41.3517 46.0678 38.9142 47.2557C36.4768 48.4435 33.8034 49.0681 31.092 49.083C28.3806 49.098 25.7005 48.503 23.2501 47.3421"/>
+ <path d="M31 41.3333C33.7406 41.3333 36.3689 40.2446 38.3068 38.3067C40.2446 36.3689 41.3333 33.7405 41.3333 31C41.3333 28.2594 40.2446 25.6311 38.3068 23.6932C36.3689 21.7553 33.7406 20.6666 31 20.6666"/>
+ </g>
+</svg>
diff --git a/testing/shop/backend/db.go b/testing/shop/backend/db.go
index 780d31bd..8b31452b 100644
--- a/testing/shop/backend/db.go
+++ b/testing/shop/backend/db.go
@@ -76,25 +76,26 @@ func seed() {
priceCents int
stock int
categoryId int
+ img string
}{
- {"Classic Tee", "Soft combed-cotton t-shirt", 1999, 120, 1},
- {"Denim Jacket", "Vintage wash denim jacket", 8999, 30, 1},
- {"Running Sneakers", "Lightweight everyday runners", 6499, 45, 1},
- {"Wireless Earbuds", "Noise-cancelling earbuds", 12999, 60, 2},
- {"Mechanical Keyboard", "Hot-swappable RGB keyboard", 10999, 25, 2},
- {"4K Monitor", "27-inch UHD display", 29999, 15, 2},
- {"USB-C Hub", "7-in-1 aluminium hub", 3999, 80, 2},
- {"Scented Candle", "Cedar and sage soy candle", 1499, 200, 3},
- {"Ceramic Mug", "Hand-glazed 12oz mug", 1299, 150, 3},
- {"Throw Blanket", "Chunky knit wool blend", 4999, 40, 3},
- {"Go in Practice", "Pragmatic patterns for Go services", 3499, 70, 4},
- {"The Pragmatic Programmer", "A classic on software craft", 3999, 55, 4},
+ {"Classic Tee", "Soft combed-cotton t-shirt", 1999, 120, 1, "1521572163474-6864f9cf17ab"},
+ {"Denim Jacket", "Vintage wash denim jacket", 8999, 30, 1, "1543076447-215ad9ba6923"},
+ {"Running Sneakers", "Lightweight everyday runners", 6499, 45, 1, "1542291026-7eec264c27ff"},
+ {"Wireless Earbuds", "Noise-cancelling earbuds", 12999, 60, 2, "1572569511254-d8f925fe2cbb"},
+ {"Mechanical Keyboard", "Hot-swappable RGB keyboard", 10999, 25, 2, "1618384887929-16ec33fab9ef"},
+ {"4K Monitor", "27-inch UHD display", 29999, 15, 2, "1593640408182-31c70c8268f5"},
+ {"USB-C Hub", "7-in-1 aluminium hub", 3999, 80, 2, "1588872657578-7efd1f1555ed"},
+ {"Scented Candle", "Cedar and sage soy candle", 1499, 200, 3, "1602874801007-bd458bb1b8b6"},
+ {"Ceramic Mug", "Hand-glazed 12oz mug", 1299, 150, 3, "1514228742587-6b1558fcca3d"},
+ {"Throw Blanket", "Chunky knit wool blend", 4999, 40, 3, "1606744824163-985d376605aa"},
+ {"Go in Practice", "Pragmatic patterns for Go services", 3499, 70, 4, "1532012197267-da84d127e765"},
+ {"The Pragmatic Programmer", "A classic on software craft", 3999, 55, 4, "1512820790803-83ca734da794"},
}
for _, p := range products {
+ imageURL := "https://images.unsplash.com/photo-" + p.img + "?w=800&h=600&fit=crop&q=80&auto=format"
mustExec(`INSERT INTO products (name, description, price_cents, image_url, stock, category_id) VALUES (?, ?, ?, ?, ?, ?)`,
- p.name, p.desc, p.priceCents, "", p.stock, p.categoryId)
+ p.name, p.desc, p.priceCents, imageURL, p.stock, p.categoryId)
}
- mustExec(`UPDATE products SET image_url = 'https://picsum.photos/seed/twshop' || id || '/320/200'`)
bodies := []string{
"Exactly as described, very happy.",
diff --git a/website/app/favicon.ico b/website/app/favicon.ico
deleted file mode 100644
index b2ee5c7a..00000000
Binary files a/website/app/favicon.ico and /dev/null differ
diff --git a/website/app/layout.tsx b/website/app/layout.tsx
index 0d3ae0c7..0345f066 100644
--- a/website/app/layout.tsx
+++ b/website/app/layout.tsx
@@ -37,7 +37,11 @@ export const metadata: Metadata = {
description:
"Traceway is an open-source APM built on OpenTelemetry. Complete observability: logs, traces, metrics, session replay, and exceptions, all connected. MIT licensed. Self-host free or run on Traceway Cloud.",
icons: {
- icon: "/favicon.ico",
+ icon: [
+ { url: "/favicon.svg", type: "image/svg+xml" },
+ { url: "/favicon.ico", sizes: "any" },
+ ],
+ apple: "/apple-touch-icon.png",
},
};
diff --git a/website/public/apple-touch-icon.png b/website/public/apple-touch-icon.png
new file mode 100644
index 00000000..86f3149a
Binary files /dev/null and b/website/public/apple-touch-icon.png differ
diff --git a/website/public/favicon.ico b/website/public/favicon.ico
index b2ee5c7a..2a55dd16 100644
Binary files a/website/public/favicon.ico and b/website/public/favicon.ico differ
diff --git a/website/public/favicon.svg b/website/public/favicon.svg
new file mode 100644
index 00000000..7cb1d6ba
--- /dev/null
+++ b/website/public/favicon.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
+ <rect width="64" height="64" rx="14" fill="#0B0E14"/>
+ <g transform="translate(6 6) scale(0.84)" stroke="#ffffff" stroke-width="5" stroke-linecap="round" fill="none">
+ <path d="M31.0001 5.16663C45.2678 5.16663 56.8334 16.7322 56.8334 31C56.8334 35.7042 55.5754 40.1191 53.3769 43.9166M12.9168 12.5524C10.4596 14.9548 8.50808 17.8246 7.17709 20.9928C5.8461 24.161 5.16257 27.5635 5.16677 31C5.16677 45.2677 16.7324 56.8333 31.0001 56.8333C35.7044 56.8333 40.1193 55.5752 43.9168 53.3768"/>
+ <path d="M12.9167 31C12.9167 34.8414 14.1154 38.4038 16.1588 41.3333M31.0001 12.9166C33.7116 12.9178 36.3881 13.5287 38.8315 14.7042C41.2749 15.8796 43.4228 17.5895 45.116 19.7073C46.8093 21.8251 48.0046 24.2965 48.6136 26.9387C49.2225 29.5809 49.2295 32.3263 48.634 34.9715C48.0385 37.6168 46.8557 40.0943 45.1733 42.2207C43.4908 44.347 41.3517 46.0678 38.9142 47.2557C36.4768 48.4435 33.8034 49.0681 31.092 49.083C28.3806 49.098 25.7005 48.503 23.2501 47.3421"/>
+ <path d="M31 41.3333C33.7406 41.3333 36.3689 40.2446 38.3068 38.3067C40.2446 36.3689 41.3333 33.7405 41.3333 31C41.3333 28.2594 40.2446 25.6311 38.3068 23.6932C36.3689 21.7553 33.7406 20.6666 31 20.6666"/>
+ </g>
+</svg>
diff --git a/website/public/icon-192.png b/website/public/icon-192.png
new file mode 100644
index 00000000..cd017120
Binary files /dev/null and b/website/public/icon-192.png differ
diff --git a/website/public/icon-512.png b/website/public/icon-512.png
new file mode 100644
index 00000000..b5c0a0c3
Binary files /dev/null and b/website/public/icon-512.png differ