Repository navigation
Conversation
Root-cause fixes: - Patch vite-ssg's duplicate-<link> check (`attrs.file` -> `attrs.href`) with `bun patch`, replacing the regex dedupe in vite.config.ts - Page scroll lock is CSS (`body:has(.mobile-navigation, .location-full-screen)`) instead of two components toggling a body class - Accent colours live in route meta and are set as --accent-color on the app root; the tint uses color-mix() and the blob is a mask, replacing a route-name-keyed SCSS map that generated a data-URL per colour (four of them for routes that no longer exist) - One navigationLinks list (src/site.ts) drives both the desktop bar and the mobile menu, which had drifted: mobile said "Explore" and had no link to Club - Campus scroll buttons use scrollIntoView + scroll-margin-top instead of offsetTop arithmetic Simplifications: - Shared URLs (Discord, Patreon, builder form) defined once in src/site.ts - Button/LinkButton/IconButton: let @click fall through instead of re-emitting; drop unused props and CSS (progress spinners, IconButton link/colour/notification variants); IconButton is a real <button>, LinkButton a plain <a> - Options uses defineModel; Campus binds v-model to "Java"/"Bedrock" - framed-image Sass mixin replaces three copies of the image-frame CSS; aspect-ratio replaces padding-top ratio hacks - Club renders both boards from one v-for; builders.ts is a plain array; dead .space-wrapper @extend and col-xs-12 removed - Inline single-use computeds, v-bind="event" in Timeline, merged duplicated media-query blocks Efficiency: - Navbar/footer/mobile logo uses a 2.3 KB 160px image instead of the 16 KB 920px one; poster re-encoded at 1280px (77 KB -> 35 KB) and preloaded with high priority on the home page - Background video is fetched and played after mount, and skipped for prefers-reduced-motion and Save-Data - Location is loaded on demand by Event, so /club no longer downloads it - Server status: a tab coming back into view only refetches when the last check is over a minute old - Remove unused images (logo.png, logo-light.png, seven avatar icons); favicon.ico moves to the site root where browsers request it Content: the 404 page linked to /merchandise (removed on develop), which itself 404s; it now links to the Club page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DxVDmLPux3Tx7RV1v4yznD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
5 of 5 (stacked on the TypeScript PR, so this diff shows only the cleanup). Net change: −623 / +284 lines.
This comes out of a whole-codebase review covering reuse, simplification, efficiency, and whether fixes address the root cause rather than the symptom.
Root-cause fixes (replacing workarounds)
<link>s: the real bug is a one-word typo in vite-ssg (attrs.fileshould beattrs.href). It's now fixed withbun patch(patches/vite-ssg@28.3.0.patch), and the regex post-processing that Convert to TypeScript #4 added tovite.config.tsis removed.body:has(.mobile-navigation, .location-full-screen)in CSS. Previously two components each toggled a sharedbody.disabledclass without knowing about each other.meta.accenton each route, set as--accent-coloron the app root.color-mix()and the blob is a CSS mask.src/site.ts) drives both the desktop bar and the mobile menu. They had drifted apart: the mobile menu said "Explore" and had no link to Club. It now matches desktop.scrollIntoView+scroll-margin-topinstead ofoffsetToparithmetic. They land in the same place as before (128px from the top).Simplifications
src/site.ts.@clickfalls through to the element instead of being re-emitted by hand.<button>and LinkButton a plain<a>.defineModel, and Campus bindsv-modelto"Java"/"Bedrock".framed-imageSass mixin replaces three copies of the image-frame CSS, andaspect-ratioreplaces thepadding-topratio hacks.v-for;builders.tsis a plain array instead of one space-separated string;.space-wrapper@extendand the undefinedcol-xs-12class are removed.v-bind="event", and duplicated media-query blocks are merged.Efficiency
prefers-reduced-motionand Save-Data./clubno longer downloads it.logo.png,logo-light.png, seven avatar icons).favicon.icomoves to the site root, where browsers request it.Content fix
The 404 page linked to
/merchandise, which was removed ondevelopand itself 404s. It now links to the Club page.Also found during review: corrupt background video (fixed in #2)
A full ffmpeg decode of the background video from #2 reported invalid NAL units throughout. I re-encoded it with the same settings (0 decode errors, 1,410 frames, 1.85 MB), committed it to the #2 branch, and merged it forward through #3 and #4.
Considered but not changed
<br>s hidden by media queries with proper markup. That would change line wrapping at some widths.Verification
vue-tsc,eslintand the SSG build all pass; built with hydration-mismatch details on: no warnings, no console errors./campusand/are within a few hundred pixels (anti-aliasing);/clubis identical except the shuffled credits;#9155ff);Generated by Claude Code