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!

Layout & logic improvements

Blue Mousec449dff6c9d8
diff --git a/src/components/Header/index.jsx b/src/components/Header/index.jsx
index a5fcfc2ef..ce6d7fd7b 100644
--- a/src/components/Header/index.jsx
+++ b/src/components/Header/index.jsx
@@ -23,32 +23,32 @@ const Header = ({ authenticated }) => {
<img className='h-10 w-auto' src='https://tailwindui.com/img/logos/workflow-mark.svg?color=white' alt='' />
</Link>
<div className='hidden ml-10 space-x-1 lg:block'>
- <NavLink to={routes.features} className='text-base font-medium text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700' key='Features'>Features</NavLink>
- <HashLink to={`${routes.main}#pricing`} className='text-base font-medium text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' key='Pricing'>Pricing</HashLink>
- <HashLink to={`${routes.main}#faqs`} className='text-base font-medium text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' key='FAQs'>FAQs</HashLink>
- <NavLink to={routes.docs} className='text-base font-medium text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700' key='Docs'>Docs</NavLink>
+ <NavLink to={routes.features} className='text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700' key='Features'>Features</NavLink>
+ <HashLink to={`${routes.main}#pricing`} className='text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' key='Pricing'>Pricing</HashLink>
+ <HashLink to={`${routes.main}#faqs`} className='text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' key='FAQs'>FAQs</HashLink>
+ <NavLink to={routes.docs} className='text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700' key='Docs'>Docs</NavLink>
</div>
</div>
<div className='ml-10 space-x-4'>
{authenticated ? (
<>
- <NavLink to={routes.user_settings} className='text-base font-medium text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700'>You</NavLink>
- <Link to={routes.dashboard} className='inline-block bg-white py-2 px-4 border border-transparent rounded-md text-base font-medium text-indigo-600 hover:bg-indigo-50'>Dashboard</Link>
- <Link to='#' className='text-base font-medium text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' onClick={logoutHandler}>Logout</Link>
+ <NavLink to={routes.user_settings} className='text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700'>You</NavLink>
+ <Link to={routes.dashboard} className='inline-block select-none bg-white py-2 px-4 border border-transparent rounded-md text-base font-medium text-indigo-600 hover:bg-indigo-50'>Dashboard</Link>
+ <Link to='#' className='text-base font-medium select-none text-white hover:text-indigo-50 py-2 px-3 hover:bg-indigo-500 rounded-md' onClick={logoutHandler}>Logout</Link>
</>
) : (
<>
- <Link to={routes.signin} className='inline-block bg-indigo-500 py-2 px-4 border border-transparent rounded-md text-base font-medium text-white hover:bg-opacity-75'>Sign in</Link>
- <Link to={routes.signup} className='inline-block bg-white py-2 px-4 border border-transparent rounded-md text-base font-medium text-indigo-600 hover:bg-indigo-50'>Get started</Link>
+ <Link to={routes.signin} className='inline-block select-none bg-indigo-500 py-2 px-4 border border-transparent rounded-md text-base font-medium text-white hover:bg-opacity-75'>Sign in</Link>
+ <Link to={routes.signup} className='inline-block select-none bg-white py-2 px-4 border border-transparent rounded-md text-base font-medium text-indigo-600 hover:bg-indigo-50'>Get started</Link>
</>
)}
</div>
</div>
<div className='py-4 flex flex-wrap justify-center space-x-2 lg:hidden'>
- <NavLink to={routes.features} className='text-base font-medium text-white hover:text-indigo-50 py-1 px-3 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700' key='Features'>Features</NavLink>
- <HashLink to={`${routes.main}#pricing`} className='text-base font-medium text-white hover:text-indigo-50 py-1 px-3 hover:bg-indigo-500 rounded-md' key='Pricing'>Pricing</HashLink>
- <HashLink to={`${routes.main}#faqs`} className='text-base font-medium text-white hover:text-indigo-50 py-1 px-3 hover:bg-indigo-500 rounded-md' key='FAQs'>FAQs</HashLink>
- <NavLink to={routes.docs} className='text-base font-medium text-white hover:text-indigo-50 py-1 px-3 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700' key='Docs'>Docs</NavLink>
+ <NavLink to={routes.features} className='text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-3 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700' key='Features'>Features</NavLink>
+ <HashLink to={`${routes.main}#pricing`} className='text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-3 hover:bg-indigo-500 rounded-md' key='Pricing'>Pricing</HashLink>
+ <HashLink to={`${routes.main}#faqs`} className='text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-3 hover:bg-indigo-500 rounded-md' key='FAQs'>FAQs</HashLink>
+ <NavLink to={routes.docs} className='text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-3 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700' key='Docs'>Docs</NavLink>
</div>
</nav>
</header>
diff --git a/src/pages/Auth/VerifyEmail/index.jsx b/src/pages/Auth/VerifyEmail/index.jsx
index 8c204d89c..bb588875b 100644
--- a/src/pages/Auth/VerifyEmail/index.jsx
+++ b/src/pages/Auth/VerifyEmail/index.jsx
@@ -38,14 +38,16 @@ const VerifyEmail = () => {
if (error) {
return (
<Title title='Email verification'>
- <div className='flex justify-center pt-10'>
- <div className='rounded-md p-4 w-11/12 bg-red-50 lg:w-4/6'>
- <div className='flex'>
- <div className='flex-shrink-0'>
- <XCircleIcon className='h-5 w-5 text-red-400' aria-hidden='true' />
- </div>
- <div className='ml-3'>
- <h3 className='text-sm font-medium text-red-800'>{error}</h3>
+ <div className='min-h-page'>
+ <div className='flex justify-center pt-10'>
+ <div className='rounded-md p-4 w-11/12 bg-red-50 lg:w-4/6'>
+ <div className='flex'>
+ <div className='flex-shrink-0'>
+ <XCircleIcon className='h-5 w-5 text-red-400' aria-hidden='true' />
+ </div>
+ <div className='ml-3'>
+ <h3 className='text-sm font-medium text-red-800'>{error}</h3>
+ </div>
</div>
</div>
</div>
@@ -56,16 +58,18 @@ const VerifyEmail = () => {
return (
<Title title='Email verification'>
- <div className='flex justify-center pt-10'>
- <div className='rounded-md p-4 w-11/12 bg-green-50 lg:w-4/6'>
- <div className='flex'>
- <div className='flex-shrink-0'>
- <CheckCircleIcon className='h-5 w-5 text-green-400' aria-hidden='true' />
- </div>
- <div className='ml-3'>
- <h3 className='text-sm font-medium text-green-800'>
- Your email has been successfully verified!
- </h3>
+ <div className='min-h-page'>
+ <div className='flex justify-center pt-10'>
+ <div className='rounded-md p-4 w-11/12 bg-green-50 lg:w-4/6'>
+ <div className='flex'>
+ <div className='flex-shrink-0'>
+ <CheckCircleIcon className='h-5 w-5 text-green-400' aria-hidden='true' />
+ </div>
+ <div className='ml-3'>
+ <h3 className='text-sm font-medium text-green-800'>
+ Your email has been successfully verified!
+ </h3>
+ </div>
</div>
</div>
</div>
diff --git a/src/pages/UserSettings/UserSettings.jsx b/src/pages/UserSettings/UserSettings.jsx
index 354bcaa9a..98dc93634 100644
--- a/src/pages/UserSettings/UserSettings.jsx
+++ b/src/pages/UserSettings/UserSettings.jsx
@@ -115,7 +115,7 @@ const UserSettings = ({ onDelete, onExport, onSubmit, onEmailConfirm }) => {
</div>
<Button className='mt-4' type='submit' primary large>
Update profile
- </Button>
+ </Button>
<hr className='mt-3' />
{!user?.isActive && (
<div href='#' className='flex cursor-pointer mt-4 pl-0 underline text-blue-600 hover:text-indigo-800' onClick={() => onEmailConfirm(setError)}>
@@ -149,7 +149,7 @@ const UserSettings = ({ onDelete, onExport, onSubmit, onEmailConfirm }) => {
closeText='Close'
title='Data export'
type='info'
- message={'As requested by Art. 20 of General Data Protection Regulation (GDPR) the you have the right to receive your personal data that we store.\nThe data export will be ready within 24 hours and sent to your email account.\nNote: you can request the data export only once per two weeks.'}
+ message={'As requested by Art. 20 of General Data Protection Regulation (GDPR) the you have the right to receive your personal data that we store. This report does not include events data per project.\nThe data report will be sent to your email address.\nNote: you can request the data export only once per two weeks.'}
isOpened={showExportModal}
/>
<Modal
diff --git a/src/ui/Button.jsx b/src/ui/Button.jsx
index 8e60b3802..566e3b85c 100644
--- a/src/ui/Button.jsx
+++ b/src/ui/Button.jsx
@@ -10,7 +10,7 @@ const Button = ({
<button
type={type}
onClick={onClick}
- className={cx('inline-flex items-center border border-transparent leading-4 font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500', {
+ className={cx('inline-flex select-none items-center border border-transparent leading-4 font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500', {
'shadow-sm text-white bg-indigo-600 hover:bg-indigo-700': primary,
'text-indigo-700 bg-indigo-100 hover:bg-indigo-200': secondary,
'text-gray-700 bg-white hover:bg-gray-50': white,
diff --git a/tailwind.config.js b/tailwind.config.js
index 997fbfea7..e3f2f8c8f 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -10,7 +10,7 @@ module.exports = {
}
},
minHeight: {
- 'page': 'calc(100vh - 80px)', // header height -> 80px
+ 'page': 'calc(100vh - 74px)', // header height -> 80px
}
},
variants: {