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!

updated contact page

Blue Mouse3cbc55b4665a
diff --git a/public/locales/en.json b/public/locales/en.json
index d0f5fa528..c6418fb2a 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -648,7 +648,14 @@
"downgradeDesc": "After downgrading, your plan will include fewer projects and available events per month. In case your website contains more traffic than the plan you want to downgrade to includes, this will result in not all events being stored in our database.\nYou will be able to return to your current plan at any time.\nIf you have any questions, you can always email us at {{email}}."
},
"contact": {
- "desc": "Have something to ask?\nFeel free to drop us an email at <mail>{{email}}</mail>"
+ "desc": "Have something to ask?\nFeel free to ",
+ "howTo": "Have something to ask? There are several ways on how to contact us:",
+ "ways": {
+ "email": "You can drop us an email at <mail>{{email}}</mail>",
+ "twitter": "Tweet or message us at <url>{{twitter}}</url>",
+ "discord": "Join our Discord server by following <url>this link</url>",
+ "chat": "Use a chatbox located on the bottom right of this page"
+ }
},
"beta": {
"title": "Beta",
diff --git a/src/pages/Contact/index.jsx b/src/pages/Contact/index.jsx
index 452e5c682..3f4a98d96 100644
--- a/src/pages/Contact/index.jsx
+++ b/src/pages/Contact/index.jsx
@@ -2,7 +2,9 @@
import React from 'react'
import { useTranslation, Trans } from 'react-i18next'
-import { CONTACT_EMAIL } from 'redux/constants'
+import {
+ CONTACT_EMAIL, TWITTER_URL, TWITTER_USERNAME, DISCORD_URL,
+} from 'redux/constants'
import Title from 'components/Title'
const Contact = () => {
@@ -16,14 +18,42 @@ const Contact = () => {
{t('titles.contact')}
</h1>
<p className='mt-2 text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
- <Trans
- t={t}
- i18nKey='contact.desc'
- values={{ email: CONTACT_EMAIL }}
- components={{
- mail: <a href={`mailto:${CONTACT_EMAIL}`} className='font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500' />,
- }}
- />
+ {t('contact.howTo')}
+
+ <ol className='list-decimal ml-10'>
+ <li className='mt-1'>
+ <Trans
+ t={t}
+ i18nKey='contact.ways.email'
+ values={{ email: CONTACT_EMAIL }}
+ components={{
+ mail: <a href={`mailto:${CONTACT_EMAIL}`} className='font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500' />,
+ }}
+ />
+ </li>
+ <li className='mt-1'>
+ <Trans
+ t={t}
+ i18nKey='contact.ways.twitter'
+ values={{ twitter: TWITTER_USERNAME }}
+ components={{
+ url: <a href={TWITTER_URL} className='font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500' />,
+ }}
+ />
+ </li>
+ <li className='mt-1'>
+ <Trans
+ t={t}
+ i18nKey='contact.ways.discord'
+ components={{
+ url: <a href={DISCORD_URL} className='font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500' />,
+ }}
+ />
+ </li>
+ <li className='mt-1'>
+ {t('contact.ways.chat')}
+ </li>
+ </ol>
</p>
</div>
</div>
diff --git a/src/redux/constants/index.js b/src/redux/constants/index.js
index 3dd3a3d62..18a3da56d 100644
--- a/src/redux/constants/index.js
+++ b/src/redux/constants/index.js
@@ -104,7 +104,9 @@ export const CHROME_EXTENSION_URL = 'https://chrome.google.com/webstore/detail/s
export const HAVE_I_BEEN_PWNED_URL = 'https://haveibeenpwned.com/passwords'
export const LINKEDIN_URL = 'https://www.linkedin.com/company/swetrix/'
export const GITHUB_URL = 'https://github.com/Swetrix'
-export const TWITTER_URL = 'https://twitter.com/swetrix'
+export const TWITTER_URL = 'https://twitter.com/intent/user?screen_name=swetrix'
+export const TWITTER_USERNAME = '@swetrix'
+export const DISCORD_URL = 'https://discord.gg/35jHATy65F'
export const STATUSPAGE_URL = 'https://stats.uptimerobot.com/33rvmiXXEz'
export const BLOG_URL = 'https://blog.swetrix.com'
export const UTM_GENERATOR_URL = 'https://url.swetrix.com'