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

Add an alert box above the header to advertise CML #1543

Merged
merged 6 commits into from
Jul 7, 2020
Merged

Conversation

rogermparent
Copy link
Contributor

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.

Not the most reusable implementation, but it does the job.
@shcheklein shcheklein temporarily deployed to dvc-landing-cml-alert-b-b60qt3 July 7, 2020 20:03 Inactive
@@ -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,{' '}
Copy link
Member

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

@shcheklein shcheklein temporarily deployed to dvc-landing-cml-alert-b-b60qt3 July 7, 2020 21:04 Inactive
@shcheklein shcheklein temporarily deployed to dvc-landing-cml-alert-b-b60qt3 July 7, 2020 21:04 Inactive
@shcheklein shcheklein temporarily deployed to dvc-landing-cml-alert-b-b60qt3 July 7, 2020 21:06 Inactive
@shcheklein shcheklein temporarily deployed to dvc-landing-cml-alert-b-b60qt3 July 7, 2020 21:12 Inactive
@shcheklein shcheklein merged commit 0c8484d into master Jul 7, 2020
<span role="img" aria-label="rocket">
🚀
</span>
Check out the newest tool,
Copy link
Contributor

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.

Suggested change
Check out the newest tool,
Check out the newest tool,&nbsp;

Comment on lines +35 to +36
Check out the newest tool,
<Link href="https://cml.dev">CML</Link>!
Copy link
Contributor

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.

Suggested change
Check out the newest tool,
<Link href="https://cml.dev">CML</Link>!
Check out the newest tool,&nbsp;
<Link href="https://cml.dev">CML</Link>!

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