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

STAT-931 - Create reusable hero component for all pages #46

Conversation

Mat-Mwi
Copy link
Contributor

@Mat-Mwi Mat-Mwi commented Aug 21, 2024

No description provided.

@Mat-Mwi Mat-Mwi marked this pull request as ready for review August 26, 2024 14:16
---
<div class={containerClasses}>
<div class="w-12/12 lg:order-last lg:w-6/12">
<Image src={heroImage} alt="hero image" densities={[1, 2, 3, 4]} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Mat-Mwi - let's change the alt text from "hero image" to the page headline.

const containerClasses = `container flex flex-wrap mx-auto px-[0.5rem] sm:px-[1rem] md:px-[1.5rem] lg:px-[2rem] xl:px-[1.5rem] 2xl:px-[3.62rem] 3xl:px-[6.62rem] ${bottomMargin}`;
---
<div class={containerClasses}>
<div class="w-12/12 lg:order-last lg:w-6/12">
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Mat-Mwi - if you take a look at this at intermediate sizes, the image becomes so large it pushes the text below the fold. Can you please revisit, creating a div to wrap around the text, centered, and shrank per breakpoint so the image and the text is above the fold at small and medium breakpoints?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I posted #46 (review) before seeing this. Same feedback. 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have addressed this feedback and it is ready for another look. The images width is restricted on smaller breakpoints and it is centered.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure this fulfills the design intention. We're heading into a 4-day weekend here, let's pick up the conversation next week.

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

@chadwhitacre - what screen size is this (~992ish - 1100ish)? I feel like it could fit the desktop design.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is at 1023 pixels, one short of the breakpoint.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@chadwhitacre Great, we're going to switch to desktop view as Brian suggested and see if that works better. I'm going to see if I can have this ready for review by Tuesday.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good, thanks!

Copy link
Contributor

@chadwhitacre chadwhitacre left a comment

Choose a reason for hiding this comment

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

Good progress, but we have more to do to eliminate cases of the hero image crowding out content. Here's an example at 1023 x 700.

image

<Image class="w-[30rem] mx-auto md:w-full" src={heroImage} alt={headline} densities={[1, 2, 3, 4]} />
</div>
<div class="w-12/12 mb-[1.5rem] mt-[0.78375rem] md:my-auto md:pr-[2.02625rem] md:w-1/2">
<h1 class="mb-[1rem] text-[2.5rem] text-black 2xl:text-[3.75rem]">{headline}</h1>
Copy link
Collaborator

Choose a reason for hiding this comment

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

@elijames-codecov elijames-codecov merged commit b3a9673 into fairsource:main Sep 19, 2024
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.

3 participants