From e64dd92381c252306a4e0ccacc32606da36ccb39 Mon Sep 17 00:00:00 2001 From: voenkomatiwe <71823442+voenkomatiwe@users.noreply.github.com> Date: Fri, 5 Jan 2024 14:54:48 +0200 Subject: [PATCH] fix: jumbotron update, and mobile header (#503) --- explorer/src/assets/locales/en/en.json | 8 ++-- explorer/src/components/Header/index.tsx | 10 +++-- explorer/src/components/SearchInput/index.tsx | 6 ++- explorer/src/constants/index.ts | 4 +- .../pages/Home/components/Issuers/index.tsx | 20 ++-------- .../pages/Home/components/Jumbotron/index.tsx | 34 ++++++++++++++++ .../Home/components/TitleSearch/index.tsx | 39 ------------------- explorer/src/pages/Home/index.tsx | 6 +-- 8 files changed, 58 insertions(+), 69 deletions(-) create mode 100644 explorer/src/pages/Home/components/Jumbotron/index.tsx delete mode 100644 explorer/src/pages/Home/components/TitleSearch/index.tsx diff --git a/explorer/src/assets/locales/en/en.json b/explorer/src/assets/locales/en/en.json index 47ca882d..3987824e 100644 --- a/explorer/src/assets/locales/en/en.json +++ b/explorer/src/assets/locales/en/en.json @@ -50,11 +50,9 @@ "system": "System" }, "home": { - "title": "Verax is an open source, public registry for storing attestations", - "issuers": { - "title": "Explore the ways of getting the attestation", - "description": "Find out how you can get attestations from the following providers that you can use across the ecosystem" - }, + "title": "Your Reputation Under Your Control", + "description": "Explore the ecosystem to find out how you can unlock your data from across the web and share it with the world on your own terms", + "exploreEcosystem": "or explore the ecosystem", "info": { "issueYourAttestation": "Want to issue your own attestation?", "aboutVerax": "Want to know more about Verax?" diff --git a/explorer/src/components/Header/index.tsx b/explorer/src/components/Header/index.tsx index 47e2640f..6a383ad7 100644 --- a/explorer/src/components/Header/index.tsx +++ b/explorer/src/components/Header/index.tsx @@ -53,7 +53,11 @@ export const Header: React.FC = ({ isOpened, setIsOpened }) => {
- {isDarkMode ? : } + {isDarkMode ? ( + + ) : ( + + )} {!isAdaptive && }
@@ -81,14 +85,14 @@ export const Header: React.FC = ({ isOpened, setIsOpened }) => { {({ isConnected, show }) => { if (!show) return <>; - return (
+ + + + ); +}; diff --git a/explorer/src/pages/Home/components/TitleSearch/index.tsx b/explorer/src/pages/Home/components/TitleSearch/index.tsx deleted file mode 100644 index 20fe9929..00000000 --- a/explorer/src/pages/Home/components/TitleSearch/index.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import { t } from "i18next"; -import { Search } from "lucide-react"; -import { useState } from "react"; - -import { Button } from "@/components/Buttons"; -import { EButtonType } from "@/components/Buttons/enum"; -import { EMPTY_STRING } from "@/constants"; -import { keyboard } from "@/constants/keyboard"; -import { useHandleSearch } from "@/hooks/useHandleSearch"; - -export const TitleSearch: React.FC = () => { - const [searchQuery, setSearchQuery] = useState(EMPTY_STRING); - const handleSearch = useHandleSearch(); - - return ( -
-

- {t("home.title")} -

-
- setSearchQuery(event.target.value)} - placeholder={t("common.inputPlaceholder.search")} - className="h-11 md:h-14 px-3 py-2 bg-surface-primary rounded-lg border-2 md:border-border-input border-surface-primary outline-none focus:border-border-inputFocus md:flex-1 placeholder:italic placeholder:text-text-quaternary text-text-input font-normal" - onKeyDown={(event) => event.key === keyboard.enter && handleSearch(searchQuery)} - /> -
-
- ); -}; diff --git a/explorer/src/pages/Home/index.tsx b/explorer/src/pages/Home/index.tsx index 4c1739b6..e0bc8c9e 100644 --- a/explorer/src/pages/Home/index.tsx +++ b/explorer/src/pages/Home/index.tsx @@ -1,11 +1,11 @@ import { Info } from "./components/Info"; import { Issuers } from "./components/Issuers"; -import { TitleSearch } from "./components/TitleSearch"; +import { Jumbotron } from "./components/Jumbotron"; export const Home = () => { return ( -
- +
+