diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,6 @@ spindle/spindle-microvm-run result !.gitkeep !appview/pages/static/topbar-search.js -!appview/pages/static/profile-fx/ out/ node_modules/ patches diff --git a/appview/pages/static/profile-fx/orrery.js b/appview/pages/profile-fx/orrery.js rename from appview/pages/static/profile-fx/orrery.js rename to appview/pages/profile-fx/orrery.js --- a/appview/pages/static/profile-fx/orrery.js +++ b/appview/pages/profile-fx/orrery.js @@ -37,6 +37,7 @@ const W = [-2, -1, 0, 1, 2].flatMap((ox) => [-2, -1, 0, 1, 2].map((oy) => [ox, oy])); const cn = 28; const cw = 14; +const bc = "aspect-square rounded-full max-w-full max-h-full size-[4px] bg-gray-200 dark:bg-gray-700"; const wq = "(min-width: 768px)"; const dq = "(prefers-color-scheme: dark)"; const rq = "(prefers-reduced-motion: reduce)"; @@ -122,6 +123,7 @@ const o = (N, j) => { const f = Array.from(N.children, (c) => c.firstElementChild).filter(Boolean); f.forEach((el) => { + el.className = bc; el.style.transition = "none"; el.style.transformOrigin = "center"; el.style.willChange = "background-color, transform"; diff --git a/appview/pages/templates/layouts/profilebase.html b/appview/pages/templates/layouts/profilebase.html --- a/appview/pages/templates/layouts/profilebase.html +++ b/appview/pages/templates/layouts/profilebase.html @@ -55,7 +55,7 @@ {{ template "user/fragments/profileCard" .Card }} {{ if .Card.Punchcard }} {{ block "punchcard" .Card.Punchcard }} {{ end }} {{ with .Card.ProfileScript }} - + {{ end }} {{ end }} diff --git a/nix/pkgs/appview-static-files.nix b/nix/pkgs/appview-static-files.nix --- a/nix/pkgs/appview-static-files.nix +++ b/nix/pkgs/appview-static-files.nix @@ -31,6 +31,7 @@ cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 fonts/ cp -f ${inter-fonts-src}/InterVariable*.ttf fonts/ cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono*.woff2 fonts/ cp -f ${actor-typeahead-src}/actor-typeahead.js . + cp -rf ${src}/appview/pages/profile-fx . ${dolly}/bin/dolly -output logos/dolly.png -size 180 ${dolly}/bin/dolly -output logos/dolly.ico -size 48