Skip to content

fix: smooth the landing page navbar handover and open the FAQ to crawlers - #201

Merged
Rakesh-46-VR merged 3 commits into
mainfrom
fix/landing-page-scroll-and-seo
Aug 30, 2026
Merged

fix: smooth the landing page navbar handover and open the FAQ to crawlers#201
Rakesh-46-VR merged 3 commits into
mainfrom
fix/landing-page-scroll-and-seo

Conversation

@yash-sangwan

Copy link
Copy Markdown
Member

What this does

Scroll jerk between the two navbars
The wrapper below the hero switched its top padding from 0 to 56px the moment the mobile bar appeared, so the whole page jumped. It is held open all the time now, and the hero covers it until it is needed.

Both navbars now hand off at the same point
They used to watch different things, so the floating nav showed up while the hero was still on screen. One IntersectionObserver on the hero sentinel drives both, replacing two scroll listeners that measured the page on every frame.

The floating navbar was built mid scroll
It mounted the moment the hero went past, which meant building the whole bar on the frame the browser was already busy. It is built with the page now and just fades in.

Discord card opened off screen
The hero navbar always opened its card upward, but that navbar scrolls up with the page, so there was no room left above it. The card now measures both sides and picks the one that fits.

Discord card was invisible when it opened downward
The hero section clips its overflow, so a card hanging below the navbar got cut off. The card is portalled to the body now, the same fix the sidebar already used.

Discord arrow drew over the navbar
The arrow reaches about 112px sideways and paints above everything, so it landed on the theme toggle. It checks what is beside it now and is left out when something is in the way.

FAQ answers were invisible to search engines
All eight answers only existed after a click. They are in the page now, collapsed with CSS instead of removed, and the accordion finally has aria-expanded and aria-controls.

No FAQ structured data
The landing page is a small server shell now, which lets it output FAQPage JSON-LD built from the same data the section renders, so the two cannot drift apart.

Fake Google verification tag
Every page shipped content="your-google-verification-code". It reads GOOGLE_SITE_VERIFICATION from the server env now and is left out when that is not set.

Feature text changed itself every 6 seconds on mobile
Below the lg breakpoint the image next to the list is hidden, so the timer only swapped the paragraph you were reading, and pause is tied to hover which phones never fire. Rotation now needs a wide screen and a section that is actually on screen.

The 500ms fade never ran
The image is remounted on every change, and a brand new element has nothing to fade from, so it was a hard cut. It fades in properly now.

Three GitHub star requests per page load
The cache is only written when a response lands, so all three counters missed it and all three fetched. They share one request now.

Dead scroll listener on the blog
The blog navbar tracked a sentinel on every scroll into two values nothing rendered. Removed.

How to test

  1. pnpm dev:frontend, open / on desktop and scroll out of the hero. No jump, and the navbars swap cleanly.
  2. Scroll down a bit and hover the Discord icon in the hero navbar. The card should be fully visible, flipping below when there is no room above, with no arrow.
  3. View source on / and search for an FAQ answer and for FAQPage. Both should be there.
  4. Open / on a phone width. The feature text should stay put instead of cycling.
  5. Network tab should show one api.github.com request, not three.

Note: none of this has been checked in a real browser yet, only reasoned from the code plus the test suite.

…lers

The two navbars swapped at different scroll points, and one of them pushed
everything below the hero down by 56px in the middle of a scroll. The FAQ
answers only existed after a click, so no crawler ever saw them. Also fixes
the Discord card clipping, the feature rotation on mobile, and a triple
GitHub star fetch.
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
opndrive Ready Ready Preview Aug 30, 2026 1:46pm
opndrive-docs Ready Ready Preview Aug 30, 2026 1:46pm

@Rakesh-46-VR

Copy link
Copy Markdown
Member

@yash-sangwan
Mobile UI has some issues regarding the navbar. Check once

Reserved room below the hero is a divider strip now rather than a bare band of
body colour, the hero observer no longer misses a jump straight past it, and the
menu caps to the viewport so its last button stays reachable.
@yash-sangwan

Copy link
Copy Markdown
Member Author

@Rakesh-46-VR now check

@Rakesh-46-VR
Rakesh-46-VR merged commit b942a0c into main Aug 30, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants