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:
@@ -14,6 +14,13 @@ const Svg = ({ size = 20, children, ...rest }) => (
|
||||
);
|
||||
|
||||
export const DesktopIcons = {
|
||||
Info: (p) => (
|
||||
<Svg {...p}>
|
||||
<circle cx="12" cy="12" r="10" />
|
||||
<line x1="12" y1="16" x2="12" y2="11" />
|
||||
<line x1="12" y1="8" x2="12.01" y2="8" />
|
||||
</Svg>
|
||||
),
|
||||
Map: (p) => (
|
||||
<Svg {...p}>
|
||||
<path d="M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" />
|
||||
|
||||
@@ -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" : ""}`}
|
||||
|
||||
Reference in New Issue
Block a user