Skip to content
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

Merged
merged 4 commits into from
Jun 15, 2024

Conversation

shadowusr
Copy link
Member

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.

},
}),
{
rootMargin: "100% 0% -10% 0%",
Copy link
Member Author

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.

Copy link

github-actions bot commented Jun 9, 2024

✅ Successfully deployed static

static/icons/arrow-link.svg Outdated Show resolved Hide resolved
Copy link
Member

@KuznetsovRoman KuznetsovRoman left a 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

plugins/svg-fix.ts Outdated Show resolved Hide resolved
src/components/FeatureBlock/index.tsx Outdated Show resolved Hide resolved
src/components/FeatureBlock/index.tsx Outdated Show resolved Hide resolved
src/components/FeatureBlock/index.tsx Show resolved Hide resolved
src/components/FeatureCard/index.tsx Outdated Show resolved Hide resolved
src/components/GradientUnderline/index.tsx Outdated Show resolved Hide resolved
src/components/LinkBadge/index.tsx Outdated Show resolved Hide resolved
src/scss/custom.css Outdated Show resolved Hide resolved
docusaurus.config.ts Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/components/DemoStats/index.tsx Outdated Show resolved Hide resolved
src/components/FeatureBlock/index.tsx Outdated Show resolved Hide resolved
src/components/FeatureBlock/index.tsx Outdated Show resolved Hide resolved
src/scss/custom.css Outdated Show resolved Hide resolved
@shadowusr
Copy link
Member Author

shadowusr commented Jun 15, 2024

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

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.

@shadowusr shadowusr merged commit 52f5135 into master Jun 15, 2024
2 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.

3 participants