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 links to blog in footer and header

Blue Mouse92e0d1a318e1
diff --git a/src/components/Footer/index.jsx b/src/components/Footer/index.jsx
index dffb54ff1..2e5045127 100644
--- a/src/components/Footer/index.jsx
+++ b/src/components/Footer/index.jsx
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types'
import {
isSelfhosted, DONATE_URL, FIREFOX_ADDON_URL, CHROME_EXTENSION_URL, GITHUB_URL,
- LINKEDIN_URL, STATUSPAGE_URL, TWITTER_URL,
+ LINKEDIN_URL, STATUSPAGE_URL, TWITTER_URL, BLOG_URL,
} from 'redux/constants'
import routes from 'routes'
@@ -23,6 +23,7 @@ const navigation = {
{ key: 'contact', href: routes.contact, internal: true },
{ key: 'status', href: STATUSPAGE_URL },
{ key: 'donate', href: DONATE_URL },
+ { key: 'blog', href: BLOG_URL },
],
legal: [
{ key: 'privacy', href: routes.privacy },
diff --git a/src/components/Header/index.jsx b/src/components/Header/index.jsx
index 516f4110f..0e2d7eb62 100644
--- a/src/components/Header/index.jsx
+++ b/src/components/Header/index.jsx
@@ -14,7 +14,7 @@ import routes from 'routes'
import { authActions } from 'redux/actions/auth'
import UIActions from 'redux/actions/ui'
import {
- whitelist, languages, languageFlag, isSelfhosted,
+ whitelist, languages, languageFlag, isSelfhosted, BLOG_URL,
} from 'redux/constants'
import Dropdown from 'ui/Dropdown'
@@ -46,9 +46,9 @@ const Header = ({ authenticated, theme }) => {
<img className='h-10' src='/assets/logo_white.svg' alt='' />
</Link>
<div className='hidden ml-10 space-x-1 lg:block'>
- <NavLink to={routes.features} className='text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-gray-700' key='Features'>
- {t('common.features')}
- </NavLink>
+ <a href={BLOG_URL} className='text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>
+ {t('footer.blog')}
+ </a>
{!isSelfhosted && (
authenticated ? (
<NavLink to={routes.billing} className='text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-gray-700' key='Billing'>
@@ -56,12 +56,12 @@ const Header = ({ authenticated, theme }) => {
</NavLink>
) : (
<>
+ <NavLink to={routes.features} className='text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-gray-700' key='Features'>
+ {t('common.features')}
+ </NavLink>
<HashLink to={`${routes.main}#pricing`} className='text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' key='Pricing'>
{t('common.pricing')}
</HashLink>
- <HashLink to={`${routes.main}#faqs`} className='text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' key='FAQs'>
- {t('common.faqs')}
- </HashLink>
</>
)
)}
@@ -144,9 +144,9 @@ const Header = ({ authenticated, theme }) => {
</div>
</div>
<div className='py-4 flex flex-wrap justify-center space-x-2 lg:hidden'>
- <NavLink to={routes.features} className='text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-gray-700' key='Features'>
- {t('common.features')}
- </NavLink>
+ <a href={BLOG_URL} className='text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>
+ {t('footer.blog')}
+ </a>
{authenticated ? (
<NavLink to={routes.billing} className='text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-gray-700' key='Billing'>
{t('common.billing')}
@@ -156,9 +156,9 @@ const Header = ({ authenticated, theme }) => {
<HashLink to={`${routes.main}#pricing`} className='text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' key='Pricing'>
{t('common.pricing')}
</HashLink>
- <HashLink to={`${routes.main}#faqs`} className='text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' key='FAQs'>
- {t('common.faqs')}
- </HashLink>
+ <NavLink to={routes.features} className='text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-gray-700' key='Features'>
+ {t('common.features')}
+ </NavLink>
</>
)}
<NavLink to={routes.docs} className='text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-3 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-gray-700' key='Docs'>
diff --git a/src/redux/constants/index.js b/src/redux/constants/index.js
index db8b6b812..b2328b7a3 100644
--- a/src/redux/constants/index.js
+++ b/src/redux/constants/index.js
@@ -99,6 +99,7 @@ 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 STATUSPAGE_URL = 'https://stats.uptimerobot.com/33rvmiXXEz'
+export const BLOG_URL = 'https://blog.swetrix.com'
export const SUPPORTED_THEMES = ['light', 'dark']