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

fix: extra whitespace on landing page #840

Merged
merged 2 commits into from
Nov 23, 2022
Merged

fix: extra whitespace on landing page #840

merged 2 commits into from
Nov 23, 2022

Conversation

iDarkLightning
Copy link
Contributor

βœ… Checklist

  • I have followed every step in the contributing guide (updated 2022-10-06).
  • The PR title follows the convention we established conventional-commit
  • I performed a functional test on my final commit

Changelog

Display the background pattern via a pseudo-element bg-image instead of an image tag. Fixes unnecessary whitespace on specific screen sizes

Screenshots

Current:
image

Changed:
image

πŸ’―

@changeset-bot
Copy link

changeset-bot bot commented Nov 23, 2022

⚠️ No Changeset found

Latest commit: 2e04821

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Nov 23, 2022

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated
create-t3-app βœ… Ready (Inspect) Visit Preview Nov 23, 2022 at 0:14AM (UTC)

@github-actions github-actions bot added the πŸ“š documentation Improvements or additions to documentation label Nov 23, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 23, 2022

⚑️ Lighthouse report for the changes in this PR:

Category Score
🟒 Performance 100
🟒 Accessibility 100
🟒 Best practices 100
🟠 SEO 86
🟠 PWA 54

Lighthouse ran on https://create-t3-app-git-fork-idarklightning-next-t3-oss.vercel.app/

@c-ehrlich
Copy link
Member

I'm not seeing the background at all on the test deployment. But your screenshot of the fix has it. Could you see what's the difference between between your local environment and the deployment?

image

vs

image

@iDarkLightning
Copy link
Contributor Author

Weird, it seems to be trying to find the image on the path /assets/images/background-image.svg on the preview deployment. That's giving a 404 which results in the image not being shown. Locally, it works fine and just targets images/background-image.svg.

Not sure why this is happening, do you know if this is something to do with the preview deployment system here? I've never faced this issue on vercel before

@iDarkLightning
Copy link
Contributor Author

...would love an explanation on why that makes a difference but it seems to be working now

@c-ehrlich
Copy link
Member

...would love an explanation on why that makes a difference but it seems to be working now

I believe this might be because images are served differently depending on environment - in staging we build the static site, on your computer it's coming from the development server.

Could check this theory by reverting to the "broken" version, and building / starting the static site locally.

Copy link
Member

@c-ehrlich c-ehrlich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the contribution :)

@c-ehrlich c-ehrlich merged commit 9f46ab1 into t3-oss:next Nov 23, 2022
@iDarkLightning iDarkLightning mentioned this pull request Nov 23, 2022
3 tasks
devvianto605 pushed a commit to devvianto605/create-devviantex-nextjs-app-deprecated that referenced this pull request Jun 9, 2024
* fix: extra whitespace on landing page

* fix: add starting / to bg path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
πŸ“š documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants