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

fix: remove the banner from the homepage #700

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
23 changes: 0 additions & 23 deletions config/docusaurus/announcementBar.js

This file was deleted.

2 changes: 0 additions & 2 deletions config/docusaurus/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const { announcementBar } = require("./announcementBar");
const { navbar } = require("./navbar");
const { footer } = require("./footer");
const consts = require("./consts");
Expand All @@ -8,7 +7,6 @@ const { presets, plugins, algolia } = require("./extensions");
const { LEGACY_ROUTES, REDIRECTS } = require("./routes");

module.exports = {
announcementBar,
navbar,
footer,
consts,
Expand Down
1 change: 0 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ module.exports = {
// @see https://docusaurus.io/docs/sidebar#hideable-sidebar
docs: { sidebar: { hideable: true, autoCollapseCategories: true } },
colorMode: { respectPrefersColorScheme: true },
announcementBar: cfg.announcementBar,
navbar: cfg.navbar,
footer: cfg.footer,
algolia: cfg.algolia,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ export function FeedPage() {

Ну вот, это тоже сделали. Есть еще список вкладок, который можно реализовать аналогичным образом, но давайте повременим с этим, пока не реализуем аутентификацию. Кстати, о ней!

### Аутентификация
### Аутентификация {#authentication}

Аутентификация включает в себя две страницы — одну для входа в систему и другую для регистрации. Они, в основном, очень схожие, поэтому имеет смысл держать их в одном сегменте, `sign-in`, чтобы при необходимости можно было переиспользовать код.

Expand Down
12 changes: 0 additions & 12 deletions src/app/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ html[data-theme="dark"] .ext-link::before {
filter: invert(1);
}

[role="banner"] {
--docusaurus-announcement-bar-height: 42px; // #nowar

font-size: 1.2rem; // #nowar
}

/* Debug only, for simulating searchBox on devMode
.navbar__items:last-child {
border-right: 161px solid black;
Expand Down Expand Up @@ -91,12 +85,6 @@ html[data-theme="dark"] .ext-link::before {
}
}

@media (width <= 600px) {
[role="banner"] {
font-size: 1rem; // #nowar
}
}

.medium-zoom-overlay,
.medium-zoom-image--opened {
z-index: 999;
Expand Down
Loading