fix/mobile-navbar-improvements
Description
Redesigns the OWASP Cornucopia site header navigation to match the mobile/desktop layout from the redesign demo, with mentor feedback applied.
Changes:
1.} Replace the legacy mobile dropdown with a left slide-out drawer (backdrop, hamburger toggle, section label for “Get Cornucopia” sublinks). 2.} Add the OWASP wordmark header logo (cornucopia_logo_white_with_text_owasp.svg) instead of plain text branding. 3.} Keep desktop navigation: horizontal links, “Get Cornucopia” checkbox dropdown, and “Play Online” CTA. 4.} Scope nav CSS to .top-nav / .mobile-drawer so global nav flex rules no longer break the drawer layout. 5.} Mobile menu: tighter vertical spacing, readable font sizes, smaller “Play Online” button, no language list in the drawer (per design review).
fixed issue: #2194
AI Tool Disclosure
- [ ] My contribution does not include any AI-generated content
- [X] My contribution includes AI-generated content, as disclosed below:
- AI Tools: ` ChatGPT
- LLMs and versions: GPT-4.1
- Prompts: It help me for thinking and giving ideas and helping me to fix some issue as well where i got confused
Affirmation
- [X] My code follows the CONTRIBUTING.md guidelines
hii @sydseter please take a look at this.
@Adarshkumar0509 instead of taking the user to /copi when pressing Play Online, could we instead be taken to https://copi.owasp.org/ ?
Not very serious, but on Desktop and Pads the Ge Cornucopia sub-menu is pulling a lot to the left for no reason. Which disturbs a bit.
On IPad Mini (Using the Chrome developer tools and selecting the device), the Play online is pushing against the frame so that you get a white vertical border. I am not sure what is the best here. Either hide it, or make it scrollable. Perhaps I have a soultion for you.
Instead of "Play Online" simply use "Play". That will probably take care of it. When the user presses the button, take them to copi.owasp.org