Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

added 'Contact us' page

Blue Mouse1abcbf3dc389
diff --git a/src/App.js b/src/App.js
index 496faa82d..c7b948095 100644
--- a/src/App.js
+++ b/src/App.js
@@ -26,6 +26,7 @@ const SignIn = lazy(() => import('pages/Auth/Signin'))
const ForgotPassword = lazy(() => import('pages/Auth/ForgotPassword'))
const CreateNewPassword = lazy(() => import('pages/Auth/CreateNewPassword'))
const Dashboard = lazy(() => import('pages/Dashboard'))
+const Contact = lazy(() => import('pages/Contact'))
const Docs = lazy(() => import('pages/Docs'))
const Features = lazy(() => import('pages/Features'))
const UserSettings = lazy(() => import('pages/UserSettings'))
@@ -37,7 +38,7 @@ const Privacy = lazy(() => import('pages/Privacy'))
const Terms = lazy(() => import('pages/Terms'))
const minimalFooterPages = [
- '/projects', '/dashboard', '/settings',
+ '/projects', '/dashboard', '/settings', '/contact',
]
const Fallback = ({ isMinimalFooter }) => {
@@ -124,6 +125,7 @@ const App = () => {
<Route path={routes.project} component={ViewProject} exact />
<Route path={routes.billing} component={Billing} exact />
<Route path={routes.docs} component={Docs} exact />
+ <Route path={routes.contact} component={Contact} exact />
<Route path={routes.features} component={Features} exact />
<Route path={routes.privacy} component={Privacy} exact />
<Route path={routes.terms} component={Terms} exact />
diff --git a/src/components/Footer/index.jsx b/src/components/Footer/index.jsx
index d82c19070..a727f2699 100644
--- a/src/components/Footer/index.jsx
+++ b/src/components/Footer/index.jsx
@@ -17,7 +17,7 @@ const navigation = {
() => ({ key: 'guides', href: `${routes.docs}#docs-ht` }),
],
company: [
- { key: 'about', href: '#' },
+ { key: 'contact', href: routes.contact, internal: true },
{ key: 'status', href: STATUSPAGE_URL },
],
legal: [
@@ -51,9 +51,9 @@ const Footer = ({ minimal, authenticated }) => {
<div className='max-w-7xl mx-auto py-8 px-4 overflow-hidden sm:px-6 lg:px-8'>
<nav className='-mx-5 -my-2 flex flex-wrap justify-center' aria-label='Footer'>
<div className='px-5 py-2'>
- <a href='#/' className='text-base text-gray-300 hover:text-white'>
- {t('footer.about')}
- </a>
+ <Link to={routes.contact} className='text-base text-gray-300 hover:text-white'>
+ {t('footer.contact')}
+ </Link>
</div>
<div className='px-5 py-2'>
<Link to={routes.privacy} className='text-base text-gray-300 hover:text-white'>
@@ -155,11 +155,17 @@ const Footer = ({ minimal, authenticated }) => {
{t('footer.company')}
</h3>
<ul className='mt-4 space-y-4'>
- {_map(navigation.company, ({ key, href }) => (
+ {_map(navigation.company, ({ key, href, internal }) => (
<li key={key}>
- <a href={href} className='text-base text-gray-300 hover:text-white' target='_blank' rel='noopener noreferrer'>
- {t(`footer.${key}`)}
- </a>
+ {internal ? (
+ <Link to={href} className='text-base text-gray-300 hover:text-white'>
+ {t(`footer.${key}`)}
+ </Link>
+ ) : (
+ <a href={href} className='text-base text-gray-300 hover:text-white' target='_blank' rel='noopener noreferrer'>
+ {t(`footer.${key}`)}
+ </a>
+ )}
</li>
))}
</ul>
diff --git a/src/i18n/en.json b/src/i18n/en.json
index d22a8bfca..b64f5c5ee 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -303,6 +303,9 @@
"carbonRemoval": "Your subscription contributes to carbon removal."
}
},
+ "contact": {
+ "desc": "Have something to ask?\nFeel free to drop us an email at <mail>{{email}}</mail>"
+ },
"titles": {
"recovery": "Account recovery",
"signin": "Sign in",
@@ -312,7 +315,8 @@
"features": "Features",
"dashboard": "Dashboard",
"docs": "Documentation",
- "billing": "Billing"
+ "billing": "Billing",
+ "contact": "Contact"
},
"footer": {
"slogan": "The best apps need the best services.",
@@ -325,7 +329,7 @@
"company": "Company",
"legal": "Legal",
"copy": "Swetrix Analytics. All rights reserved.",
- "about": "About",
+ "contact": "Contact",
"pp": "Privacy Policy",
"tos": "Terms of Service",
"blog": "Blog",
diff --git a/src/i18n/ru.json b/src/i18n/ru.json
index 7bcf0b8d2..5bbb5485a 100644
--- a/src/i18n/ru.json
+++ b/src/i18n/ru.json
@@ -303,6 +303,9 @@
"carbonRemoval": "Ваша подписка способствует удалению углерода из атмосферы."
}
},
+ "contact": {
+ "desc": "Хотите что-то спросить?\nНапишите нам письмо на <mail>{{email}}</mail>"
+ },
"titles": {
"recovery": "Восстановление аккаунта",
"signin": "Авторизация",
@@ -312,7 +315,8 @@
"features": "Функционал",
"dashboard": "Панель управления",
"docs": "Документация",
- "billing": "Цены и тарифы"
+ "billing": "Цены и тарифы",
+ "contact": "Обратная связь"
},
"footer": {
"slogan": "Лучшие приложения нуждаются в лучших сервисах.",
@@ -325,6 +329,7 @@
"company": "Компания",
"legal": "Правовая информация",
"copy": "Swetrix Analytics. Все права защищены.",
+ "contact": "Обратная связь",
"about": "О нас",
"pp": "Политика конфиденциальности",
"tos": "Условия использования",
diff --git a/src/i18n/uk.json b/src/i18n/uk.json
index 02a2716fe..e98f219c7 100644
--- a/src/i18n/uk.json
+++ b/src/i18n/uk.json
@@ -303,6 +303,9 @@
"carbonRemoval": "Ваша підписка сприяє видаленню вуглецю з атмосфери."
}
},
+ "contact": {
+ "desc": "Хочете щось запитати?\nНапишіть нам лист на <mail>{{email}}</mail>"
+ },
"titles": {
"recovery": "Відновлення акаунту",
"signin": "Авторизація",
@@ -312,7 +315,8 @@
"features": "Функціонал",
"dashboard": "Панель керування",
"docs": "Документація",
- "billing": "Ціни та тарифи"
+ "billing": "Ціни та тарифи",
+ "contact": "Зворотній зв'язок"
},
"footer": {
"slogan": "Найкращі додатки потребують найкращих сервісів.",
@@ -325,6 +329,7 @@
"company": "Компанія",
"legal": "Правова інформація",
"copy": "Swetrix Analytics. Всі права захищені.",
+ "contact": "Зворотній зв'язок",
"about": "Про нас",
"pp": "Політика конфіденційності",
"tos": "Умови використання",
diff --git a/src/pages/Contact/index.jsx b/src/pages/Contact/index.jsx
new file mode 100644
index 000000000..9aec8ada3
--- /dev/null
+++ b/src/pages/Contact/index.jsx
@@ -0,0 +1,33 @@
+/* eslint-disable jsx-a11y/anchor-has-content */
+import React from 'react'
+import { useTranslation, Trans } from 'react-i18next'
+
+import Title from 'components/Title'
+
+const Contact = () => {
+ const { t } = useTranslation('common')
+
+ return (
+ <Title title={t('titles.contact')}>
+ <div className='bg-gray-50 min-h-min-footer'>
+ <div className='w-11/12 md:w-4/5 mx-auto pb-16 pt-12 px-4 sm:px-6 lg:px-8 whitespace-pre-line'>
+ <h1 className='text-4xl font-extrabold text-gray-900 tracking-tight'>
+ {t('titles.contact')}
+ </h1>
+ <p className='mt-2 text-lg text-gray-900 tracking-tight'>
+ <Trans
+ t={t}
+ i18nKey='contact.desc'
+ values={{ email: '[email protected]'}}
+ components={{
+ mail: <a href='mailto:[email protected]' className='font-medium text-indigo-600 hover:text-indigo-500' />,
+ }}
+ />
+ </p>
+ </div>
+ </div>
+ </Title>
+ )
+}
+
+export default Contact
diff --git a/src/routes.js b/src/routes.js
index b0466dc13..218f887a6 100644
--- a/src/routes.js
+++ b/src/routes.js
@@ -16,6 +16,7 @@ const routes = Object.freeze({
billing: '/billing',
privacy: '/privacy',
terms: '/terms',
+ contact: '/contact',
})
export default routes