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!

Nicer empty state UI

Blue Mousee99bf237771d
diff --git a/web/app/pages/UserSettings/components/NoOrganisations.tsx b/web/app/pages/UserSettings/components/NoOrganisations.tsx
index 726b4f29e..1c0da69e2 100644
--- a/web/app/pages/UserSettings/components/NoOrganisations.tsx
+++ b/web/app/pages/UserSettings/components/NoOrganisations.tsx
@@ -1,4 +1,5 @@
import { useTranslation } from 'react-i18next'
+import { BuildingOfficeIcon } from '@heroicons/react/24/outline'
import { Text } from '~/ui/Text'
@@ -6,12 +7,13 @@ const NoOrganisations = () => {
const { t } = useTranslation('common')
return (
- <div className='flex flex-col py-6 sm:px-6 lg:px-8'>
- <div className='mx-auto w-full max-w-7xl'>
- <Text as='h2' size='2xl' className='mb-4 text-center leading-snug'>
- {t('profileSettings.noOrganisations')}
- </Text>
+ <div className='flex flex-col items-center justify-center py-8 text-center'>
+ <div className='mb-3 flex size-10 items-center justify-center rounded-lg bg-gray-100 dark:bg-slate-800'>
+ <BuildingOfficeIcon className='size-5 text-gray-400 dark:text-slate-500' />
</div>
+ <Text as='p' size='sm' colour='secondary'>
+ {t('profileSettings.noOrganisations')}
+ </Text>
</div>
)
}
diff --git a/web/app/pages/UserSettings/components/NoSharedProjects.tsx b/web/app/pages/UserSettings/components/NoSharedProjects.tsx
index 296e7ccd3..23b42e399 100644
--- a/web/app/pages/UserSettings/components/NoSharedProjects.tsx
+++ b/web/app/pages/UserSettings/components/NoSharedProjects.tsx
@@ -1,4 +1,5 @@
import { useTranslation } from 'react-i18next'
+import { ShareIcon } from '@heroicons/react/24/outline'
import { Text } from '~/ui/Text'
@@ -6,12 +7,13 @@ const NoSharedProjects = () => {
const { t } = useTranslation('common')
return (
- <div className='flex flex-col py-6 sm:px-6 lg:px-8'>
- <div className='mx-auto w-full max-w-7xl'>
- <Text as='h2' size='2xl' className='mb-4 text-center leading-snug'>
- {t('profileSettings.noSharedProjects')}
- </Text>
+ <div className='flex flex-col items-center justify-center py-8 text-center'>
+ <div className='mb-3 flex size-10 items-center justify-center rounded-lg bg-gray-100 dark:bg-slate-800'>
+ <ShareIcon className='size-5 text-gray-400 dark:text-slate-500' />
</div>
+ <Text as='p' size='sm' colour='secondary'>
+ {t('profileSettings.noSharedProjects')}
+ </Text>
</div>
)
}