Skip to content
Merged
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
49 changes: 49 additions & 0 deletions packages/gatsby/src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,44 @@ const MenuNavigation = styled.div`
}
`;

const Banner = styled.div`
background-color: #5474c9;
display: flex;
flex: 1;
align-items: center;
justify-content: center;
padding: 1em;

> :first-child {
margin-right: 1em;
}
`;

const UkrainianFlag = styled.div`
width: 4em;
height: 3em;
background-image: linear-gradient(#0066cc 50%, #ffcc00 50%);
`;

const BannerTextContainer = styled.div`
flex: 1;

color: white;

a {
color: #fff;
text-decoration: underline;
}

> :first-child {
margin-top: 0;
}

> :last-child {
margin-bottom: 0;
}
`;

const MenuSearchBox = styled.div`
display: none;

Expand Down Expand Up @@ -348,6 +386,17 @@ export const Header = ({children}) => {
</a>
</MenuSearchBox>
</MenuContainer>
<Banner>
<UkrainianFlag />
<BannerTextContainer>
<p>
Yarn team stands with the people of Ukraine during this heinous assault on their freedom, their independence and their lives.
</p>
<p>
To support Ukraine in their time of need visit this <a href={`https://ukraine.ua/news/stand-with-ukraine/`}>page</a>.
</p>
</BannerTextContainer>
</Banner>
{children}
</HeaderContainer>
</>;
Expand Down