From 23b08d96a76d1252edcd3f9814b8048a5dee5177 Mon Sep 17 00:00:00 2001 From: matthew Date: Tue, 4 Oct 2022 11:46:24 +0400 Subject: [PATCH] add contacts --- .../app/core/components/Footer/Footer.tsx | 26 +++++++++++++++++++ .../app/core/components/Footer/TGLogo.tsx | 4 +++ .../app/core/components/Footer/index.ts | 1 + .../core/components/Footer/styles.module.css | 16 ++++++++++++ .../app/core/layouts/Layout/index.tsx | 2 ++ .../app/core/layouts/Layout/styles.module.css | 3 +++ searching-front/app/i18n/en.ts | 1 + searching-front/app/i18n/index.ts | 2 +- searching-front/app/i18n/ru.ts | 1 + searching-front/pages/index.tsx | 3 +-- searching-front/pages/s.tsx | 2 +- .../services/modules/parser/index.ts | 5 ++-- searching-front/services/parser.ts | 2 -- 13 files changed, 59 insertions(+), 9 deletions(-) create mode 100644 searching-front/app/core/components/Footer/Footer.tsx create mode 100644 searching-front/app/core/components/Footer/TGLogo.tsx create mode 100644 searching-front/app/core/components/Footer/index.ts create mode 100644 searching-front/app/core/components/Footer/styles.module.css diff --git a/searching-front/app/core/components/Footer/Footer.tsx b/searching-front/app/core/components/Footer/Footer.tsx new file mode 100644 index 0000000..7e3f666 --- /dev/null +++ b/searching-front/app/core/components/Footer/Footer.tsx @@ -0,0 +1,26 @@ +import { Routes } from "@blitzjs/next" +import TonLogo from "app/core/icons/TonLogo" +import { useRouter } from "next/router" +import { useTranslation } from "react-i18next" +import SearchForm from "../SearchForm" +import ThemeSwitcher from "../ThemeSwitcher/ThemeSwitcher" +import s from "./styles.module.css" +import TGLogo from "./TGLogo" + +const Header = () => { + const { route } = useRouter() + + const router = useRouter() + const { t } = useTranslation() + + return ( +
+
+ {t("footer.contacts-description")} + +
+
+ ) +} + +export default Header diff --git a/searching-front/app/core/components/Footer/TGLogo.tsx b/searching-front/app/core/components/Footer/TGLogo.tsx new file mode 100644 index 0000000..351f116 --- /dev/null +++ b/searching-front/app/core/components/Footer/TGLogo.tsx @@ -0,0 +1,4 @@ +export default function ({className}) { + return + +} \ No newline at end of file diff --git a/searching-front/app/core/components/Footer/index.ts b/searching-front/app/core/components/Footer/index.ts new file mode 100644 index 0000000..3fcfca8 --- /dev/null +++ b/searching-front/app/core/components/Footer/index.ts @@ -0,0 +1 @@ +export {default} from './Footer' \ No newline at end of file diff --git a/searching-front/app/core/components/Footer/styles.module.css b/searching-front/app/core/components/Footer/styles.module.css new file mode 100644 index 0000000..3758cb3 --- /dev/null +++ b/searching-front/app/core/components/Footer/styles.module.css @@ -0,0 +1,16 @@ +.root { + box-sizing: border-box; + display: flex; + justify-content: center; +} +.tgIcon { + width: 25px; + height: 25px; + margin-top: 10px; +} +.contactsWrapper { + display: flex; + flex-direction: column; + align-items: center; + color: var(--text_secondary); +} \ No newline at end of file diff --git a/searching-front/app/core/layouts/Layout/index.tsx b/searching-front/app/core/layouts/Layout/index.tsx index 43bd586..b10b1c5 100644 --- a/searching-front/app/core/layouts/Layout/index.tsx +++ b/searching-front/app/core/layouts/Layout/index.tsx @@ -5,6 +5,7 @@ import s from "./styles.module.css" import Header from "app/core/components/Header" import { cn } from "app/core/helpers/common" import { useCurrentTheme } from "app/core/hooks/useCurrentTheme" +import Footer from "app/core/components/Footer" const Layout: BlitzLayout<{ title?: string @@ -28,6 +29,7 @@ const Layout: BlitzLayout<{ >
{children}
+