-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement responsive landing page #5
feat: implement responsive landing page #5
Conversation
}, | ||
}), | ||
{ | ||
rootMargin: "100% 0% -10% 0%", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How it works: https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/rootMargin
Basically this defines at what point the element should be considered visible.
✅ Successfully deployed static |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fonts are flicking on page (re)load.
Can we find better suitable standard fonts to use while custom ones are being loaded?
Other than that, /ok
Screen.Recording.2024-06-10.at.18.02.34.mov
Fonts won't flicker if you have cache turned on. On the first page load yeah, it's quite impossible to completely get rid of FOUT. I suggest to look into this later, cause right now I see no straightforward way to reduce flickering — especially since fallback fonts are different on different platforms and optimising it for one will hurt the other OS. |
This PR implements a responsive landing page for Testplane docs.
The most convenient way to review would be to open this PR in codespaces and start from
pages/index.tsx
, following all of its dependencies.I've added comments to make review process a bit easier.