Add Pro sidebar link and split nav wordmarks into icon + word#103
Conversation
Add a "Pro" link at the bottom of the sidebar: a green rocket icon (reused from moq/doc) plus a white "Pro" wordmark (derived from the moq-pro logo). It points to pro.moq.dev on live and pro.moq.wtf on staging, switched via import.meta.env.MODE. To support an icon-only hover effect, split each combined nav wordmark (demo/blog/docs/github/discord) into separate `-icon` and `-word` SVGs. Each path keeps its original coordinates; only the viewBox is cropped, so the artwork is pixel-identical. Every nav icon now rotates -6deg on hover (group-hover:-rotate-6) while its word stays put. Also recenter the Discord viewBox (its source art sat high in the canvas, leaving a gap before Pro) so the column has even spacing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 57 minutes and 13 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/layouts/global.astro`:
- Around line 98-99: Update the img element that references
"/layout/github-word.svg" so its alt attribute uses correct brand casing: change
alt="Github" to alt="GitHub" to fix the accessibility/user-facing text on the
<img> with src "/layout/github-word.svg".
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: d16892cb-c001-4b0d-a999-c5dae968186b
⛔ Files ignored due to path filters (12)
public/layout/blog-icon.svgis excluded by!**/*.svgpublic/layout/blog-word.svgis excluded by!**/*.svgpublic/layout/demo-icon.svgis excluded by!**/*.svgpublic/layout/demo-word.svgis excluded by!**/*.svgpublic/layout/discord-icon.svgis excluded by!**/*.svgpublic/layout/discord-word.svgis excluded by!**/*.svgpublic/layout/docs-icon.svgis excluded by!**/*.svgpublic/layout/docs-word.svgis excluded by!**/*.svgpublic/layout/github-icon.svgis excluded by!**/*.svgpublic/layout/github-word.svgis excluded by!**/*.svgpublic/layout/pro.svgis excluded by!**/*.svgpublic/layout/rocket.svgis excluded by!**/*.svg
📒 Files selected for processing (1)
src/layouts/global.astro
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
What
Adds a Pro link at the bottom of the sidebar and reworks the nav wordmarks so each icon can animate independently.
moq/doc) + a white "Pro" wordmark (derived from themoq-prologo). Links to pro.moq.dev on live and pro.moq.wtf on staging, selected viaimport.meta.env.MODE.demo/blog/docs/github/discord) is split into separate-iconand-wordfiles. Paths keep their original coordinates — only theviewBoxis cropped — so the artwork is pixel-identical to before.-6degon hover (group-hover:-rotate-6) while its word stays put.viewBox(its source art sat high in the canvas, leaving a gap before Pro) so the column spacing is even.Why
The sidebar needed a Pro entry, and the existing wordmarks baked the icon and word into a single SVG — so an icon-only hover animation wasn't possible without splitting them.
Notes for reviewers
demo.svg, etc.) are removed; git shows them as renames to the-word.svgfiles.getBBox()and cropping at the gap between the icon and the word, so no path data was hand-edited.#00be2d) to match the sibling icons; the "Pro" wordmark was recolored crimson → white with the black stroke removed.bun run check(Biome + tsc) passes.🤖 Generated with Claude Code