feat: land component pages on main + footer polish - #3
Merged
Conversation
The site was a client-rendered SPA: crawlers and AI bots that don't run JS saw an empty <div id="app"> — every good meta tag wrapped no body. This adds static prerendering and one indexable page per component, turning a single URL into 16. - Adopt vite-ssg + vue-router; prerender / and /components/<slug> to real HTML with per-route <head> (title, description, canonical, OG, BreadcrumbList + SoftwareSourceCode JSON-LD) via unhead - Add a component catalog as the single source of truth for the gallery, the detail pages, the CLI install picker and the sitemap - Split App.vue into a layout (header/footer/theme) + Home and ComponentDetail views; cards deep-link to their pages for internal linking; live demos stay client-only so prerendered HTML is text - Generate sitemap.xml from the registry at build (home + every page) - Switch Tailwind v4 to its official Vite plugin so CSS resolves in the SSR build; move overridable head tags out of index.html to avoid duplicate tags Home body and all component prose now render server-side; verified no hydration warnings and no duplicate meta tags.
Swap arbitrary values for their v4 shorthand tokens across the components and site: - opacity modifiers: /[0.04] -> /4, /[0.06] -> /6, /[0.07] -> /7, /[0.10] -> /10, /[0.02] -> /2 - transition duration: duration-[400ms] -> duration-400 - CSS variable: max-h-[var(--h)] -> max-h-(--h) Compiled CSS is byte-for-byte equivalent (verified max-height:var(--h) and .duration-400 in the build output); this only clears the editor "can be written as" hints.
- Rework the footer into a two tier layout: brand, tagline, and nav on top, copyright and build credit below. Drops the placeholder "More on the way" line. - Add a hero line stating the components are plain Vue, Tailwind, and motion-v with no component library. - Ignore the Playwright MCP output directory.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Why this exists
PR #2 (the vite-ssg per-component pages work) was stacked on
feat/input-components-and-ciand got merged into that branch, not intomain. Somaincurrently only has PR #1: the original single-page site with the four new components bolted on. The whole SSG layer (per-component pages, prerendering, sitemap, the layout split) never reachedmain, and the live site still shows the old footer.This PR targets
maindirectly to land it.What lands
vite-ssg+vue-router,/and/components/<slug>prerendered to static HTML, per-route head + JSON-LD, the component catalog, the Tailwind Vite plugin, sitemap generation. (Commitse250300,1f001a0.)min-h-45) and gitignores the Playwright MCP output dir.Verified
16 static pages build; lint, format, and type-check pass; footer and hero checked in a browser.