Repository navigation
fix(home): improve hero and demo section image quality - #516
Merged
Merged
Conversation
Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
Contributor
|
YvesCesar
marked this pull request as draft
October 16, 2026 16:01
Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
YvesCesar
marked this pull request as ready for review
October 16, 2026 16:18
Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
vitormattos
approved these changes
Oct 19, 2026
Contributor
|
🚀 Starting production deploy of site header and footer fragments... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The hero photo and the "See LibreSign in action" section looked low resolution on the home page. This PR replaces the three images, switches them to WebP and makes the hero image responsive.
hero/hero-image)srcset, 14 to 79 KBconection_wallpaper_mobile)libresign_mobile_acess_oficial)Details
REUSE.tomland the license text was added toLICENSES/CC0-1.0.txt(reuse lint: no bad, missing or unused licenses).hero-sectionaccepts two optional parameters, used only by the home page:imageSrcsetandimageSizes. Because the image usesobject-fit: coverwith a 2.4:1 photo, it is drawn wider than the viewport below 1728px (for example 1250 CSS px on a 375px phone). The home declaressizesfrom each breakpoint's hero height cap times 2.4, so no screen gets a file smaller than the drawn width: a 375px phone at 2x downloads the 2880px file (79 KB), still far below the previous 945 KB.imagePositionMobile, exposed as--ud-hero-image-position-mobileand applied to the<img>up to 991px. The home uses75% topto keep the person in frame on phones and tablets. Other pages are unchanged.d538867, aligned onto the current mockup, and the frame and keyboard were upscaled to 2x. Lossy WebP was kept on purpose: on the screen text it measures 40.7 dB PSNR against the lossless render (no visible difference at 2x zoom), while lossless would weigh 869 KB.How to test
hero-image-1440.webpat 375px and 1x).