-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: display hero image in news carousel #901
Conversation
This pull request has been linked to Shortcut Story #1394: Display uploaded images for carousel thumbnail. |
3734bef
to
ba70a39
Compare
looks good to me 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Works as expected 🎉
SC-1394
Proposed changes
Articles can have hero images. Those are displayed when viewing an article on the single article page. This PR updates it so that the internal news carousel uses the hero image if it is available. If it is missing the current placeholder that uses the USSF logo will still be displayed.
Reviewer notes
The hero image has a max height of
534px
to match the height of the design in Figma.Setup
Start up storybook
yarn storybook
and view the NewsCarouselItem with Hero componentStart up the servers
Create two internal articles in the cms one with a hero image and one without. Be sure to select
InternalNews
as the category. View the carousel on the news page one should have the default hero image and one should have the custom one. See screenshots below.Code review steps
As the original developer, I have
As code reviewer(s), I have
As a designer reviewer, I have
As a test user, I have
Screenshots
app with hero image
app without hero image
storybook