-
Notifications
You must be signed in to change notification settings - Fork 60
Implement bare-bones Hero component
#6
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
Conversation
|
| Blazing fast cloud | ||
| <br /> | ||
| developer environments | ||
| </> |
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.
heading and description accept a string or a React element to allow marketing to control linebreaks if necessary
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.
ahh that makes sense.. great idea 👍
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.
A potential downside to markup-based linebreaks could be responsive behaviour? Would it be better to recommend granular control via css instead?
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.
A potential downside to markup-based linebreaks could be responsive behaviour? Would it be better to recommend granular control via css instead?
Maybe. We use linebreaks in other marketing sites so I wanted to enable that for now. But I'm open to changing this if we find a better CSS solution later.
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-tree-0cc944a10-6.centralus.1.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-tree-0cc944a10-6.centralus.1.azurestaticapps.net |
| type Props = { | ||
| children: React.ReactNode | ||
| export type HeroProps = { | ||
| heading: string | React.ReactElement |
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.
Could you use React.ReactNode instead, which should cover both?
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.
|
@colebemis I have a test |

Summary
Implements a bare-bones
Herocomponent.Next steps
Tracked in https://github.com/github/primer/issues/747