Skip to content

Commit

Permalink
feat: stopwar
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed Mar 1, 2022
1 parent e9c5be5 commit b13c3de
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs-src/src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,12 @@ export default class App extends LitElement {

const { body } = this._route;
const sidebar = body.sidebar ? cache(body.sidebar) : '';
const stopWar = `
Stop war in Ukraine. <a href="https://dearrussian.wtf" target="_blank">All truth about Russia invasion</a>
`;

return html`
<app-notification class="stop-war" .message="${stopWar}"></app-notification>
<menu-drawer ?disabled="${!this._isMobile}">
<div slot="menu">${this._renderDrawerMenu(sidebar)}</div>
<app-root
Expand All @@ -140,5 +144,12 @@ App.styles = [
:host {
display: block;
}
.stop-war {
position: fixed;
z-index: 1000;
top: 5px;
right: 5px;
}
`
];
4 changes: 4 additions & 0 deletions docs-src/src/components/AppNotification.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ AppNotification.styles = css`
color: #fff;
cursor: pointer;
}
a {
color: inherit;
}
`;

0 comments on commit b13c3de

Please sign in to comment.