Desktop sidebar: logo opens /feed, add About item linking to start page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SlimusMinus
2026-10-26 22:01:35 +03:00
parent d95167d3f3
commit ed4684c0ed
4 changed files with 22 additions and 3 deletions

View File

@@ -89,10 +89,11 @@ export default function DesktopSidebar({
<>
<aside className="fd-sidebar" aria-label={t("feed.openMenu")}>
<div className="fd-sb-head">
{/* На десктопе логотип ведёт во «Все объявления»; лендинг — пункт «О сервисе» внизу */}
<button
type="button"
className="fd-sb-logo"
onClick={() => navigate("/")}
onClick={() => handleMain("home")}
title={t("app.name")}
aria-label={t("app.name")}
>
@@ -161,6 +162,15 @@ export default function DesktopSidebar({
</nav>
<div className="fd-sb-bottom">
<button
type="button"
className="fd-sb-item fd-sb-item-sm"
onClick={() => navigate("/")}
title={t("nav.about")}
>
<span className="fd-sb-icon"><DesktopIcons.Info /></span>
<span className="fd-sb-label">{t("nav.about")}</span>
</button>
<button
type="button"
className={`fd-sb-item fd-sb-item-sm${activeNav === "reviews" ? " is-active" : ""}`}