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
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/LayoutHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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

<Link href="https://cml.dev">CML</Link>!
</div>
<LayoutWidthContainer
className={cn(styles.container, collapsed && styles.collapsed)}
wide={includes(modifiers, LayoutModifiers.Wide)}
Expand Down
16 changes: 16 additions & 0 deletions src/components/LayoutHeader/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,19 @@
display: block;
padding-top: 2px;
}

.alert {
height: 30px;
line-height: 30px;
font-size: 14px;
text-align: center;
width: 100%;
background-color: #dee;
transition: 0.5s all;
overflow: hidden;

&.collapsed {
height: 0;
transform: translateY(-100%);
}
}