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

Tweak share-image dimensions #31

Merged
merged 2 commits into from
Feb 6, 2023
Merged

Conversation

smcclure17
Copy link
Contributor

@smcclure17 smcclure17 commented Feb 3, 2023

Follow up from #30: Update the size of to match the width of share image screens to remove whitespace from screenshots. Some drive-by removals of unneeded stuff

Before:
image
After:
image

@vercel
Copy link

vercel bot commented Feb 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
demo-world-happiness-report ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 6, 2023 at 7:25PM (UTC)

@smcclure17 smcclure17 changed the title Match share image width/heights Tweak share-image dimensions Feb 3, 2023
/**
* Container used to create correct dimensions for preview images.
* Wrap the entirety of the share page content in this container and
* add the className "screenshot" to this element.
*/
export const ScreenshotWrapper = styled(Box)`
margin: 100px auto;
width: 1200px;
height: 630px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a huge deal, but I think 1200x630 was supposed to be the "ideal" size for Facebook/twitter/etc. to avoid extra scaling, etc. So ideally I think we'd keep the size at 1200x630 and adjust the content to fill the space. Is that doable? Probably not worth putting much time into if it's not straightforward though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, that makes sense--my initial hope was to not change the screenshot image component, but I think it makes most sense to update that content. I've made those changes in 33ee289

@smcclure17 smcclure17 merged commit 3d8dc72 into develop Feb 6, 2023
@smcclure17 smcclure17 deleted the smccluere17/share-image-spacing branch February 6, 2023 19:27
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