diff --git a/components/SideBar.js b/components/SideBar.js index aa147811..5afb2454 100644 --- a/components/SideBar.js +++ b/components/SideBar.js @@ -31,6 +31,7 @@ import Burger from 'public/icons/burger.svg' import Camera from 'public/icons/camera.svg' import Close from 'public/icons/close.svg' import CreateProject from 'public/icons/create-project.svg' +import Hiscoder from 'public/icons/hiscoder-short.svg' import Localization from 'public/icons/localization.svg' import Notes from 'public/icons/notes.svg' import Projects from 'public/icons/projects.svg' @@ -638,6 +639,20 @@ function SideBar({ setIsOpenSideBar, access, isOpenSideBar }) { > + + + + {!collapsed &&

Powered by HisCoder.com

} + +
diff --git a/components/StartPage/Feedback.js b/components/StartPage/Feedback.js index 57cb275d..25aba873 100644 --- a/components/StartPage/Feedback.js +++ b/components/StartPage/Feedback.js @@ -16,7 +16,7 @@ function Feedback({ onClose }) { const [isSaving, setIsSaving] = useState(false) const [isSent, setIsSent] = useState(false) const router = useRouter() - const isStartPage = router.asPath === '/' + const isConnectWithUsPage = router.asPath === '/connect-with-us' const handleChange = (e) => { setFeedback({ ...feedback, [e.target.name]: e.target.value }) @@ -50,9 +50,10 @@ function Feedback({ onClose }) { return (
- {isStartPage && ( + {isConnectWithUsPage && (

{t('start-page:WriteToUs')}

)} +
e.stopPropagation()}> {!isSent ? ( @@ -93,7 +94,7 @@ function Feedback({ onClose }) { type="submit" isLoading={isSaving} className={`relative rounded-lg px-5 py-4 text-center text-sm font-medium text-th-text-secondary-100 md:text-base ${ - isStartPage ? 'bg-slate-550' : 'bg-th-primary-100' + isConnectWithUsPage ? 'bg-slate-550' : 'bg-th-primary-100' }`} > {t('users:Send')} diff --git a/components/StartPage/HiscoderLink.js b/components/StartPage/HiscoderLink.js new file mode 100644 index 00000000..82f6e3a1 --- /dev/null +++ b/components/StartPage/HiscoderLink.js @@ -0,0 +1,20 @@ +import Link from 'next/link' + +import Hiscoder from 'public/icons/hiscoder.svg' + +function HiscoderLink() { + return ( +
+ + Powered by + + +
+ ) +} + +export default HiscoderLink diff --git a/pages/[slug].js b/pages/[slug].js index 3c00b74b..b2cbfa70 100644 --- a/pages/[slug].js +++ b/pages/[slug].js @@ -4,6 +4,7 @@ import { useRouter } from 'next/router' import { serverSideTranslations } from 'next-i18next/serverSideTranslations' import { useTranslation } from 'react-i18next' +import HiscoderLink from 'components/StartPage/HiscoderLink' import StartPage from 'components/StartPage/StartPage' import { urlGlobal } from 'utils/openGraph' @@ -80,7 +81,7 @@ const SlugPage = () => { const imageUrl = `${urlGlobal}/social.webp` return ( -
+
{pageContent.title || t('LEVEL')} { - +
+ +
+
) } diff --git a/pages/index.js b/pages/index.js index 1e5b70c1..e2d1fb38 100644 --- a/pages/index.js +++ b/pages/index.js @@ -3,6 +3,7 @@ import { useRouter } from 'next/router' import { serverSideTranslations } from 'next-i18next/serverSideTranslations' +import HiscoderLink from 'components/StartPage/HiscoderLink' import StartPage from 'components/StartPage/StartPage' import { openGraph, urlGlobal } from '../utils/openGraph' @@ -24,7 +25,7 @@ export default function Home() { const { query } = useRouter() return ( -
+
{metadata.title.template.replace('%s', metadata.title.default)} @@ -45,7 +46,10 @@ export default function Home() { - +
+ +
+
) } diff --git a/public/icons/hiscoder-short.svg b/public/icons/hiscoder-short.svg new file mode 100644 index 00000000..c413025f --- /dev/null +++ b/public/icons/hiscoder-short.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/icons/hiscoder.svg b/public/icons/hiscoder.svg new file mode 100644 index 00000000..3099bc97 --- /dev/null +++ b/public/icons/hiscoder.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + +