Skip to content

Commit

Permalink
Add a temporary BLACKFRIDAY banner
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Nov 23, 2023
1 parent 4845110 commit 81cc745
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/components/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,32 @@ import "prismjs/themes/prism-tomorrow.css";
import { LinkButton } from './form';
import { getVisibilityProps } from './modal';

import { FullWidthSection } from './full-width-section';

const BlackFridayHeader = styled(FullWidthSection)`
min-height: 40px;
background-color: #202020;
color: #fafafa
${p => p.theme.fontSizeText};
padding: 10px;
display: flex;
flex-direction: vertical;
align-items: center;
justify-content: center;
flex-wrap: wrap;
text-align: center;
p {
margin: 3px 3px;
}
a {
color: #fff;
}
`;

const Main = styled.main`
font-family: Lato, Helvetica, Arial, sans-serif;
Expand Down Expand Up @@ -289,6 +315,12 @@ export class Layout extends React.Component {
</Nav>
</Header>

<BlackFridayHeader>
<p>
Use code <strong>BLACKFRIDAY</strong> before Tuesday for <strong>50% off annual purchases</strong> of <a href="/get-pro/">HTTP Toolkit Pro</a>!
</p>
</BlackFridayHeader>

{this.props.children}

<Footer {...visibilityProps}>
Expand Down

0 comments on commit 81cc745

Please sign in to comment.