-
Notifications
You must be signed in to change notification settings - Fork 394
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
Add an alert box above the header to advertise CML #1543
Conversation
Not the most reusable implementation, but it does the job.
@@ -28,6 +28,10 @@ const LayoutHeader: React.FC<Required<ILayoutModifiable>> = ({ modifiers }) => { | |||
)} | |||
/> | |||
<div className={styles.header}> | |||
<div className={cn(styles.alert, collapsed && styles.collapsed)}> | |||
Check out the newest tool from Iterative,{' '} |
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.
let's add a bit more fun here:
🚀 Check out the newest tool
- make font bigger
- do not mention Iterative
<span role="img" aria-label="rocket"> | ||
🚀 | ||
</span> | ||
Check out the newest tool, |
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.
Needs a space e.g.
Check out the newest tool, | |
Check out the newest tool, |
Check out the newest tool, | ||
<Link href="https://cml.dev">CML</Link>! |
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.
Needs a space e.g.
Check out the newest tool, | |
<Link href="https://cml.dev">CML</Link>! | |
Check out the newest tool, | |
<Link href="https://cml.dev">CML</Link>! |
I'm sure we'll want changes to the text and color, but here's the implementation!
The current implementation is a simple div placed above the header, which collapses to zero height whenever the header collapses. This behavior can also be changed, especially if it has problems on corner cases.