From eed8b5fe05a746e13350f99c1248edd938efc3fe Mon Sep 17 00:00:00 2001 From: anemne <63043552+anemne@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:40:56 +0100 Subject: [PATCH] Replace logo from sanity with local svg (#878) --- .vscode/settings.json | 3 +++ public/_assets/variant-logo.svg | 9 +++++++++ src/components/link/link.module.css | 2 +- src/components/navigation/header/Header.tsx | 10 +--------- .../navigation/header/header.module.css | 19 +++++++------------ 5 files changed, 21 insertions(+), 22 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 public/_assets/variant-logo.svg diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..4f789f228 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "i18n-ally.localesPaths": ["i18n", "messages", "src/i18n"] +} diff --git a/public/_assets/variant-logo.svg b/public/_assets/variant-logo.svg new file mode 100644 index 000000000..8f836c7ae --- /dev/null +++ b/public/_assets/variant-logo.svg @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/components/link/link.module.css b/src/components/link/link.module.css index e99c5097d..16b1968d4 100644 --- a/src/components/link/link.module.css +++ b/src/components/link/link.module.css @@ -55,7 +55,7 @@ height: 24px; display: inline-block; -webkit-mask-size: cover; - background-color: var(--primary-black); + background-color: var(--primary-white); -webkit-mask: url("/_assets/arrow.svg") no-repeat 50% 50%; } } diff --git a/src/components/navigation/header/Header.tsx b/src/components/navigation/header/Header.tsx index 3101fd656..cc4f95466 100644 --- a/src/components/navigation/header/Header.tsx +++ b/src/components/navigation/header/Header.tsx @@ -6,7 +6,6 @@ import { useEffect, useState } from "react"; import { FocusOn } from "react-focus-on"; import { defaultLanguage } from "i18n/supportedLanguages"; -import { SanityImage } from "src/components/image/SanityImage"; import LanguageSwitcher from "src/components/languageSwitcher/LanguageSwitcher"; import CustomLink from "src/components/link/CustomLink"; import LinkButton from "src/components/linkButton/LinkButton"; @@ -37,7 +36,6 @@ const filterLinks = (data: ILink[], type: string) => export const Header = ({ navigation, - assets, announcement, currentLanguage, pathTitles, @@ -92,13 +90,7 @@ export const Header = ({