feat: restyle the homepage with a hero section - #9
Merged
Conversation
Replace the plain markdown rendering with a centered hero (title, tagline, Get started / GitHub buttons) followed by three feature cards, and hide the table of contents so the page reads as a homepage rather than a doc page. The prose content and the API map table are unchanged.
The MDX hero was mangled twice over: Infima's .hero class is a flex row, and oxfmt re-wrapping the JSX made MDX hoist the tagline text out of its element. Render the hero and feature cards from src/pages/index.tsx (where JSX is just JSX) and keep the prose as pure Markdown in src/pages/_home-content.md. The hero is now a full-width band above the container, and the prose is constrained to a readable 760px column.
Imported MDX content only receives the theme component mapping (Prism highlighting, code block chrome) when rendered inside @theme/MDXContent.
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.
Summary
Restyle the homepage so it reads as a homepage instead of a doc page:
The prose content and the API map table are unchanged.
pnpm validatepasses.Staging preview: https://asyncband-homepage.staged.apache.org/