Skip to content

Replace legacy libraries: plain CSS layout, modern reset, Iconify icons, @nuxt/fonts - #7

Closed
mathhulk wants to merge 1 commit into
claude/vibrant-faraday-ux7zgr-nuxtfrom
claude/vibrant-faraday-ux7zgr-libraries
Closed

mathhulk wants to merge 1 commit into
claude/vibrant-faraday-ux7zgr-nuxtfrom
claude/vibrant-faraday-ux7zgr-libraries

Conversation

@mathhulk

Copy link
Copy Markdown
Collaborator

7 of 7 (stacked on the Nuxt migration PR, so this diff shows only the library swaps).

Changes

Before After
Bootstrap 5.0.0-alpha1 grid + utilities (a 2020 alpha, with class names that were renamed before the stable release) Plain CSS. A .container primitive in app/styles/base.css, with each layout (section column, timeline, footer, board cards, location grid, nav bar) sized in its own component using flexbox. A small columns() Sass function keeps the original column widths.
Meyer reset (2011), which strips every default style Modern reset after Josh Comeau and Andy Bell. Menus use role="list", and the site's line-height: 1 base is now set explicitly.
Hand-maintained Icon.vue (Material Icons paths) + icons8 PNG role icons @nuxt/icon + Iconify Material Symbols (Google's successor to Material Icons), rendered as inline SVG at build time. Role icons now take the page's accent colour. The free icons8 licence requires an attribution link, which the site didn't have.
@fontsource CSS imports @nuxt/fonts serving the same @fontsource Poppins files, plus metric-matched fallback faces so text doesn't reflow when the web font loads.
mc-heads.net by username mc-heads.net by Minecraft UUID, so a name change no longer breaks an avatar. The images are byte-identical to the username lookup.

About Crafatar: I implemented it as requested, but Crafatar currently returns its fallback default skin with a server error (x-storage-type: server error) for all 21 board members. It does the same for well-known players such as jeb_, while Mojang's own API answers normally. With the owner's agreement, I used mc-heads by UUID instead. The stored UUIDs mean switching to Crafatar later is a one-line URL change in AvatarImage.vue.

Side effects handled

  • The old Bootstrap column was a flex item, which contained its children's margins. The timeline column now uses display: flow-root to do the same; without it, the Club page shifted at phone and tablet widths.
  • The reset's overflow-wrap: break-word split "Commencement" mid-word. Event headings now use hyphens: auto and otherwise overflow as before.
  • The avatar card's role-icon circle was positioned relative to the old inline <img>, so it's now positioned explicitly.
  • Images are now block-level, which removes the gap under inline images, so the footer is 3px shorter. This is the only layout change.

Verification

  • Lint, nuxt typecheck and nuxt generate pass, and bun install --frozen-lockfile is clean.
  • Compared screenshots against Migrate from Vite + vite-ssg to Nuxt 4 #6 at 390, 800 and 1500px on every page. Each page differs only by the 3px footer shift and the redrawn icons.
  • Built with hydration-mismatch details on: no warnings, no console errors.
  • All interaction checks pass:
    • mobile menu and scroll lock;
    • full screen, Java/Bedrock toggle, scroll buttons;
    • credits hover-pause;
    • per-page accent colour and title;
    • client-side navigation, including leaving the 404 page;
    • Donate opening in a new tab.

Generated by Claude Code

…ns, @nuxt/fonts

- Bootstrap 5.0.0-alpha1 grid/utilities -> plain CSS: a .container
  primitive in app/styles/base.css, and each layout (section column,
  timeline, footer, board cards, location grid, navigation bar) sized in
  its own component with flexbox and a small columns() Sass function
  that keeps the original column widths
- Meyer reset (2011) -> a modern reset after Josh Comeau and Andy Bell;
  menus use role="list", and the site keeps its line-height: 1 base
  explicitly. Images are now block-level, removing the inline-image gap
  under the footer logo (footer is 3px shorter)
- Icons: @nuxt/icon with Iconify's Material Symbols (Google's successor
  to Material Icons), rendered as inline SVG at build time; replaces the
  hand-maintained Icon component and the icons8 PNG role icons, which
  required an attribution link the site didn't have. Role icons now take
  the page's accent colour
- Fonts: @nuxt/fonts serves the same @fontsource Poppins files and adds
  metric-matched fallback faces, so text doesn't reflow when the web font
  loads; Merriweather is resolved the same way when 19th Century is on
- Avatars: mc-heads.net looked up by Minecraft UUID instead of username,
  so a name change no longer breaks an avatar (images are identical).
  Crafatar was evaluated but is currently returning its fallback skin
  with a server error for every player
- Timeline uses display: flow-root to contain its events' margins (the
  Bootstrap column did this implicitly as a flex item), and event
  headings hyphenate rather than breaking mid-word under the new reset

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DxVDmLPux3Tx7RV1v4yznD
@mathhulk mathhulk closed this Nov 22, 2026
@mathhulk
mathhulk deleted the claude/vibrant-faraday-ux7zgr-libraries branch November 23, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants