refactor(website): decompose monolithic landing page into reusable Astro components#1
Closed
refactor(website): decompose monolithic landing page into reusable Astro components#1
Conversation
…g page, and full doc migration Agent-Logs-Url: https://github.com/100gle/bub/sessions/6f521346-ba7f-4be7-9266-de44c23f0ebd Co-authored-by: 100gle <36526527+100gle@users.noreply.github.com>
…components Agent-Logs-Url: https://github.com/100gle/bub/sessions/9145b9bf-10e2-40b0-9814-e3c523325fa7 Co-authored-by: 100gle <36526527+100gle@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
100gle
April 13, 2026 14:47
View session
…d API docs - Replace per-component <style> blocks with Tailwind CSS v4 utility classes (@tailwindcss/vite plugin; @theme{} tokens in custom.css) - Inline CodeBlock into HeroSection and FeatureCard into FeaturesSection to reduce over-granular component splitting - Move docs content from en/ to root level (root locale config) to fix Starlight 0.33.2 sidebar slug resolution on 404 page render - Add src/content.config.ts for Astro 5.18+ explicit collection config - Create missing api/skills.mdx and api/tools.mdx referenced in sidebar - Fix sidebar slug entries for Starlight 0.33.2 compatibility - Fix /en/ hrefs → / throughout NavBar, HeroSection, InstallCTA Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
src/pages/index.astrowas a 610-line monolith with all styles, markup, and logic inlined. Extracted every logical section into a focused, independently maintainable component undersrc/components/.Component breakdown
BaseLayout.astro— html shell, CSS custom properties, shared utilities (.btn,.section-*)NavBar.astro— sticky nav; links driven by a typed arrayCodeBlock.astro— reusable macOS-style code window (filenameprop +<slot>)HeroSection.astro— hero grid, composesCodeBlockPipelineSection.astro— pipeline flow diagram; steps driven by an arrayFeatureCard.astro— single card (icon/titleprops +<slot>for description HTML)FeaturesSection.astro— 8-card grid, composesFeatureCardInstallCTA.astro— install boxSiteFooter.astro— footerindex.astrois now a 19-line composition:CodeBlockandFeatureCardare generic enough to reuse in doc pages. Each component owns its scoped styles; global tokens stay inBaseLayoutasis:global.