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}
+
>
)
diff --git a/searching-front/app/core/layouts/Layout/styles.module.css b/searching-front/app/core/layouts/Layout/styles.module.css
index c56f3fb..ff9cd6e 100644
--- a/searching-front/app/core/layouts/Layout/styles.module.css
+++ b/searching-front/app/core/layouts/Layout/styles.module.css
@@ -1,6 +1,9 @@
.root {
background: var(--background_main);
padding: 20px;
+ display: flex;
+ flex-direction: column;
+ box-sizing: border-box;
}
.content {
margin-top: 20px;
diff --git a/searching-front/app/i18n/en.ts b/searching-front/app/i18n/en.ts
index 78f7e58..b397392 100644
--- a/searching-front/app/i18n/en.ts
+++ b/searching-front/app/i18n/en.ts
@@ -2,6 +2,7 @@ const en = {
translation: {
"search.placeholder": "Find your own ton",
"search.button": "Search",
+ "footer.contacts-description": "Feedback, suggestions, bug reports",
},
}
diff --git a/searching-front/app/i18n/index.ts b/searching-front/app/i18n/index.ts
index 7187bc3..056666e 100644
--- a/searching-front/app/i18n/index.ts
+++ b/searching-front/app/i18n/index.ts
@@ -32,7 +32,7 @@ i18n.use(initReactI18next).init({
},
fallbackLng: "en",
lng: getI18nLanguage(),
- debug: true,
+ debug: false,
interpolation: {
escapeValue: false, // not needed for react as it escapes by default
},
diff --git a/searching-front/app/i18n/ru.ts b/searching-front/app/i18n/ru.ts
index 9f62576..4d8fec1 100644
--- a/searching-front/app/i18n/ru.ts
+++ b/searching-front/app/i18n/ru.ts
@@ -2,6 +2,7 @@ const ru = {
translation: {
"search.placeholder": "Найди свой собственный TON",
"search.button": "Найти",
+ "footer.contacts-description": "Отзывы, предложения, багрепорты",
},
}
diff --git a/searching-front/pages/index.tsx b/searching-front/pages/index.tsx
index 83a9192..6b37a1a 100644
--- a/searching-front/pages/index.tsx
+++ b/searching-front/pages/index.tsx
@@ -28,7 +28,6 @@ import {
import { gSSP } from "app/blitz-server"
const Home: BlitzPage = (props) => {
- console.log("\n\n\n SERVER SIDE", props)
return (
{
}}
>
-
+
diff --git a/searching-front/pages/s.tsx b/searching-front/pages/s.tsx
index ea4a45d..53426a3 100644
--- a/searching-front/pages/s.tsx
+++ b/searching-front/pages/s.tsx
@@ -36,7 +36,7 @@ const SearchPage: BlitzPage = (props) => {
}}
>
-
+
diff --git a/searching-front/services/modules/parser/index.ts b/searching-front/services/modules/parser/index.ts
index 5ae0b3c..41ae10d 100644
--- a/searching-front/services/modules/parser/index.ts
+++ b/searching-front/services/modules/parser/index.ts
@@ -28,13 +28,12 @@ class Parser {
constructor() {}
parseUrl = async (url: string) => {
try {
- console.log('Send request via ton proxy ', url)
+
const { data, headers } = await axios.get(url,{
proxy: getTonProxy(),
})
- console.log('Success response from ', url)
const contentType = headers["content-type"].toLocaleLowerCase()
- console.log(contentType)
+
if (!contentType.startsWith('text/html')) {
return SHOULD_NOT_PARSE
}
diff --git a/searching-front/services/parser.ts b/searching-front/services/parser.ts
index a7497b2..28fbebc 100644
--- a/searching-front/services/parser.ts
+++ b/searching-front/services/parser.ts
@@ -11,7 +11,6 @@ const findFirstNotIndexed = (subpages: SubPages = {}) => {
}
const indexWebsite = async (domain: string, path: string, subpages: SubPages = {}) => {
- console.log('Start indexWebsite ', domain)
if (!subpages[path]) {
const url = domain + path;
const parseInfo = await Parser.parseUrl(url)
@@ -26,7 +25,6 @@ const indexWebsite = async (domain: string, path: string, subpages: SubPages = {
} else {
pages = subpages
}
- console.log(pages)
const firstNotIndexed = findFirstNotIndexed(pages)
if (firstNotIndexed) {
return await indexWebsite(domain, firstNotIndexed, pages)