Add Opacity Overlay to Hero Background Image for Improved Readability #559
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.
This PR introduces an overlay with
rgba(9, 31, 64, 0.5)
background color on top of the hero area's background image. The goal of this change is to dim the background image slightly, enhancing the readability of text and the visibility of other elements in the hero area.Changes Made:
<div>
with inline styles forbackgroundColor: rgba(9, 31, 64, 0.5)
and absolute positioning. This div serves as an overlay on the hero background image, ensuring that the image is dimmed without affecting the opacity of the content on top.Rationale:
The background image of the hero area, while visually appealing, can sometimes make the overlaying text and buttons hard to read, especially when there's significant variance in the image's brightness and color. By introducing a semi-transparent overlay, we create a more uniform background that improves text visibility and the overall user experience.
Testing:
This enhancement is a step towards improving the accessibility and usability of our web presence, ensuring that our content is clear and accessible to all users.