Open jyotishpro opened 1 week ago
The NavBar
component in NavBar.tsx
has been enhanced with new functionality for language selection and improved styling. A new method, getUniqueLangs
, retrieves unique language options based on the current path, while the changeLanguage
function has been updated for better handling of language changes and URL generation. Additionally, styling adjustments have been made to the SearchButton
component, including a new background image from an SVG icon. These modifications collectively improve user interaction and visual presentation in the navigation bar.
File Path | Change Summary |
---|---|
components/navigation/NavBar.tsx | - Added method: getUniqueLangs() - Updated method: changeLanguage(locale: string, langPicker: boolean) - Added variable: const loupeSvg for styling adjustments to SearchButton |
components/navigation/MobileNavMenu.tsx | - Added variable: const loupeSvg for SVG background in SearchButton - Increased padding for SearchButton from p-2 to p-4 |
Objective | Addressed | Explanation |
---|---|---|
Algolia search icon visibility on navbar (#3371) | ✅ |
changeLanguage
function in the main PR, as both involve enhancing the user interface for language selection.ready-to-merge
🐰 In the navbar, a change so bright,
Languages dance, a delightful sight.
With a search icon now bold and clear,
Hop along, all is well, have no fear!
SVG shines, and options abound,
In this lovely space, joy can be found! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Built without sensitive environment variables
Name | Link |
---|---|
Latest commit | 117e2a22afea50de1c4d456573681aa49bcd4b59 |
Latest deploy log | https://app.netlify.com/sites/asyncapi-website/deploys/6738416103cc140008a169eb |
Fixes #3371
⚡️ Lighthouse report for the changes in this PR: | Category | Score |
---|---|---|
🔴 Performance | 39 | |
🟢 Accessibility | 98 | |
🟢 Best practices | 92 | |
🟢 SEO | 100 | |
🔴 PWA | 33 |
Lighthouse ran on https://deploy-preview-3400--asyncapi-website.netlify.app/
Description fix: #3371
Related issue(s) -Fixes #3371
Summary by CodeRabbit
New Features
Style
These changes enhance user experience by providing better language options and a visually appealing interface.