Merge pull request #115 from SlimusMinus/feat-desktop_logo_feed
All checks were successful
deploy-frontend / deploy (push) Successful in 54s
All checks were successful
deploy-frontend / deploy (push) Successful in 54s
Desktop sidebar: logo opens /feed, add About item linking to start page
This commit is contained in:
@@ -14,6 +14,13 @@ const Svg = ({ size = 20, children, ...rest }) => (
|
|||||||
);
|
);
|
||||||
|
|
||||||
export const DesktopIcons = {
|
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) => (
|
Map: (p) => (
|
||||||
<Svg {...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" />
|
<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")}>
|
<aside className="fd-sidebar" aria-label={t("feed.openMenu")}>
|
||||||
<div className="fd-sb-head">
|
<div className="fd-sb-head">
|
||||||
|
{/* На десктопе логотип ведёт во «Все объявления»; лендинг — пункт «О сервисе» внизу */}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="fd-sb-logo"
|
className="fd-sb-logo"
|
||||||
onClick={() => navigate("/")}
|
onClick={() => handleMain("home")}
|
||||||
title={t("app.name")}
|
title={t("app.name")}
|
||||||
aria-label={t("app.name")}
|
aria-label={t("app.name")}
|
||||||
>
|
>
|
||||||
@@ -161,6 +162,15 @@ export default function DesktopSidebar({
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div className="fd-sb-bottom">
|
<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
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={`fd-sb-item fd-sb-item-sm${activeNav === "reviews" ? " is-active" : ""}`}
|
className={`fd-sb-item fd-sb-item-sm${activeNav === "reviews" ? " is-active" : ""}`}
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
"profile": "Profile",
|
"profile": "Profile",
|
||||||
"reviews": "Reviews",
|
"reviews": "Reviews",
|
||||||
"rules": "Platform Rules",
|
"rules": "Platform Rules",
|
||||||
"support": "Support"
|
"support": "Support",
|
||||||
|
"about": "About"
|
||||||
},
|
},
|
||||||
"categories": {
|
"categories": {
|
||||||
"item": "Item",
|
"item": "Item",
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
"profile": "Профиль",
|
"profile": "Профиль",
|
||||||
"reviews": "Отзывы",
|
"reviews": "Отзывы",
|
||||||
"rules": "Правила площадки",
|
"rules": "Правила площадки",
|
||||||
"support": "Поддержка"
|
"support": "Поддержка",
|
||||||
|
"about": "О сервисе"
|
||||||
},
|
},
|
||||||
"categories": {
|
"categories": {
|
||||||
"item": "Вещь",
|
"item": "Вещь",
|
||||||
|
|||||||
Reference in New Issue
Block a user