Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat: upgrade Alook logo (#451)

Gener1bebc2c7fce0
diff --git a/assets/alook.svg b/assets/alook.svg
index be23ef37e..805e2e8af 100644
--- a/assets/alook.svg
+++ b/assets/alook.svg
@@ -1,30 +1,48 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" fill="none">
-<g clip-path="url(#clip0_45_110)">
-<path d="M-26.5996 311.221L-39.86 185.057C-55.9935 31.5572 22.3761 -72.3481 148.875 -102.651C194.472 -113.822 206.766 -178.893 309.8 -189.722C482.225 -207.845 613.345 -72.8086 633.015 114.335L646.275 240.499C658.431 356.149 559.924 430.282 328.623 454.592C97.3226 478.903 -14.4443 426.871 -26.5996 311.221Z" fill="#FE4365" />
-<path d="M210.59 140.663C225.106 139.137 234.746 117.66 232.122 92.6914C229.498 67.7233 215.603 48.7195 201.086 50.2452C186.57 51.771 176.93 73.2485 179.554 98.2166C182.178 123.185 196.073 142.189 210.59 140.663Z" fill="white" />
-<path d="M378.808 122.982C393.325 121.457 402.965 99.979 400.341 75.0109C397.717 50.0428 383.822 31.039 369.305 32.5647C354.789 34.0904 345.148 55.5679 347.773 80.536C350.397 105.504 364.292 124.508 378.808 122.982Z" fill="white" />
-<path d="M262.043 185.215C289.486 203.59 314.719 200.938 337.742 177.259" stroke="white" stroke-width="27" stroke-linecap="round" />
-<path d="M523.747 365.154L550.571 58.5595C556.271 -6.59189 611.194 -38.4735 678.261 -32.6059L1015.52 -3.09997C1082.58 2.76768 1131.14 43.7023 1125.44 108.854L1098.61 415.448C1089.89 515.091 998.635 565.034 797.433 547.431C596.23 529.828 515.03 464.797 523.747 365.154Z" fill="#8A5A9E" />
-<path d="M746.769 191.001C764.761 192.575 780.621 179.267 782.195 161.276C783.769 143.285 770.461 127.424 752.469 125.85C734.478 124.276 718.618 137.585 717.044 155.576C715.47 173.567 728.778 189.427 746.769 191.001Z" fill="white" />
-<path d="M900.067 204.413C918.058 205.987 933.918 192.679 935.492 174.688C937.066 156.697 923.758 140.836 905.767 139.262C887.776 137.688 871.915 150.997 870.341 168.988C868.767 186.979 882.076 202.839 900.067 204.413Z" fill="white" />
-<path d="M752.159 239.745C793.965 276.871 838.677 280.783 886.294 251.48" stroke="white" stroke-width="27" stroke-linecap="round" />
-<path d="M-78.8153 606.38L-85.9305 504.628C-93.0456 402.877 -38.944 347.969 34.4879 325.793C26.9457 266.675 72.4138 234.525 120.811 268.632C135.789 214.756 212.103 209.42 232.856 262.501C282.7 219.82 339.34 249.943 336.588 308.076C405.845 323.683 449.748 366.625 456.744 466.681L463.86 568.432C470.382 661.705 389.146 718.51 202.602 731.554C16.0575 744.599 -72.2931 699.652 -78.8153 606.38Z" fill="#45ADA8" />
-<path d="M81.2836 458.853C101.998 430.138 124.609 428.557 149.118 454.109M216.952 449.366C237.666 420.651 260.278 419.07 284.787 444.622" stroke="black" stroke-width="27.2" stroke-linecap="round" />
-<path d="M127.475 510.156C169.1 536.783 208.67 534.016 246.185 501.854" stroke="black" stroke-width="25.5" stroke-linecap="round" />
-<path d="M-109.988 949.35L-99.7558 851.999C-85.7721 718.952 24.7151 635.419 172.106 637.787C331.026 639.726 436.163 747.563 419.451 906.57L409.219 1003.92C399.839 1093.16 313.597 1133.31 135.12 1114.55C-43.3572 1095.79 -119.367 1038.59 -109.988 949.35Z" fill="#6A8CAF" />
-<path d="M96.9932 852.993C113.123 854.688 127.573 842.987 129.268 826.857C130.963 810.728 119.262 796.278 103.132 794.582C87.0027 792.887 72.5527 804.588 70.8574 820.718C69.1621 836.848 80.8635 851.298 96.9932 852.993Z" fill="black" />
-<path d="M197.414 834.02C216.774 857.927 238.407 860.201 262.315 840.841" stroke="black" stroke-width="25.6" stroke-linecap="round" />
-<path d="M88.7148 884.932C130.907 930.924 177.419 935.813 228.252 899.598C219.15 944.573 193.506 964.844 151.321 960.41C109.135 955.977 88.2666 930.817 88.7148 884.932Z" fill="black" />
-<path d="M289.536 851.737L294.666 704.827C300.908 526.086 407.593 419.494 557.636 405.122C611.76 399.657 636.361 326.972 756.338 331.161C957.116 338.173 1085.8 514.271 1078.19 732.188L1073.06 879.099C1068.36 1013.77 943.365 1082.95 674.03 1073.54C404.694 1064.14 284.833 986.405 289.536 851.737Z" fill="#FF9915" />
-<path d="M606 655.4C634.498 655.4 657.6 632.835 657.6 605C657.6 577.165 634.498 554.6 606 554.6C577.502 554.6 554.4 577.165 554.4 605C554.4 632.835 577.502 655.4 606 655.4Z" fill="white" />
-<path d="M622.8 639.08C636.32 639.08 647.28 628.12 647.28 614.6C647.28 601.08 636.32 590.12 622.8 590.12C609.28 590.12 598.32 601.08 598.32 614.6C598.32 628.12 609.28 639.08 622.8 639.08Z" fill="black" />
-<path d="M798 655.4C826.498 655.4 849.6 632.835 849.6 605C849.6 577.165 826.498 554.6 798 554.6C769.502 554.6 746.4 577.165 746.4 605C746.4 632.835 769.502 655.4 798 655.4Z" fill="white" />
-<path d="M814.8 639.08C828.32 639.08 839.28 628.12 839.28 614.6C839.28 601.08 828.32 590.12 814.8 590.12C801.28 590.12 790.32 601.08 790.32 614.6C790.32 628.12 801.28 639.08 814.8 639.08Z" fill="black" />
-<path d="M630 725C686 736.2 734 726.6 774 696.2" stroke="black" stroke-width="36" stroke-linecap="round" />
-</g>
-<defs>
-<clipPath id="clip0_45_110">
-<rect width="1024" height="1024" rx="236" fill="white" />
-</clipPath>
-</defs>
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" fill="none" data-state="default">
+ <g clip-path="url(#alook-logo-clip)">
+ <g data-face="red">
+ <path d="M-26.5996 311.221L-39.86 185.057C-55.9935 31.5572 22.3761 -72.3481 148.875 -102.651C194.472 -113.822 206.766 -178.893 309.8 -189.722C482.225 -207.845 613.345 -72.8086 633.015 114.335L646.275 240.499C658.431 356.149 559.924 430.282 328.623 454.592C97.3226 478.903 -14.4443 426.871 -26.5996 311.221Z" fill="#FE4365"/>
+ <g data-part="expression" opacity="0">
+ <path d="M210.59 140.663C225.106 139.137 234.746 117.66 232.122 92.6914C229.498 67.7233 215.603 48.7195 201.086 50.2452C186.57 51.771 176.93 73.2485 179.554 98.2166C182.178 123.185 196.073 142.189 210.59 140.663Z" fill="white"/>
+ <path d="M378.808 122.982C393.325 121.457 402.965 99.979 400.341 75.0109C397.717 50.0428 383.822 31.039 369.305 32.5647C354.789 34.0904 345.148 55.5679 347.773 80.536C350.397 105.504 364.292 124.508 378.808 122.982Z" fill="white"/>
+ <path d="M328.063 167.848C333.26 162.502 341.807 162.382 347.153 167.579C352.499 172.777 352.619 181.324 347.421 186.67C334.382 200.08 319.562 208.689 302.962 210.434C286.361 212.178 270.075 206.839 254.533 196.433C248.337 192.284 246.678 183.899 250.826 177.704C254.974 171.509 263.36 169.849 269.555 173.997C281.456 181.966 291.507 184.489 300.139 183.581C308.771 182.674 318.079 178.117 328.063 167.848Z" fill="white"/>
+ </g>
+ </g>
+ <g data-face="purple">
+ <path d="M523.747 365.154L550.571 58.5595C556.271 -6.59189 611.194 -38.4735 678.261 -32.6059L1015.52 -3.09997C1082.58 2.76768 1131.14 43.7023 1125.44 108.854L1098.61 415.448C1089.89 515.091 998.635 565.034 797.433 547.431C596.23 529.828 515.03 464.797 523.747 365.154Z" fill="#8A5A9E"/>
+ <g data-part="expression" opacity="0">
+ <path d="M746.769 191.001C764.76 192.575 780.621 179.267 782.195 161.276C783.769 143.285 770.46 127.424 752.469 125.85C734.478 124.276 718.618 137.585 717.044 155.576C715.47 173.567 728.778 189.427 746.769 191.001Z" fill="white"/>
+ <path d="M900.067 204.413C918.058 205.987 933.918 192.679 935.492 174.688C937.066 156.697 923.758 140.836 905.767 139.262C887.776 137.688 871.915 150.997 870.341 168.988C868.767 186.979 882.076 202.839 900.067 204.413Z" fill="white"/>
+ <path d="M879.218 239.983C885.568 236.076 893.884 238.055 897.791 244.405C901.699 250.755 899.719 259.07 893.37 262.978C867.707 278.77 841.761 286.237 815.871 283.972C789.981 281.707 765.725 269.847 743.194 249.839C737.62 244.888 737.114 236.355 742.065 230.78C747.016 225.206 755.549 224.7 761.124 229.651C780.399 246.769 799.403 255.428 818.224 257.075C837.045 258.721 857.264 253.493 879.218 239.983Z" fill="white"/>
+ </g>
+ </g>
+ <g data-face="teal">
+ <path d="M-78.815 606.38L-85.9302 504.628C-93.0454 402.877 -38.9437 347.969 34.4882 325.793C26.946 266.675 72.4141 234.525 120.811 268.632C135.789 214.756 212.103 209.42 232.856 262.501C282.701 219.82 339.34 249.943 336.588 308.076C405.846 323.683 449.748 366.625 456.745 466.681L463.86 568.432C470.382 661.705 389.147 718.51 202.602 731.554C16.0577 744.599 -72.2928 699.652 -78.815 606.38Z" fill="#45ADA8"/>
+ <g data-part="expression" opacity="0">
+ <path d="M112.83 422.564C129.98 421.365 145.457 430.644 158.934 444.695C164.133 450.116 163.953 458.725 158.532 463.924C153.111 469.123 144.502 468.944 139.303 463.523C128.271 452.021 120.188 449.315 114.727 449.697C109.266 450.079 101.638 453.884 92.3142 466.809C87.92 472.9 79.4196 474.276 73.3281 469.882C67.2366 465.488 65.8599 456.988 70.254 450.896C81.644 435.107 95.6792 423.763 112.83 422.564ZM248.498 413.077C265.649 411.878 281.126 421.157 294.603 435.208C299.802 440.629 299.621 449.238 294.201 454.437C288.78 459.636 280.171 459.457 274.972 454.036C263.94 442.534 255.857 439.828 250.396 440.21C244.935 440.592 237.307 444.397 227.983 457.322C223.589 463.414 215.088 464.789 208.997 460.395C202.905 456.001 201.529 447.501 205.923 441.409C217.313 425.62 231.348 414.276 248.498 413.077Z" fill="black"/>
+ <path d="M237.886 492.175C243.232 487.591 251.282 488.21 255.865 493.556C260.449 498.901 259.83 506.951 254.484 511.535C234.167 528.953 212.389 539.153 189.261 540.77C166.134 542.387 143.149 535.318 120.604 520.896C114.673 517.102 112.94 509.216 116.734 503.285C120.529 497.353 128.415 495.62 134.346 499.415C153.427 511.621 171.04 516.482 187.483 515.332C203.925 514.182 220.69 506.917 237.886 492.175Z" fill="black"/>
+ </g>
+ </g>
+ <g data-face="blue">
+ <path d="M-109.988 949.35L-99.7556 851.999C-85.7718 718.952 24.7154 635.419 172.106 637.787C331.026 639.726 436.163 747.563 419.451 906.57L409.219 1003.92C399.839 1093.16 313.597 1133.31 135.12 1114.55C-43.357 1095.79 -119.367 1038.59 -109.988 949.35Z" fill="#6A8CAF"/>
+ <g data-part="expression" opacity="0">
+ <path d="M96.9934 852.993C113.123 854.688 127.573 842.987 129.268 826.857C130.964 810.728 119.262 796.278 103.133 794.582C87.0029 792.887 72.5529 804.588 70.8576 820.718C69.1623 836.848 80.8637 851.298 96.9934 852.993Z" fill="black"/>
+ <path d="M254.259 830.894C259.753 826.445 267.814 827.292 272.263 832.786C276.711 838.28 275.864 846.339 270.371 850.788C256.884 861.71 242.205 868.002 226.821 866.385C211.437 864.768 198.388 855.562 187.467 842.075C183.018 836.581 183.865 828.521 189.359 824.072C194.853 819.623 202.913 820.471 207.361 825.964C215.8 836.385 223.247 840.269 229.497 840.926C235.747 841.582 243.839 839.332 254.259 830.894Z" fill="black"/>
+ <path d="M88.7148 884.932C130.907 930.924 177.419 935.813 228.252 899.598C219.15 944.573 193.506 964.844 151.321 960.41C109.135 955.977 88.2666 930.817 88.7148 884.932Z" fill="black"/>
+ </g>
+ </g>
+ <g data-face="orange" data-motion-layer="foreground">
+ <path d="M73.3744 799.986L80.287 602.034C88.6974 361.193 232.448 217.568 434.621 198.202C507.549 190.84 540.698 92.9006 702.358 98.5459C972.892 107.993 1146.28 345.273 1136.03 638.902L1129.12 836.853C1122.78 1018.31 954.364 1111.52 591.453 1098.85C228.541 1086.18 67.0378 981.442 73.3744 799.986Z" fill="#FF9915"/>
+ <path d="M499.787 535.435C538.186 535.435 569.315 505.031 569.315 467.525C569.315 430.019 538.186 399.614 499.787 399.614C461.388 399.614 430.26 430.019 430.26 467.525C430.26 505.031 461.388 535.435 499.787 535.435Z" fill="white"/>
+ <path d="M522.424 513.445C540.641 513.445 555.409 498.677 555.409 480.46C555.409 462.243 540.641 447.475 522.424 447.475C504.207 447.475 489.439 462.243 489.439 480.46C489.439 498.677 504.207 513.445 522.424 513.445Z" fill="black"/>
+ <path d="M758.494 535.435C796.893 535.435 828.021 505.031 828.021 467.525C828.021 430.019 796.893 399.614 758.494 399.614C720.095 399.614 688.966 430.019 688.966 467.525C688.966 505.031 720.095 535.435 758.494 535.435Z" fill="white"/>
+ <path d="M781.131 513.445C799.348 513.445 814.116 498.677 814.116 480.46C814.116 462.243 799.348 447.475 781.131 447.475C762.914 447.475 748.146 462.243 748.146 480.46C748.146 498.677 762.914 513.445 781.131 513.445Z" fill="black"/>
+ <path d="M711.48 571.1C722.145 562.995 737.361 565.07 745.466 575.735C753.571 586.399 751.496 601.615 740.832 609.72C680.61 655.489 608.609 669.247 527.369 652.999C514.235 650.372 505.716 637.594 508.343 624.459C510.971 611.325 523.748 602.806 536.883 605.433C606.555 619.368 663.908 607.255 711.48 571.1Z" fill="black"/>
+ </g>
+ </g>
+ <defs>
+ <clipPath id="alook-logo-clip">
+ <rect width="1024" height="1024" rx="236" fill="white"/>
+ </clipPath>
+ </defs>
</svg>
diff --git a/package.json b/package.json
index 9390d98c6..c61d871c9 100644
--- a/package.json
+++ b/package.json
@@ -40,6 +40,7 @@
"db:migrate:remote": "pnpm --filter @alook/web exec wrangler d1 migrations apply alook-app --remote",
"bump": "node scripts/bump-version.mjs",
"typegrep:ws": "node scripts/lint-ws-events.mjs",
+ "logo:generate": "node scripts/generate-logo-assets.mjs",
"prepare": "simple-git-hooks"
},
"simple-git-hooks": {
diff --git a/scripts/ci/logo-assets.test.ts b/scripts/ci/logo-assets.test.ts
new file mode 100644
index 000000000..bf0d762ca
--- /dev/null
+++ b/scripts/ci/logo-assets.test.ts
@@ -0,0 +1,111 @@
+import { createRequire } from "node:module"
+import { readFile } from "node:fs/promises"
+import { resolve } from "node:path"
+import { describe, expect, it } from "vitest"
+import {
+ assertSvgContract,
+ canonicalizeIcns,
+ desktopRasterAssets,
+ fullBleedSvg,
+ iosRasterAssets,
+ preservedAssets,
+} from "../generate-logo-assets.mjs"
+
+const repoRoot = resolve(import.meta.dirname, "../..")
+const requireFromCli = createRequire(resolve(repoRoot, "src/cli/package.json"))
+const sharp = requireFromCli("sharp")
+
+async function alphaBounds(path: string) {
+ const { data, info } = await sharp(path).ensureAlpha().raw().toBuffer({ resolveWithObject: true })
+ let left = info.width
+ let top = info.height
+ let right = 0
+ let bottom = 0
+ let opaque = true
+ for (let y = 0; y < info.height; y += 1) {
+ for (let x = 0; x < info.width; x += 1) {
+ const alpha = data[(y * info.width + x) * info.channels + 3]
+ if (alpha !== 255) opaque = false
+ if (alpha === 0) continue
+ left = Math.min(left, x)
+ top = Math.min(top, y)
+ right = Math.max(right, x + 1)
+ bottom = Math.max(bottom, y + 1)
+ }
+ }
+ return { width: info.width, height: info.height, bounds: [left, top, right, bottom], opaque }
+}
+
+describe("logo asset generator", () => {
+ it("locks the canonical structured transparent SVG", async () => {
+ const canonical = await readFile(resolve(repoRoot, "assets/alook.svg"), "utf8")
+ const publicCopy = await readFile(resolve(repoRoot, "src/web/public/alook.svg"), "utf8")
+
+ expect(() => assertSvgContract(canonical)).not.toThrow()
+ expect(publicCopy).toBe(canonical)
+ expect(fullBleedSvg(canonical)).toContain("<g>")
+ expect(fullBleedSvg(canonical)).not.toContain('<g clip-path="url(#alook-logo-clip)">')
+ })
+
+ it("covers every approved platform family and protects the exceptions", () => {
+ expect(desktopRasterAssets).toHaveLength(17)
+ expect(iosRasterAssets).toHaveLength(18)
+ expect(preservedAssets).toEqual([
+ "src/web/src/app/favicon.ico",
+ "src/desktop/src-tauri/icons/tray-default.png",
+ "src/desktop/src-tauri/icons/tray-online.png",
+ "src/desktop/src-tauri/icons/tray-offline.png",
+ "assets/readme-banner.png",
+ ])
+ })
+
+ it("canonicalizes nondeterministic ICNS chunk order", () => {
+ const chunk = (type: string, payload: string) => {
+ const data = Buffer.from(payload)
+ const output = Buffer.alloc(8 + data.length)
+ output.write(type, 0, "ascii")
+ output.writeUInt32BE(output.length, 4)
+ data.copy(output, 8)
+ return output
+ }
+ const header = Buffer.alloc(8)
+ header.write("icns", 0, "ascii")
+ const unordered = Buffer.concat([header, chunk("zzzz", "second"), chunk("aaaa", "first")])
+ unordered.writeUInt32BE(unordered.length, 4)
+
+ const canonical = canonicalizeIcns(unordered)
+ expect(canonical.subarray(8, 12).toString("ascii")).toBe("aaaa")
+ expect(canonicalizeIcns(canonical)).toEqual(canonical)
+ })
+
+ it("preserves web, platform, and splash canvas contracts", async () => {
+ expect(await alphaBounds(resolve(repoRoot, "src/web/public/icon-192.png"))).toEqual({
+ width: 192,
+ height: 192,
+ bounds: [0, 0, 192, 192],
+ opaque: false,
+ })
+ expect(await alphaBounds(resolve(repoRoot, "src/web/public/apple-touch-icon.png"))).toEqual({
+ width: 180,
+ height: 180,
+ bounds: [0, 0, 180, 180],
+ opaque: true,
+ })
+ expect(await alphaBounds(resolve(repoRoot, "src/desktop/src-tauri/gen/android/app/src/main/res/drawable-mdpi/splash_icon.png"))).toEqual({
+ width: 108,
+ height: 108,
+ bounds: [26, 26, 82, 82],
+ opaque: false,
+ })
+ expect(await alphaBounds(resolve(repoRoot, "src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher.png"))).toMatchObject({
+ width: 48,
+ height: 48,
+ bounds: [4, 4, 44, 44],
+ })
+ expect(await alphaBounds(resolve(repoRoot, "src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png"))).toMatchObject({
+ width: 48,
+ height: 48,
+ bounds: [2, 2, 46, 46],
+ })
+ })
+})
diff --git a/scripts/generate-logo-assets.mjs b/scripts/generate-logo-assets.mjs
new file mode 100644
index 000000000..027e08249
--- /dev/null
+++ b/scripts/generate-logo-assets.mjs
@@ -0,0 +1,207 @@
+import { createHash } from "node:crypto"
+import { execFileSync } from "node:child_process"
+import {
+ copyFile,
+ mkdtemp,
+ readFile,
+ rm,
+ writeFile,
+} from "node:fs/promises"
+import { tmpdir } from "node:os"
+import { basename, dirname, join, resolve } from "node:path"
+import { createRequire } from "node:module"
+import { fileURLToPath, pathToFileURL } from "node:url"
+
+const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..")
+const requireFromCli = createRequire(pathToFileURL(resolve(repoRoot, "src/cli/package.json")))
+const sharp = requireFromCli("sharp")
+
+export const preservedAssets = [
+ "src/web/src/app/favicon.ico",
+ "src/desktop/src-tauri/icons/tray-default.png",
+ "src/desktop/src-tauri/icons/tray-online.png",
+ "src/desktop/src-tauri/icons/tray-offline.png",
+ "assets/readme-banner.png",
+]
+
+export const desktopRasterAssets = [
+ "32x32.png",
+ "64x64.png",
+ "128x128.png",
+ "icon.png",
+ "icon.icns",
+ "icon.ico",
+ "Square30x30Logo.png",
+ "Square44x44Logo.png",
+ "Square71x71Logo.png",
+ "Square89x89Logo.png",
+ "Square107x107Logo.png",
+ "Square142x142Logo.png",
+ "Square150x150Logo.png",
+ "Square284x284Logo.png",
+ "Square310x310Logo.png",
+ "StoreLogo.png",
+]
+
+export const iosRasterAssets = [
+]
+
+const androidDensities = ["mdpi", "hdpi", "xhdpi", "xxhdpi", "xxxhdpi"]
+const androidSplashSizes = { mdpi: 108, hdpi: 162, xhdpi: 216, xxhdpi: 324, xxxhdpi: 432 }
+const appleSplashSizes = { "[email protected]": 80, "[email protected]": 160, "[email protected]": 240 }
+
+export function assertSvgContract(svg) {
+ if (!svg.includes('viewBox="0 0 1024 1024"')) throw new Error("logo viewBox drifted")
+ if (!svg.includes('rx="236"')) throw new Error("logo clip radius drifted")
+ if (svg.includes("#F2E7D2")) throw new Error("inline logo must stay transparent")
+ if ((svg.match(/data-face=/g) ?? []).length !== 5) throw new Error("logo must have five face groups")
+ if ((svg.match(/data-part="expression"/g) ?? []).length !== 4) throw new Error("logo must have four expression groups")
+ if ((svg.match(/<path/g) ?? []).length !== 21) throw new Error("logo path order/count drifted")
+ if (!svg.includes('data-motion-layer="foreground"')) throw new Error("foreground motion layer is missing")
+}
+
+export function fullBleedSvg(svg) {
+ assertSvgContract(svg)
+ return svg.replace('<g clip-path="url(#alook-logo-clip)">', "<g>")
+}
+
+export function canonicalizeIcns(bytes) {
+ const input = Buffer.from(bytes)
+ if (input.subarray(0, 4).toString("ascii") !== "icns") throw new Error("invalid ICNS header")
+ const chunks = []
+ for (let offset = 8; offset < input.length;) {
+ const length = input.readUInt32BE(offset + 4)
+ chunks.push(input.subarray(offset, offset + length))
+ offset += length
+ }
+ chunks.sort((left, right) => left.subarray(0, 4).compare(right.subarray(0, 4)))
+ const output = Buffer.concat([Buffer.alloc(8), ...chunks])
+ output.write("icns", 0, "ascii")
+ output.writeUInt32BE(output.length, 4)
+ return output
+}
+
+async function digest(path) {
+ return createHash("sha256").update(await readFile(path)).digest("hex")
+}
+
+async function copy(source, destination) {
+ await copyFile(source, resolve(repoRoot, destination))
+}
+
+async function render(svg, width, height = width) {
+ return sharp(Buffer.from(svg)).resize(width, height).png().toBuffer()
+}
+
+async function renderOpaque(svg, width, height = width) {
+ return sharp(Buffer.from(svg)).resize(width, height).flatten({ background: "#FE4365" }).png().toBuffer()
+}
+
+async function renderContained(svg, canvasSize, artworkSize) {
+ const artwork = await render(svg, artworkSize)
+ const offset = Math.floor((canvasSize - artworkSize) / 2)
+ return sharp({
+ create: { width: canvasSize, height: canvasSize, channels: 4, background: { r: 0, g: 0, b: 0, alpha: 0 } },
+ }).composite([{ input: artwork, left: offset, top: offset }]).png().toBuffer()
+}
+
+async function assertDimensions(path, width, height = width) {
+ const metadata = await sharp(path).metadata()
+ if (metadata.width !== width || metadata.height !== height) {
+ throw new Error(`${path} is ${metadata.width}x${metadata.height}; expected ${width}x${height}`)
+ }
+}
+
+export async function generateLogoAssets() {
+ const canonicalPath = resolve(repoRoot, "assets/alook.svg")
+ const canonical = await readFile(canonicalPath, "utf8")
+ assertSvgContract(canonical)
+ const publicCanonical = await readFile(resolve(repoRoot, "src/web/public/alook.svg"), "utf8")
+ if (canonical !== publicCanonical) throw new Error("canonical SVG copies must be byte-identical")
+
+ const preservedBefore = new Map(await Promise.all(preservedAssets.map(async (path) => [path, await digest(resolve(repoRoot, path))])))
+ const scratch = await mkdtemp(join(tmpdir(), "alook-logo-assets-"))
+ const roundedOutput = join(scratch, "rounded")
+ const fullBleedOutput = join(scratch, "full-bleed")
+ const fullBleedPath = join(scratch, "alook-full-bleed.svg")
+ await writeFile(fullBleedPath, fullBleedSvg(canonical))
+
+ for (const [source, output] of [[canonicalPath, roundedOutput], [fullBleedPath, fullBleedOutput]]) {
+ execFileSync("pnpm", ["--filter", "@alook/desktop", "tauri", "icon", "--output", output, source], {
+ cwd: repoRoot,
+ stdio: "inherit",
+ })
+ }
+
+ await writeFile(resolve(repoRoot, "src/web/public/icon-192.png"), await render(canonical, 192))
+ await writeFile(resolve(repoRoot, "src/web/public/icon-512.png"), await render(canonical, 512))
+ const fullBleed = fullBleedSvg(canonical)
+ await writeFile(resolve(repoRoot, "src/web/public/apple-touch-icon.png"), await renderOpaque(fullBleed, 180))
+
+ for (const file of desktopRasterAssets) {
+ const source = join(roundedOutput, file)
+ const destination = resolve(repoRoot, "src/desktop/src-tauri/icons", file)
+ if (file === "icon.icns") await writeFile(destination, canonicalizeIcns(await readFile(source)))
+ else await copy(source, `src/desktop/src-tauri/icons/${file}`)
+ }
+
+ for (const file of iosRasterAssets) {
+ const source = join(fullBleedOutput, "ios", file)
+ const opaque = await sharp(source).flatten({ background: "#FE4365" }).png().toBuffer()
+ await writeFile(resolve(repoRoot, "src/desktop/src-tauri/icons/ios", file), opaque)
+ await writeFile(resolve(repoRoot, "src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset", file), opaque)
+ }
+
+ for (const [file, size] of Object.entries(appleSplashSizes)) {
+ await writeFile(
+ resolve(repoRoot, "src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset", file),
+ await render(canonical, size),
+ )
+ }
+
+ for (const density of androidDensities) {
+ const sourceDir = join(fullBleedOutput, "android", `mipmap-${density}`)
+ const destinationDir = `src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-${density}`
+ for (const file of ["ic_launcher.png", "ic_launcher_round.png", "ic_launcher_foreground.png"]) {
+ await copy(join(sourceDir, file), `${destinationDir}/${file}`)
+ }
+ const splashSize = androidSplashSizes[density]
+ const artworkSize = Math.round(splashSize * 0.5185185185)
+ await writeFile(
+ resolve(repoRoot, `src/desktop/src-tauri/gen/android/app/src/main/res/drawable-${density}/splash_icon.png`),
+ await renderContained(canonical, splashSize, artworkSize),
+ )
+ }
+
+ await assertDimensions(resolve(repoRoot, "src/web/public/icon-192.png"), 192)
+ await assertDimensions(resolve(repoRoot, "src/web/public/icon-512.png"), 512)
+ await assertDimensions(resolve(repoRoot, "src/web/public/apple-touch-icon.png"), 180)
+ for (const [path, before] of preservedBefore) {
+ const after = await digest(resolve(repoRoot, path))
+ if (after !== before) throw new Error(`preserved asset changed: ${basename(path)}`)
+ }
+ await rm(scratch, { recursive: true })
+}
+
+if (process.argv[1] === fileURLToPath(import.meta.url)) {
+ await generateLogoAssets()
+}
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-hdpi/splash_icon.png b/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-hdpi/splash_icon.png
index dfd100236..b75f2da6a 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-hdpi/splash_icon.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-hdpi/splash_icon.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-mdpi/splash_icon.png b/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-mdpi/splash_icon.png
index 6b1945c78..ea8839caa 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-mdpi/splash_icon.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-mdpi/splash_icon.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xhdpi/splash_icon.png b/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xhdpi/splash_icon.png
index 43ccddb10..ca606acfc 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xhdpi/splash_icon.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xhdpi/splash_icon.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xxhdpi/splash_icon.png b/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xxhdpi/splash_icon.png
index 064d896b2..4f42a4667 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xxhdpi/splash_icon.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xxhdpi/splash_icon.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xxxhdpi/splash_icon.png b/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xxxhdpi/splash_icon.png
index 00ba0e49b..d0ea6815c 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xxxhdpi/splash_icon.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/drawable-xxxhdpi/splash_icon.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
index fb383eb07..33cf9805f 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
index 5ac620632..934e4954d 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
index 9272652c2..8d7bb6a86 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
index 1436a4a85..d098276df 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
index 3886e174a..8c81daf0a 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
index 5f3d6e7a2..c4c636d38 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
index be056c417..ade774954 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
index d66a0e266..4ef12a13c 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
index e4abbc2b6..c76aa9445 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
index aaa3a3077..3c4b921b5 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
index 01c0f70ab..0419e7491 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
index aa6443386..8a15b7dcc 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
index 7a0dc89d9..1e44b91d4 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
index 74a1a04de..0a5f2e984 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
index 4d67d0194..122db1950 100644
Binary files a/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/src/desktop/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index 5ad31fa76..6fceb47ed 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index 41c07c919..c47386c8b 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index 41c07c919..c47386c8b 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index faa79bc8c..3cb6e5d55 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index 68d9b29f8..e61c34ee3 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index dca311ea7..43c9882d9 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index dca311ea7..43c9882d9 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index 2bdadc479..bf42b8fdc 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index 41c07c919..c47386c8b 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index d27c280b7..385bd2647 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index d27c280b7..385bd2647 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index b2f388931..96345a278 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index 26dfdddb2..c6b6113b3 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index b2f388931..96345a278 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index e2dad3a8e..36d76a968 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index 3c96a498f..ec04d9edf 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index e491979eb..a67f48279 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected]
index d6f3ea2aa..c3f07ca0a 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/AppIcon.appiconset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected]
index 3885865ec..ceb51d3e2 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected]
index 0a53ea360..a0ba2b7d0 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected] differ
diff --git a/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected] b/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected]
index 95be57192..444d233b8 100644
Binary files a/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected] and b/src/desktop/src-tauri/gen/apple/Assets.xcassets/SplashIcon.imageset/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/128x128.png b/src/desktop/src-tauri/icons/128x128.png
index 2ff60c6b7..3cc347cc9 100644
Binary files a/src/desktop/src-tauri/icons/128x128.png and b/src/desktop/src-tauri/icons/128x128.png differ
diff --git a/src/desktop/src-tauri/icons/[email protected] b/src/desktop/src-tauri/icons/[email protected]
index a895ad871..2a8040825 100644
Binary files a/src/desktop/src-tauri/icons/[email protected] and b/src/desktop/src-tauri/icons/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/32x32.png b/src/desktop/src-tauri/icons/32x32.png
index 4c2045358..7e84a346b 100644
Binary files a/src/desktop/src-tauri/icons/32x32.png and b/src/desktop/src-tauri/icons/32x32.png differ
diff --git a/src/desktop/src-tauri/icons/64x64.png b/src/desktop/src-tauri/icons/64x64.png
index 3cbd2d27f..1d45e1317 100644
Binary files a/src/desktop/src-tauri/icons/64x64.png and b/src/desktop/src-tauri/icons/64x64.png differ
diff --git a/src/desktop/src-tauri/icons/Square107x107Logo.png b/src/desktop/src-tauri/icons/Square107x107Logo.png
index 9371f4060..56e9889e1 100644
Binary files a/src/desktop/src-tauri/icons/Square107x107Logo.png and b/src/desktop/src-tauri/icons/Square107x107Logo.png differ
diff --git a/src/desktop/src-tauri/icons/Square142x142Logo.png b/src/desktop/src-tauri/icons/Square142x142Logo.png
index 52442ea11..46f62442f 100644
Binary files a/src/desktop/src-tauri/icons/Square142x142Logo.png and b/src/desktop/src-tauri/icons/Square142x142Logo.png differ
diff --git a/src/desktop/src-tauri/icons/Square150x150Logo.png b/src/desktop/src-tauri/icons/Square150x150Logo.png
index 1a552b5c9..5b4ab58c8 100644
Binary files a/src/desktop/src-tauri/icons/Square150x150Logo.png and b/src/desktop/src-tauri/icons/Square150x150Logo.png differ
diff --git a/src/desktop/src-tauri/icons/Square284x284Logo.png b/src/desktop/src-tauri/icons/Square284x284Logo.png
index 4a2ca703c..971c6d410 100644
Binary files a/src/desktop/src-tauri/icons/Square284x284Logo.png and b/src/desktop/src-tauri/icons/Square284x284Logo.png differ
diff --git a/src/desktop/src-tauri/icons/Square30x30Logo.png b/src/desktop/src-tauri/icons/Square30x30Logo.png
index c09344947..8fc91d216 100644
Binary files a/src/desktop/src-tauri/icons/Square30x30Logo.png and b/src/desktop/src-tauri/icons/Square30x30Logo.png differ
diff --git a/src/desktop/src-tauri/icons/Square310x310Logo.png b/src/desktop/src-tauri/icons/Square310x310Logo.png
index db16505e1..08a846362 100644
Binary files a/src/desktop/src-tauri/icons/Square310x310Logo.png and b/src/desktop/src-tauri/icons/Square310x310Logo.png differ
diff --git a/src/desktop/src-tauri/icons/Square44x44Logo.png b/src/desktop/src-tauri/icons/Square44x44Logo.png
index c2e631e16..8b2d3e396 100644
Binary files a/src/desktop/src-tauri/icons/Square44x44Logo.png and b/src/desktop/src-tauri/icons/Square44x44Logo.png differ
diff --git a/src/desktop/src-tauri/icons/Square71x71Logo.png b/src/desktop/src-tauri/icons/Square71x71Logo.png
index 12f3444e2..fff0f6070 100644
Binary files a/src/desktop/src-tauri/icons/Square71x71Logo.png and b/src/desktop/src-tauri/icons/Square71x71Logo.png differ
diff --git a/src/desktop/src-tauri/icons/Square89x89Logo.png b/src/desktop/src-tauri/icons/Square89x89Logo.png
index 0bf199432..d4572f671 100644
Binary files a/src/desktop/src-tauri/icons/Square89x89Logo.png and b/src/desktop/src-tauri/icons/Square89x89Logo.png differ
diff --git a/src/desktop/src-tauri/icons/StoreLogo.png b/src/desktop/src-tauri/icons/StoreLogo.png
index 06a0d410a..8dff7b1e5 100644
Binary files a/src/desktop/src-tauri/icons/StoreLogo.png and b/src/desktop/src-tauri/icons/StoreLogo.png differ
diff --git a/src/desktop/src-tauri/icons/icon.icns b/src/desktop/src-tauri/icons/icon.icns
index 8a7e5d248..c16cc7a7b 100644
Binary files a/src/desktop/src-tauri/icons/icon.icns and b/src/desktop/src-tauri/icons/icon.icns differ
diff --git a/src/desktop/src-tauri/icons/icon.ico b/src/desktop/src-tauri/icons/icon.ico
index 95e83afd1..fd15a2012 100644
Binary files a/src/desktop/src-tauri/icons/icon.ico and b/src/desktop/src-tauri/icons/icon.ico differ
diff --git a/src/desktop/src-tauri/icons/icon.png b/src/desktop/src-tauri/icons/icon.png
index 6f4bb7542..6f8714fee 100644
Binary files a/src/desktop/src-tauri/icons/icon.png and b/src/desktop/src-tauri/icons/icon.png differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index 5ad31fa76..6fceb47ed 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index 41c07c919..c47386c8b 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index 41c07c919..c47386c8b 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index faa79bc8c..3cb6e5d55 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index 68d9b29f8..e61c34ee3 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index dca311ea7..43c9882d9 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index dca311ea7..43c9882d9 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index 2bdadc479..bf42b8fdc 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index 41c07c919..c47386c8b 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index d27c280b7..385bd2647 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index d27c280b7..385bd2647 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index b2f388931..96345a278 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index 26dfdddb2..c6b6113b3 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index b2f388931..96345a278 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index e2dad3a8e..36d76a968 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index 3c96a498f..ec04d9edf 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index e491979eb..a67f48279 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/desktop/src-tauri/icons/ios/[email protected] b/src/desktop/src-tauri/icons/ios/[email protected]
index d6f3ea2aa..c3f07ca0a 100644
Binary files a/src/desktop/src-tauri/icons/ios/[email protected] and b/src/desktop/src-tauri/icons/ios/[email protected] differ
diff --git a/src/web/public/alook.svg b/src/web/public/alook.svg
index be23ef37e..805e2e8af 100644
--- a/src/web/public/alook.svg
+++ b/src/web/public/alook.svg
@@ -1,30 +1,48 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" fill="none">
-<g clip-path="url(#clip0_45_110)">
-<path d="M-26.5996 311.221L-39.86 185.057C-55.9935 31.5572 22.3761 -72.3481 148.875 -102.651C194.472 -113.822 206.766 -178.893 309.8 -189.722C482.225 -207.845 613.345 -72.8086 633.015 114.335L646.275 240.499C658.431 356.149 559.924 430.282 328.623 454.592C97.3226 478.903 -14.4443 426.871 -26.5996 311.221Z" fill="#FE4365" />
-<path d="M210.59 140.663C225.106 139.137 234.746 117.66 232.122 92.6914C229.498 67.7233 215.603 48.7195 201.086 50.2452C186.57 51.771 176.93 73.2485 179.554 98.2166C182.178 123.185 196.073 142.189 210.59 140.663Z" fill="white" />
-<path d="M378.808 122.982C393.325 121.457 402.965 99.979 400.341 75.0109C397.717 50.0428 383.822 31.039 369.305 32.5647C354.789 34.0904 345.148 55.5679 347.773 80.536C350.397 105.504 364.292 124.508 378.808 122.982Z" fill="white" />
-<path d="M262.043 185.215C289.486 203.59 314.719 200.938 337.742 177.259" stroke="white" stroke-width="27" stroke-linecap="round" />
-<path d="M523.747 365.154L550.571 58.5595C556.271 -6.59189 611.194 -38.4735 678.261 -32.6059L1015.52 -3.09997C1082.58 2.76768 1131.14 43.7023 1125.44 108.854L1098.61 415.448C1089.89 515.091 998.635 565.034 797.433 547.431C596.23 529.828 515.03 464.797 523.747 365.154Z" fill="#8A5A9E" />
-<path d="M746.769 191.001C764.761 192.575 780.621 179.267 782.195 161.276C783.769 143.285 770.461 127.424 752.469 125.85C734.478 124.276 718.618 137.585 717.044 155.576C715.47 173.567 728.778 189.427 746.769 191.001Z" fill="white" />
-<path d="M900.067 204.413C918.058 205.987 933.918 192.679 935.492 174.688C937.066 156.697 923.758 140.836 905.767 139.262C887.776 137.688 871.915 150.997 870.341 168.988C868.767 186.979 882.076 202.839 900.067 204.413Z" fill="white" />
-<path d="M752.159 239.745C793.965 276.871 838.677 280.783 886.294 251.48" stroke="white" stroke-width="27" stroke-linecap="round" />
-<path d="M-78.8153 606.38L-85.9305 504.628C-93.0456 402.877 -38.944 347.969 34.4879 325.793C26.9457 266.675 72.4138 234.525 120.811 268.632C135.789 214.756 212.103 209.42 232.856 262.501C282.7 219.82 339.34 249.943 336.588 308.076C405.845 323.683 449.748 366.625 456.744 466.681L463.86 568.432C470.382 661.705 389.146 718.51 202.602 731.554C16.0575 744.599 -72.2931 699.652 -78.8153 606.38Z" fill="#45ADA8" />
-<path d="M81.2836 458.853C101.998 430.138 124.609 428.557 149.118 454.109M216.952 449.366C237.666 420.651 260.278 419.07 284.787 444.622" stroke="black" stroke-width="27.2" stroke-linecap="round" />
-<path d="M127.475 510.156C169.1 536.783 208.67 534.016 246.185 501.854" stroke="black" stroke-width="25.5" stroke-linecap="round" />
-<path d="M-109.988 949.35L-99.7558 851.999C-85.7721 718.952 24.7151 635.419 172.106 637.787C331.026 639.726 436.163 747.563 419.451 906.57L409.219 1003.92C399.839 1093.16 313.597 1133.31 135.12 1114.55C-43.3572 1095.79 -119.367 1038.59 -109.988 949.35Z" fill="#6A8CAF" />
-<path d="M96.9932 852.993C113.123 854.688 127.573 842.987 129.268 826.857C130.963 810.728 119.262 796.278 103.132 794.582C87.0027 792.887 72.5527 804.588 70.8574 820.718C69.1621 836.848 80.8635 851.298 96.9932 852.993Z" fill="black" />
-<path d="M197.414 834.02C216.774 857.927 238.407 860.201 262.315 840.841" stroke="black" stroke-width="25.6" stroke-linecap="round" />
-<path d="M88.7148 884.932C130.907 930.924 177.419 935.813 228.252 899.598C219.15 944.573 193.506 964.844 151.321 960.41C109.135 955.977 88.2666 930.817 88.7148 884.932Z" fill="black" />
-<path d="M289.536 851.737L294.666 704.827C300.908 526.086 407.593 419.494 557.636 405.122C611.76 399.657 636.361 326.972 756.338 331.161C957.116 338.173 1085.8 514.271 1078.19 732.188L1073.06 879.099C1068.36 1013.77 943.365 1082.95 674.03 1073.54C404.694 1064.14 284.833 986.405 289.536 851.737Z" fill="#FF9915" />
-<path d="M606 655.4C634.498 655.4 657.6 632.835 657.6 605C657.6 577.165 634.498 554.6 606 554.6C577.502 554.6 554.4 577.165 554.4 605C554.4 632.835 577.502 655.4 606 655.4Z" fill="white" />
-<path d="M622.8 639.08C636.32 639.08 647.28 628.12 647.28 614.6C647.28 601.08 636.32 590.12 622.8 590.12C609.28 590.12 598.32 601.08 598.32 614.6C598.32 628.12 609.28 639.08 622.8 639.08Z" fill="black" />
-<path d="M798 655.4C826.498 655.4 849.6 632.835 849.6 605C849.6 577.165 826.498 554.6 798 554.6C769.502 554.6 746.4 577.165 746.4 605C746.4 632.835 769.502 655.4 798 655.4Z" fill="white" />
-<path d="M814.8 639.08C828.32 639.08 839.28 628.12 839.28 614.6C839.28 601.08 828.32 590.12 814.8 590.12C801.28 590.12 790.32 601.08 790.32 614.6C790.32 628.12 801.28 639.08 814.8 639.08Z" fill="black" />
-<path d="M630 725C686 736.2 734 726.6 774 696.2" stroke="black" stroke-width="36" stroke-linecap="round" />
-</g>
-<defs>
-<clipPath id="clip0_45_110">
-<rect width="1024" height="1024" rx="236" fill="white" />
-</clipPath>
-</defs>
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" fill="none" data-state="default">
+ <g clip-path="url(#alook-logo-clip)">
+ <g data-face="red">
+ <path d="M-26.5996 311.221L-39.86 185.057C-55.9935 31.5572 22.3761 -72.3481 148.875 -102.651C194.472 -113.822 206.766 -178.893 309.8 -189.722C482.225 -207.845 613.345 -72.8086 633.015 114.335L646.275 240.499C658.431 356.149 559.924 430.282 328.623 454.592C97.3226 478.903 -14.4443 426.871 -26.5996 311.221Z" fill="#FE4365"/>
+ <g data-part="expression" opacity="0">
+ <path d="M210.59 140.663C225.106 139.137 234.746 117.66 232.122 92.6914C229.498 67.7233 215.603 48.7195 201.086 50.2452C186.57 51.771 176.93 73.2485 179.554 98.2166C182.178 123.185 196.073 142.189 210.59 140.663Z" fill="white"/>
+ <path d="M378.808 122.982C393.325 121.457 402.965 99.979 400.341 75.0109C397.717 50.0428 383.822 31.039 369.305 32.5647C354.789 34.0904 345.148 55.5679 347.773 80.536C350.397 105.504 364.292 124.508 378.808 122.982Z" fill="white"/>
+ <path d="M328.063 167.848C333.26 162.502 341.807 162.382 347.153 167.579C352.499 172.777 352.619 181.324 347.421 186.67C334.382 200.08 319.562 208.689 302.962 210.434C286.361 212.178 270.075 206.839 254.533 196.433C248.337 192.284 246.678 183.899 250.826 177.704C254.974 171.509 263.36 169.849 269.555 173.997C281.456 181.966 291.507 184.489 300.139 183.581C308.771 182.674 318.079 178.117 328.063 167.848Z" fill="white"/>
+ </g>
+ </g>
+ <g data-face="purple">
+ <path d="M523.747 365.154L550.571 58.5595C556.271 -6.59189 611.194 -38.4735 678.261 -32.6059L1015.52 -3.09997C1082.58 2.76768 1131.14 43.7023 1125.44 108.854L1098.61 415.448C1089.89 515.091 998.635 565.034 797.433 547.431C596.23 529.828 515.03 464.797 523.747 365.154Z" fill="#8A5A9E"/>
+ <g data-part="expression" opacity="0">
+ <path d="M746.769 191.001C764.76 192.575 780.621 179.267 782.195 161.276C783.769 143.285 770.46 127.424 752.469 125.85C734.478 124.276 718.618 137.585 717.044 155.576C715.47 173.567 728.778 189.427 746.769 191.001Z" fill="white"/>
+ <path d="M900.067 204.413C918.058 205.987 933.918 192.679 935.492 174.688C937.066 156.697 923.758 140.836 905.767 139.262C887.776 137.688 871.915 150.997 870.341 168.988C868.767 186.979 882.076 202.839 900.067 204.413Z" fill="white"/>
+ <path d="M879.218 239.983C885.568 236.076 893.884 238.055 897.791 244.405C901.699 250.755 899.719 259.07 893.37 262.978C867.707 278.77 841.761 286.237 815.871 283.972C789.981 281.707 765.725 269.847 743.194 249.839C737.62 244.888 737.114 236.355 742.065 230.78C747.016 225.206 755.549 224.7 761.124 229.651C780.399 246.769 799.403 255.428 818.224 257.075C837.045 258.721 857.264 253.493 879.218 239.983Z" fill="white"/>
+ </g>
+ </g>
+ <g data-face="teal">
+ <path d="M-78.815 606.38L-85.9302 504.628C-93.0454 402.877 -38.9437 347.969 34.4882 325.793C26.946 266.675 72.4141 234.525 120.811 268.632C135.789 214.756 212.103 209.42 232.856 262.501C282.701 219.82 339.34 249.943 336.588 308.076C405.846 323.683 449.748 366.625 456.745 466.681L463.86 568.432C470.382 661.705 389.147 718.51 202.602 731.554C16.0577 744.599 -72.2928 699.652 -78.815 606.38Z" fill="#45ADA8"/>
+ <g data-part="expression" opacity="0">
+ <path d="M112.83 422.564C129.98 421.365 145.457 430.644 158.934 444.695C164.133 450.116 163.953 458.725 158.532 463.924C153.111 469.123 144.502 468.944 139.303 463.523C128.271 452.021 120.188 449.315 114.727 449.697C109.266 450.079 101.638 453.884 92.3142 466.809C87.92 472.9 79.4196 474.276 73.3281 469.882C67.2366 465.488 65.8599 456.988 70.254 450.896C81.644 435.107 95.6792 423.763 112.83 422.564ZM248.498 413.077C265.649 411.878 281.126 421.157 294.603 435.208C299.802 440.629 299.621 449.238 294.201 454.437C288.78 459.636 280.171 459.457 274.972 454.036C263.94 442.534 255.857 439.828 250.396 440.21C244.935 440.592 237.307 444.397 227.983 457.322C223.589 463.414 215.088 464.789 208.997 460.395C202.905 456.001 201.529 447.501 205.923 441.409C217.313 425.62 231.348 414.276 248.498 413.077Z" fill="black"/>
+ <path d="M237.886 492.175C243.232 487.591 251.282 488.21 255.865 493.556C260.449 498.901 259.83 506.951 254.484 511.535C234.167 528.953 212.389 539.153 189.261 540.77C166.134 542.387 143.149 535.318 120.604 520.896C114.673 517.102 112.94 509.216 116.734 503.285C120.529 497.353 128.415 495.62 134.346 499.415C153.427 511.621 171.04 516.482 187.483 515.332C203.925 514.182 220.69 506.917 237.886 492.175Z" fill="black"/>
+ </g>
+ </g>
+ <g data-face="blue">
+ <path d="M-109.988 949.35L-99.7556 851.999C-85.7718 718.952 24.7154 635.419 172.106 637.787C331.026 639.726 436.163 747.563 419.451 906.57L409.219 1003.92C399.839 1093.16 313.597 1133.31 135.12 1114.55C-43.357 1095.79 -119.367 1038.59 -109.988 949.35Z" fill="#6A8CAF"/>
+ <g data-part="expression" opacity="0">
+ <path d="M96.9934 852.993C113.123 854.688 127.573 842.987 129.268 826.857C130.964 810.728 119.262 796.278 103.133 794.582C87.0029 792.887 72.5529 804.588 70.8576 820.718C69.1623 836.848 80.8637 851.298 96.9934 852.993Z" fill="black"/>
+ <path d="M254.259 830.894C259.753 826.445 267.814 827.292 272.263 832.786C276.711 838.28 275.864 846.339 270.371 850.788C256.884 861.71 242.205 868.002 226.821 866.385C211.437 864.768 198.388 855.562 187.467 842.075C183.018 836.581 183.865 828.521 189.359 824.072C194.853 819.623 202.913 820.471 207.361 825.964C215.8 836.385 223.247 840.269 229.497 840.926C235.747 841.582 243.839 839.332 254.259 830.894Z" fill="black"/>
+ <path d="M88.7148 884.932C130.907 930.924 177.419 935.813 228.252 899.598C219.15 944.573 193.506 964.844 151.321 960.41C109.135 955.977 88.2666 930.817 88.7148 884.932Z" fill="black"/>
+ </g>
+ </g>
+ <g data-face="orange" data-motion-layer="foreground">
+ <path d="M73.3744 799.986L80.287 602.034C88.6974 361.193 232.448 217.568 434.621 198.202C507.549 190.84 540.698 92.9006 702.358 98.5459C972.892 107.993 1146.28 345.273 1136.03 638.902L1129.12 836.853C1122.78 1018.31 954.364 1111.52 591.453 1098.85C228.541 1086.18 67.0378 981.442 73.3744 799.986Z" fill="#FF9915"/>
+ <path d="M499.787 535.435C538.186 535.435 569.315 505.031 569.315 467.525C569.315 430.019 538.186 399.614 499.787 399.614C461.388 399.614 430.26 430.019 430.26 467.525C430.26 505.031 461.388 535.435 499.787 535.435Z" fill="white"/>
+ <path d="M522.424 513.445C540.641 513.445 555.409 498.677 555.409 480.46C555.409 462.243 540.641 447.475 522.424 447.475C504.207 447.475 489.439 462.243 489.439 480.46C489.439 498.677 504.207 513.445 522.424 513.445Z" fill="black"/>
+ <path d="M758.494 535.435C796.893 535.435 828.021 505.031 828.021 467.525C828.021 430.019 796.893 399.614 758.494 399.614C720.095 399.614 688.966 430.019 688.966 467.525C688.966 505.031 720.095 535.435 758.494 535.435Z" fill="white"/>
+ <path d="M781.131 513.445C799.348 513.445 814.116 498.677 814.116 480.46C814.116 462.243 799.348 447.475 781.131 447.475C762.914 447.475 748.146 462.243 748.146 480.46C748.146 498.677 762.914 513.445 781.131 513.445Z" fill="black"/>
+ <path d="M711.48 571.1C722.145 562.995 737.361 565.07 745.466 575.735C753.571 586.399 751.496 601.615 740.832 609.72C680.61 655.489 608.609 669.247 527.369 652.999C514.235 650.372 505.716 637.594 508.343 624.459C510.971 611.325 523.748 602.806 536.883 605.433C606.555 619.368 663.908 607.255 711.48 571.1Z" fill="black"/>
+ </g>
+ </g>
+ <defs>
+ <clipPath id="alook-logo-clip">
+ <rect width="1024" height="1024" rx="236" fill="white"/>
+ </clipPath>
+ </defs>
</svg>
diff --git a/src/web/public/apple-touch-icon.png b/src/web/public/apple-touch-icon.png
index 21adeaa6d..fb2b3cdc8 100644
Binary files a/src/web/public/apple-touch-icon.png and b/src/web/public/apple-touch-icon.png differ
diff --git a/src/web/public/icon-192.png b/src/web/public/icon-192.png
index 1610f8c60..3d1dc6982 100644
Binary files a/src/web/public/icon-192.png and b/src/web/public/icon-192.png differ
diff --git a/src/web/public/icon-512.png b/src/web/public/icon-512.png
index 6c57a0fab..6cd66dae9 100644
Binary files a/src/web/public/icon-512.png and b/src/web/public/icon-512.png differ
diff --git a/src/web/src/components/community/animated-alook-logo.test.ts b/src/web/src/components/community/animated-alook-logo.test.ts
index 84131cdc2..e9b1ff16a 100644
--- a/src/web/src/components/community/animated-alook-logo.test.ts
+++ b/src/web/src/components/community/animated-alook-logo.test.ts
@@ -1,22 +1,59 @@
import { createElement } from "react"
import { renderToStaticMarkup } from "react-dom/server"
import { describe, expect, it } from "vitest"
-import { AnimatedAlookLogo } from "./animated-alook-logo"
+import {
+ AnimatedAlookLogo,
+ ENTER_PROGRESS,
+ EXIT_PROGRESS,
+ MOTION_DURATION_MS,
+ MOTION_OFFSETS,
+ REVEAL_MATRIX,
+ motionProgressAt,
+ transformForProgress,
+} from "./animated-alook-logo"
describe("AnimatedAlookLogo", () => {
- it("preserves the five-face mark and exposes one reversible hover state", () => {
+ it("renders the approved structured Default state", () => {
const html = renderToStaticMarkup(createElement(AnimatedAlookLogo, { className: "size-10" }))
expect(html).toContain('role="img"')
expect(html).toContain('aria-label="Alook"')
+ expect(html).toContain('data-testid="community-alook-logo"')
+ expect(html).toContain('data-state="default"')
expect(html).toContain('rx="236"')
expect(html.match(/data-face=/g)).toHaveLength(5)
- expect(html).toContain('data-motion="orange-glance"')
- expect(html).toContain("group-hover/alook")
- expect(html).toContain("motion-reduce:group-hover/alook:translate-none")
- expect(html).toContain("motion-reduce:group-hover/alook:scale-none")
- expect(html).toContain("motion-reduce:transition-none")
- expect(html).toContain("duration-[180ms]")
- expect(html).toContain("group-hover/alook:duration-[240ms]")
+ expect(html.match(/data-part="expression" opacity="0"/g)).toHaveLength(4)
+ expect(html.match(/<path/g)).toHaveLength(21)
+ expect(html).toContain('data-motion-layer="foreground" transform="matrix(1 0 0 1 0 0)"')
+ expect(html).not.toContain("#F2E7D2")
+ })
+
+ it("locks the approved Reveal transform and damped timing", () => {
+ expect(REVEAL_MATRIX).toEqual([0.82598, 0, 0, 0.82599, 194.784, 194.424])
+ expect(MOTION_DURATION_MS).toBe(300)
+ expect(MOTION_OFFSETS).toEqual([0, 0.55, 0.73, 0.88, 1])
+ expect(ENTER_PROGRESS).toEqual([0, 1.06, 0.975, 1.01, 1])
+ expect(EXIT_PROGRESS).toEqual([1, -0.06, 0.025, -0.01, 0])
+ expect(transformForProgress(1)).toBe("matrix(0.82598 0 0 0.82599 194.784 194.424)")
+ expect(motionProgressAt(true, 0, 165)).toBeCloseTo(1.06, 5)
+ expect(motionProgressAt(false, 1, 165)).toBeCloseTo(-0.06, 5)
+ expect(motionProgressAt(true, 0.43, 0)).toBeCloseTo(0.43, 5)
+ expect(motionProgressAt(false, 0.61, 0)).toBeCloseTo(0.61, 5)
+ expect(motionProgressAt(true, 0, 300)).toBe(1)
+ expect(motionProgressAt(false, 1, 300)).toBe(0)
+ })
+
+ it("declares desktop, mobile, reduced-motion, pointer, and keyboard behavior", async () => {
+ const source = await import("node:fs/promises").then(({ readFile }) =>
+ readFile(new URL("./animated-alook-logo.tsx", import.meta.url), "utf8"),
+ )
+
+ expect(source).toContain('(max-width: 639px)')
+ expect(source).toContain('(prefers-reduced-motion: reduce)')
+ expect(source).toContain('addEventListener("pointerenter"')
+ expect(source).toContain('addEventListener("pointerleave"')
+ expect(source).toContain('addEventListener("focus"')
+ expect(source).toContain('addEventListener("blur"')
+ expect(source).toContain("const startProgress = progressRef.current")
})
})
diff --git a/src/web/src/components/community/animated-alook-logo.tsx b/src/web/src/components/community/animated-alook-logo.tsx
index 0104d5746..19871bcfc 100644
--- a/src/web/src/components/community/animated-alook-logo.tsx
+++ b/src/web/src/components/community/animated-alook-logo.tsx
@@ -1,98 +1,226 @@
+"use client"
+
+import { useEffect, useId, useRef, type RefObject } from "react"
+import { tid } from "@/lib/community/testids"
import { cn } from "@/lib/utils"
-const motion =
- "transition-transform duration-[180ms] ease-[cubic-bezier(0.2,0.8,0.2,1)] group-hover/alook:duration-[240ms] motion-reduce:group-hover/alook:translate-none motion-reduce:group-hover/alook:scale-none motion-reduce:transition-none"
+export const REVEAL_MATRIX = [0.82598, 0, 0, 0.82599, 194.784, 194.424] as const
+export const MOTION_OFFSETS = [0, 0.55, 0.73, 0.88, 1] as const
+export const ENTER_PROGRESS = [0, 1.06, 0.975, 1.01, 1] as const
+export const EXIT_PROGRESS = [1, -0.06, 0.025, -0.01, 0] as const
+export const MOTION_DURATION_MS = 300
+
+const segmentEasings = [
+ cubicBezier(0.2, 0.8, 0.2, 1),
+ cubicBezier(0.42, 0, 0.58, 1),
+ cubicBezier(0.42, 0, 0.58, 1),
+ cubicBezier(0, 0, 0.58, 1),
+]
+
+export function transformForProgress(progress: number) {
+ const [targetA, , , targetD, targetE, targetF] = REVEAL_MATRIX
+ const a = 1 + (targetA - 1) * progress
+ const d = 1 + (targetD - 1) * progress
+ return `matrix(${formatNumber(a)} 0 0 ${formatNumber(d)} ${formatNumber(targetE * progress)} ${formatNumber(targetF * progress)})`
+}
+
+export function motionProgressAt(targetReveal: boolean, startProgress: number, elapsedMs: number) {
+ if (elapsedMs >= MOTION_DURATION_MS) return targetReveal ? 1 : 0
+ const points: number[] = targetReveal ? [...ENTER_PROGRESS] : [...EXIT_PROGRESS]
+ points[0] = startProgress
+ const elapsed = Math.max(0, elapsedMs) / MOTION_DURATION_MS
+ let segment = MOTION_OFFSETS.length - 2
+ for (let index = 0; index < MOTION_OFFSETS.length - 1; index += 1) {
+ if (elapsed <= MOTION_OFFSETS[index + 1]) {
+ segment = index
+ break
+ }
+ }
+ const fromOffset = MOTION_OFFSETS[segment]
+ const toOffset = MOTION_OFFSETS[segment + 1]
+ const local = (elapsed - fromOffset) / (toOffset - fromOffset)
+ const eased = segmentEasings[segment](Math.max(0, Math.min(1, local)))
+ return points[segment] + (points[segment + 1] - points[segment]) * eased
+}
+
+function formatNumber(value: number) {
+ const rounded = Math.abs(value) < 0.000005 ? 0 : Number(value.toFixed(5))
+ return String(rounded)
+}
+
+function cubicBezier(x1: number, y1: number, x2: number, y2: number) {
+ const sample = (t: number, a1: number, a2: number) =>
+ ((1 - 3 * a2 + 3 * a1) * t + (3 * a2 - 6 * a1)) * t * t + 3 * a1 * t
+ const slope = (t: number, a1: number, a2: number) =>
+ 3 * (1 - 3 * a2 + 3 * a1) * t * t + 2 * (3 * a2 - 6 * a1) * t + 3 * a1
+
+ return (x: number) => {
+ let t = x
+ for (let index = 0; index < 8; index += 1) {
+ const currentSlope = slope(t, x1, x2)
+ if (Math.abs(currentSlope) < 0.000001) break
+ t -= (sample(t, x1, x2) - x) / currentSlope
+ }
+ if (t < 0 || t > 1) {
+ let low = 0
+ let high = 1
+ t = x
+ for (let index = 0; index < 12; index += 1) {
+ if (sample(t, x1, x2) < x) low = t
+ else high = t
+ t = (low + high) / 2
+ }
+ }
+ return sample(t, y1, y2)
+ }
+}
+
+function useLogoMotion(
+ svgRef: RefObject<SVGSVGElement | null>,
+ foregroundRef: RefObject<SVGGElement | null>,
+) {
+ const frameRef = useRef<number | null>(null)
+ const progressRef = useRef(0)
+ const targetRef = useRef(false)
+
+ useEffect(() => {
+ const svg = svgRef.current
+ const foreground = foregroundRef.current
+ const trigger = svg?.parentElement
+ if (!svg || !foreground || !trigger) return
+
+ const expressions = [...svg.querySelectorAll<SVGGElement>('[data-part="expression"]')]
+ const mobileQuery = window.matchMedia("(max-width: 639px)")
+ const reducedMotionQuery = window.matchMedia("(prefers-reduced-motion: reduce)")
+ let hovered = trigger.matches(":hover")
+ let focused = trigger === document.activeElement
+
+ const apply = (progress: number, state: "default" | "reveal" | "transitioning") => {
+ progressRef.current = progress
+ foreground.setAttribute("transform", transformForProgress(progress))
+ for (const expression of expressions) {
+ expression.setAttribute("opacity", formatNumber(Math.max(0, Math.min(1, progress))))
+ }
+ svg.dataset.state = state
+ }
+
+ const stop = () => {
+ if (frameRef.current !== null) cancelAnimationFrame(frameRef.current)
+ frameRef.current = null
+ }
+
+ const setTarget = (reveal: boolean) => {
+ const nextReveal = mobileQuery.matches ? false : reveal
+ const direct = reducedMotionQuery.matches || mobileQuery.matches
+ if (!direct && targetRef.current === nextReveal && frameRef.current !== null) return
+ targetRef.current = nextReveal
+ stop()
+ const terminalProgress = nextReveal ? 1 : 0
+ if (direct || Math.abs(progressRef.current - terminalProgress) < 0.00001) {
+ apply(nextReveal ? 1 : 0, nextReveal ? "reveal" : "default")
+ return
+ }
+ const startProgress = progressRef.current
+ const startedAt = performance.now()
+ const tick = (now: number) => {
+ if (targetRef.current !== nextReveal) return
+ const elapsed = now - startedAt
+ const done = elapsed >= MOTION_DURATION_MS
+ const progress = motionProgressAt(nextReveal, startProgress, elapsed)
+ apply(progress, done ? (nextReveal ? "reveal" : "default") : "transitioning")
+ if (!done) frameRef.current = requestAnimationFrame(tick)
+ else frameRef.current = null
+ }
+ frameRef.current = requestAnimationFrame(tick)
+ }
+
+ const syncTarget = () => setTarget(hovered || focused)
+ const onPointerEnter = () => { hovered = true; syncTarget() }
+ const onPointerLeave = () => { hovered = false; syncTarget() }
+ const onFocus = () => { focused = true; syncTarget() }
+ const onBlur = () => { focused = false; syncTarget() }
+ const onMediaChange = () => syncTarget()
+
+ trigger.addEventListener("pointerenter", onPointerEnter)
+ trigger.addEventListener("pointerleave", onPointerLeave)
+ trigger.addEventListener("focus", onFocus)
+ trigger.addEventListener("blur", onBlur)
+ mobileQuery.addEventListener("change", onMediaChange)
+ reducedMotionQuery.addEventListener("change", onMediaChange)
+ syncTarget()
+
+ return () => {
+ stop()
+ trigger.removeEventListener("pointerenter", onPointerEnter)
+ trigger.removeEventListener("pointerleave", onPointerLeave)
+ trigger.removeEventListener("focus", onFocus)
+ trigger.removeEventListener("blur", onBlur)
+ mobileQuery.removeEventListener("change", onMediaChange)
+ reducedMotionQuery.removeEventListener("change", onMediaChange)
+ }
+ }, [foregroundRef, svgRef])
+}
export function AnimatedAlookLogo({ className }: { className?: string }) {
+ const svgRef = useRef<SVGSVGElement>(null)
+ const foregroundRef = useRef<SVGGElement>(null)
+ const clipId = `alook-logo-${useId().replaceAll(":", "")}`
+ useLogoMotion(svgRef, foregroundRef)
+
return (
<svg
+ ref={svgRef}
viewBox="0 0 1024 1024"
fill="none"
role="img"
aria-label="Alook"
+ data-testid={tid.alookLogo}
+ data-state="default"
className={cn("pointer-events-none select-none", className)}
>
- <g clipPath="url(#animated-alook-clip)">
- <g
- data-face="red"
- className={cn(
- motion,
- "transform-fill origin-center group-hover/alook:translate-x-[2%] group-hover/alook:translate-y-[3%]",
- )}
- >
+ <g clipPath={`url(#${clipId})`}>
+ <g data-face="red">
<path d="M-26.5996 311.221L-39.86 185.057C-55.9935 31.5572 22.3761 -72.3481 148.875 -102.651C194.472 -113.822 206.766 -178.893 309.8 -189.722C482.225 -207.845 613.345 -72.8086 633.015 114.335L646.275 240.499C658.431 356.149 559.924 430.282 328.623 454.592C97.3226 478.903 -14.4443 426.871 -26.5996 311.221Z" fill="#FE4365" />
- <path d="M210.59 140.663C225.106 139.137 234.746 117.66 232.122 92.6914C229.498 67.7233 215.603 48.7195 201.086 50.2452C186.57 51.771 176.93 73.2485 179.554 98.2166C182.178 123.185 196.073 142.189 210.59 140.663Z" fill="white" />
- <path d="M378.808 122.982C393.325 121.457 402.965 99.979 400.341 75.0109C397.717 50.0428 383.822 31.039 369.305 32.5647C354.789 34.0904 345.148 55.5679 347.773 80.536C350.397 105.504 364.292 124.508 378.808 122.982Z" fill="white" />
- <path d="M262.043 185.215C289.486 203.59 314.719 200.938 337.742 177.259" stroke="white" strokeWidth="27" strokeLinecap="round" />
+ <g data-part="expression" opacity="0">
+ <path d="M210.59 140.663C225.106 139.137 234.746 117.66 232.122 92.6914C229.498 67.7233 215.603 48.7195 201.086 50.2452C186.57 51.771 176.93 73.2485 179.554 98.2166C182.178 123.185 196.073 142.189 210.59 140.663Z" fill="white" />
+ <path d="M378.808 122.982C393.325 121.457 402.965 99.979 400.341 75.0109C397.717 50.0428 383.822 31.039 369.305 32.5647C354.789 34.0904 345.148 55.5679 347.773 80.536C350.397 105.504 364.292 124.508 378.808 122.982Z" fill="white" />
+ <path d="M328.063 167.848C333.26 162.502 341.807 162.382 347.153 167.579C352.499 172.777 352.619 181.324 347.421 186.67C334.382 200.08 319.562 208.689 302.962 210.434C286.361 212.178 270.075 206.839 254.533 196.433C248.337 192.284 246.678 183.899 250.826 177.704C254.974 171.509 263.36 169.849 269.555 173.997C281.456 181.966 291.507 184.489 300.139 183.581C308.771 182.674 318.079 178.117 328.063 167.848Z" fill="white" />
+ </g>
</g>
-
- <g
- data-face="purple"
- className={cn(
- motion,
- "transform-fill origin-center group-hover/alook:translate-x-[-2%] group-hover/alook:translate-y-[3%]",
- )}
- >
+ <g data-face="purple">
<path d="M523.747 365.154L550.571 58.5595C556.271 -6.59189 611.194 -38.4735 678.261 -32.6059L1015.52 -3.09997C1082.58 2.76768 1131.14 43.7023 1125.44 108.854L1098.61 415.448C1089.89 515.091 998.635 565.034 797.433 547.431C596.23 529.828 515.03 464.797 523.747 365.154Z" fill="#8A5A9E" />
- <path d="M746.769 191.001C764.761 192.575 780.621 179.267 782.195 161.276C783.769 143.285 770.461 127.424 752.469 125.85C734.478 124.276 718.618 137.585 717.044 155.576C715.47 173.567 728.778 189.427 746.769 191.001Z" fill="white" />
- <path d="M900.067 204.413C918.058 205.987 933.918 192.679 935.492 174.688C937.066 156.697 923.758 140.836 905.767 139.262C887.776 137.688 871.915 150.997 870.341 168.988C868.767 186.979 882.076 202.839 900.067 204.413Z" fill="white" />
- <path d="M752.159 239.745C793.965 276.871 838.677 280.783 886.294 251.48" stroke="white" strokeWidth="27" strokeLinecap="round" />
- </g>
-
- <g
- data-face="teal"
- className={cn(
- motion,
- "transform-fill origin-center group-hover/alook:translate-x-[3%]",
- )}
- >
- <path d="M-78.8153 606.38L-85.9305 504.628C-93.0456 402.877 -38.944 347.969 34.4879 325.793C26.9457 266.675 72.4138 234.525 120.811 268.632C135.789 214.756 212.103 209.42 232.856 262.501C282.7 219.82 339.34 249.943 336.588 308.076C405.845 323.683 449.748 366.625 456.744 466.681L463.86 568.432C470.382 661.705 389.146 718.51 202.602 731.554C16.0575 744.599 -72.2931 699.652 -78.8153 606.38Z" fill="#45ADA8" />
- <path d="M81.2836 458.853C101.998 430.138 124.609 428.557 149.118 454.109M216.952 449.366C237.666 420.651 260.278 419.07 284.787 444.622" stroke="black" strokeWidth="27.2" strokeLinecap="round" />
- <path d="M127.475 510.156C169.1 536.783 208.67 534.016 246.185 501.854" stroke="black" strokeWidth="25.5" strokeLinecap="round" />
+ <g data-part="expression" opacity="0">
+ <path d="M746.769 191.001C764.76 192.575 780.621 179.267 782.195 161.276C783.769 143.285 770.46 127.424 752.469 125.85C734.478 124.276 718.618 137.585 717.044 155.576C715.47 173.567 728.778 189.427 746.769 191.001Z" fill="white" />
+ <path d="M900.067 204.413C918.058 205.987 933.918 192.679 935.492 174.688C937.066 156.697 923.758 140.836 905.767 139.262C887.776 137.688 871.915 150.997 870.341 168.988C868.767 186.979 882.076 202.839 900.067 204.413Z" fill="white" />
+ <path d="M879.218 239.983C885.568 236.076 893.884 238.055 897.791 244.405C901.699 250.755 899.719 259.07 893.37 262.978C867.707 278.77 841.761 286.237 815.871 283.972C789.981 281.707 765.725 269.847 743.194 249.839C737.62 244.888 737.114 236.355 742.065 230.78C747.016 225.206 755.549 224.7 761.124 229.651C780.399 246.769 799.403 255.428 818.224 257.075C837.045 258.721 857.264 253.493 879.218 239.983Z" fill="white" />
+ </g>
</g>
-
- <g
- data-face="blue"
- className={cn(
- motion,
- "transform-fill origin-center group-hover/alook:translate-x-[3%] group-hover/alook:translate-y-[-2%]",
- )}
- >
- <path d="M-109.988 949.35L-99.7558 851.999C-85.7721 718.952 24.7151 635.419 172.106 637.787C331.026 639.726 436.163 747.563 419.451 906.57L409.219 1003.92C399.839 1093.16 313.597 1133.31 135.12 1114.55C-43.3572 1095.79 -119.367 1038.59 -109.988 949.35Z" fill="#6A8CAF" />
- <path d="M96.9932 852.993C113.123 854.688 127.573 842.987 129.268 826.857C130.963 810.728 119.262 796.278 103.132 794.582C87.0027 792.887 72.5527 804.588 70.8574 820.718C69.1621 836.848 80.8635 851.298 96.9932 852.993Z" fill="black" />
- <path d="M197.414 834.02C216.774 857.927 238.407 860.201 262.315 840.841" stroke="black" strokeWidth="25.6" strokeLinecap="round" />
- <path d="M88.7148 884.932C130.907 930.924 177.419 935.813 228.252 899.598C219.15 944.573 193.506 964.844 151.321 960.41C109.135 955.977 88.2666 930.817 88.7148 884.932Z" fill="black" />
+ <g data-face="teal">
+ <path d="M-78.815 606.38L-85.9302 504.628C-93.0454 402.877 -38.9437 347.969 34.4882 325.793C26.946 266.675 72.4141 234.525 120.811 268.632C135.789 214.756 212.103 209.42 232.856 262.501C282.701 219.82 339.34 249.943 336.588 308.076C405.846 323.683 449.748 366.625 456.745 466.681L463.86 568.432C470.382 661.705 389.147 718.51 202.602 731.554C16.0577 744.599 -72.2928 699.652 -78.815 606.38Z" fill="#45ADA8" />
+ <g data-part="expression" opacity="0">
+ <path d="M112.83 422.564C129.98 421.365 145.457 430.644 158.934 444.695C164.133 450.116 163.953 458.725 158.532 463.924C153.111 469.123 144.502 468.944 139.303 463.523C128.271 452.021 120.188 449.315 114.727 449.697C109.266 450.079 101.638 453.884 92.3142 466.809C87.92 472.9 79.4196 474.276 73.3281 469.882C67.2366 465.488 65.8599 456.988 70.254 450.896C81.644 435.107 95.6792 423.763 112.83 422.564ZM248.498 413.077C265.649 411.878 281.126 421.157 294.603 435.208C299.802 440.629 299.621 449.238 294.201 454.437C288.78 459.636 280.171 459.457 274.972 454.036C263.94 442.534 255.857 439.828 250.396 440.21C244.935 440.592 237.307 444.397 227.983 457.322C223.589 463.414 215.088 464.789 208.997 460.395C202.905 456.001 201.529 447.501 205.923 441.409C217.313 425.62 231.348 414.276 248.498 413.077Z" fill="black" />
+ <path d="M237.886 492.175C243.232 487.591 251.282 488.21 255.865 493.556C260.449 498.901 259.83 506.951 254.484 511.535C234.167 528.953 212.389 539.153 189.261 540.77C166.134 542.387 143.149 535.318 120.604 520.896C114.673 517.102 112.94 509.216 116.734 503.285C120.529 497.353 128.415 495.62 134.346 499.415C153.427 511.621 171.04 516.482 187.483 515.332C203.925 514.182 220.69 506.917 237.886 492.175Z" fill="black" />
+ </g>
</g>
-
- <g data-face="orange">
- <path d="M289.536 851.737L294.666 704.827C300.908 526.086 407.593 419.494 557.636 405.122C611.76 399.657 636.361 326.972 756.338 331.161C957.116 338.173 1085.8 514.271 1078.19 732.188L1073.06 879.099C1068.36 1013.77 943.365 1082.95 674.03 1073.54C404.694 1064.14 284.833 986.405 289.536 851.737Z" fill="#FF9915" />
- <path d="M606 655.4C634.498 655.4 657.6 632.835 657.6 605C657.6 577.165 634.498 554.6 606 554.6C577.502 554.6 554.4 577.165 554.4 605C554.4 632.835 577.502 655.4 606 655.4Z" fill="white" />
- <path d="M798 655.4C826.498 655.4 849.6 632.835 849.6 605C849.6 577.165 826.498 554.6 798 554.6C769.502 554.6 746.4 577.165 746.4 605C746.4 632.835 769.502 655.4 798 655.4Z" fill="white" />
- <g
- data-motion="orange-glance"
- className={cn(
- motion,
- "transform-fill origin-center group-hover/alook:translate-x-[-7%]",
- )}
- >
- <path d="M622.8 639.08C636.32 639.08 647.28 628.12 647.28 614.6C647.28 601.08 636.32 590.12 622.8 590.12C609.28 590.12 598.32 601.08 598.32 614.6C598.32 628.12 609.28 639.08 622.8 639.08Z" fill="black" />
- <path d="M814.8 639.08C828.32 639.08 839.28 628.12 839.28 614.6C839.28 601.08 828.32 590.12 814.8 590.12C801.28 590.12 790.32 601.08 790.32 614.6C790.32 628.12 801.28 639.08 814.8 639.08Z" fill="black" />
+ <g data-face="blue">
+ <path d="M-109.988 949.35L-99.7556 851.999C-85.7718 718.952 24.7154 635.419 172.106 637.787C331.026 639.726 436.163 747.563 419.451 906.57L409.219 1003.92C399.839 1093.16 313.597 1133.31 135.12 1114.55C-43.357 1095.79 -119.367 1038.59 -109.988 949.35Z" fill="#6A8CAF" />
+ <g data-part="expression" opacity="0">
+ <path d="M96.9934 852.993C113.123 854.688 127.573 842.987 129.268 826.857C130.964 810.728 119.262 796.278 103.133 794.582C87.0029 792.887 72.5529 804.588 70.8576 820.718C69.1623 836.848 80.8637 851.298 96.9934 852.993Z" fill="black" />
+ <path d="M254.259 830.894C259.753 826.445 267.814 827.292 272.263 832.786C276.711 838.28 275.864 846.339 270.371 850.788C256.884 861.71 242.205 868.002 226.821 866.385C211.437 864.768 198.388 855.562 187.467 842.075C183.018 836.581 183.865 828.521 189.359 824.072C194.853 819.623 202.913 820.471 207.361 825.964C215.8 836.385 223.247 840.269 229.497 840.926C235.747 841.582 243.839 839.332 254.259 830.894Z" fill="black" />
+ <path d="M88.7148 884.932C130.907 930.924 177.419 935.813 228.252 899.598C219.15 944.573 193.506 964.844 151.321 960.41C109.135 955.977 88.2666 930.817 88.7148 884.932Z" fill="black" />
</g>
- <path
- d="M630 725C686 736.2 734 726.6 774 696.2"
- stroke="black"
- strokeWidth="36"
- strokeLinecap="round"
- data-motion="orange-smile"
- className={cn(
- motion,
- "transform-fill origin-center group-hover/alook:scale-x-105 group-hover/alook:translate-y-[-8%]",
- )}
- />
+ </g>
+ <g ref={foregroundRef} data-face="orange" data-motion-layer="foreground" transform={transformForProgress(0)}>
+ <path d="M73.3744 799.986L80.287 602.034C88.6974 361.193 232.448 217.568 434.621 198.202C507.549 190.84 540.698 92.9006 702.358 98.5459C972.892 107.993 1146.28 345.273 1136.03 638.902L1129.12 836.853C1122.78 1018.31 954.364 1111.52 591.453 1098.85C228.541 1086.18 67.0378 981.442 73.3744 799.986Z" fill="#FF9915" />
+ <path d="M499.787 535.435C538.186 535.435 569.315 505.031 569.315 467.525C569.315 430.019 538.186 399.614 499.787 399.614C461.388 399.614 430.26 430.019 430.26 467.525C430.26 505.031 461.388 535.435 499.787 535.435Z" fill="white" />
+ <path d="M522.424 513.445C540.641 513.445 555.409 498.677 555.409 480.46C555.409 462.243 540.641 447.475 522.424 447.475C504.207 447.475 489.439 462.243 489.439 480.46C489.439 498.677 504.207 513.445 522.424 513.445Z" fill="black" />
+ <path d="M758.494 535.435C796.893 535.435 828.021 505.031 828.021 467.525C828.021 430.019 796.893 399.614 758.494 399.614C720.095 399.614 688.966 430.019 688.966 467.525C688.966 505.031 720.095 535.435 758.494 535.435Z" fill="white" />
+ <path d="M781.131 513.445C799.348 513.445 814.116 498.677 814.116 480.46C814.116 462.243 799.348 447.475 781.131 447.475C762.914 447.475 748.146 462.243 748.146 480.46C748.146 498.677 762.914 513.445 781.131 513.445Z" fill="black" />
+ <path d="M711.48 571.1C722.145 562.995 737.361 565.07 745.466 575.735C753.571 586.399 751.496 601.615 740.832 609.72C680.61 655.489 608.609 669.247 527.369 652.999C514.235 650.372 505.716 637.594 508.343 624.459C510.971 611.325 523.748 602.806 536.883 605.433C606.555 619.368 663.908 607.255 711.48 571.1Z" fill="black" />
</g>
</g>
<defs>
- <clipPath id="animated-alook-clip">
+ <clipPath id={clipId}>
<rect width="1024" height="1024" rx="236" fill="white" />
</clipPath>
</defs>
diff --git a/src/web/src/components/community/server-rail-brand.test.ts b/src/web/src/components/community/server-rail-brand.test.ts
index aa4dcf917..d706c7a05 100644
--- a/src/web/src/components/community/server-rail-brand.test.ts
+++ b/src/web/src/components/community/server-rail-brand.test.ts
@@ -8,6 +8,7 @@ describe("ServerRail Home brand mark", () => {
expect(source).toContain('import { AnimatedAlookLogo } from "./animated-alook-logo"')
expect(source).toContain('<AnimatedAlookLogo className="size-10" />')
expect(source).toContain('aria-label="Home"')
+ expect(source).toContain('data-testid={tid.homeButton}')
expect(source).toContain('<TooltipContent side="right" sideOffset={8}>Home</TooltipContent>')
expect(source).not.toContain('>Direct Messages</TooltipContent>')
expect(source).toContain("group/alook grid size-10")
diff --git a/src/web/src/components/community/server-rail.tsx b/src/web/src/components/community/server-rail.tsx
index babf100ed..457b4fa41 100644
--- a/src/web/src/components/community/server-rail.tsx
+++ b/src/web/src/components/community/server-rail.tsx
@@ -96,6 +96,7 @@ export const ServerRail = memo(function ServerRail({
<button
onClick={onHome}
aria-label="Home"
+ data-testid={tid.homeButton}
className="group/alook grid size-10 shrink-0 place-items-center rounded-[20px] focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"
>
<AnimatedAlookLogo className="size-10" />
diff --git a/src/web/src/lib/community/testids.ts b/src/web/src/lib/community/testids.ts
index 307dc24d1..5acfe27c3 100644
--- a/src/web/src/lib/community/testids.ts
+++ b/src/web/src/lib/community/testids.ts
@@ -18,6 +18,8 @@ export const tid = {
machinePairOpen: "community-machine-pair-open",
machinePairCommand: "community-machine-pair-command",
machinePairCopy: "community-machine-pair-copy",
+ homeButton: "community-home-button",
+ alookLogo: "community-alook-logo",
forumTagDialog: "community-forum-tag-dialog",