-
Notifications
You must be signed in to change notification settings - Fork 1
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: Add hero image support for landing page #1189
Conversation
This pull request has been linked to Shortcut Story #2636: Image and video support for landing page hero or badge. |
Looks good! |
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.
lookin good!
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const pageContent = (): any => { | ||
return ( | ||
<> | ||
<h1 className={styles.pageTitle}>{pageTitle}</h1> | ||
<div className={styles.pageTitleContainer}> |
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.
Thought(non-blocking): I wonder if we should refactor this so that most of pageContent
function is in a separate component so that we can display it in storybook. I don't think this needs to happen now though since the page is already not in storybook. Probably we should come to some sort of consensus on this type of thing, maybe next design eng sync.
SC-2636
Proposed changes
Should be merged after https://github.com/USSF-ORBIT/ussf-portal-cms/pull/417
Reviewer notes
You will need the accompanying CMS branch in order for this to work.
Testing is straightforward:
E2E tests:
https://github.com/USSF-ORBIT/ussf-portal/pull/350
Setup
Start the system
yarn services:up yarn dev cd ../ussf-portal-cms yarn dev
Login to the portal http://localhost:3000
Start storybook
Login to storybook http://localhost:6006, though the command above should open it for you
Code review steps
As the original developer, I have
As a reviewer, I have
Check out our How to review a pull request document.
Screenshots