Closed jeromehardaway closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vets-who-code-app | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 17, 2024 1:15am |
This pull request includes changes to the HeroArea
component in src/containers/hero/layout-04/index.tsx
. The changes introduce an overlay to the hero image and include a conditional rendering for a video modal.
Changes to HeroArea
component:
src/containers/hero/layout-04/index.tsx
: Added a div with absolute positioning and a semi-transparent background color to create an overlay effect on the hero image.src/containers/hero/layout-04/index.tsx
: Added conditional rendering for a ModalVideo
component, which will be displayed if a video
prop is provided.
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.