feat(v2): add announcement bar (#2330)

* feat(v2): add announcement bar

* Refactor: move to Layout

* Fixes

* Refactor to simplify

* Changes: id, styles, docs
This commit is contained in:
Alexey Pyltsyn 2020-03-31 19:08:55 +03:00 committed by GitHub
parent c3aa162ea5
commit 0f73a1fad8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 152 additions and 4 deletions

View file

@ -13,6 +13,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
import ThemeProvider from '@theme/ThemeProvider';
import TabGroupChoiceProvider from '@theme/TabGroupChoiceProvider';
import AnnouncementBar from '@theme/AnnouncementBar';
import Navbar from '@theme/Navbar';
import Footer from '@theme/Footer';
@ -76,6 +77,7 @@ function Layout(props) {
)}
<meta name="twitter:card" content="summary_large_image" />
</Head>
<AnnouncementBar />
<Navbar />
<div className="main-wrapper">{children}</div>
{!noFooter && <Footer />}