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!

fixed last blog post placeholder for light theme

Blue Mouse6641dec264ab
diff --git a/src/pages/MainPage/index.tsx b/src/pages/MainPage/index.tsx
index efe861870..c409ee9bd 100644
--- a/src/pages/MainPage/index.tsx
+++ b/src/pages/MainPage/index.tsx
@@ -225,16 +225,12 @@ const Main = (): JSX.Element => {
}}
/>
</h1>
- <div
- className={cx('flex items-center overflow-hidden mt-2 mb-2 sm:text-xl lg:text-lg xl:text-lg', {
- 'animate-pulse': _isEmpty(lastBlogPost),
- })}
- >
+ <div className='flex items-center overflow-hidden mt-2 mb-2 sm:text-xl lg:text-lg xl:text-lg'>
<p className='rounded-full bg-indigo-500/10 px-3 py-1 text-sm font-semibold leading-6 text-indigo-600 dark:text-indigo-400 ring-1 ring-inset ring-indigo-500/20'>
Latest news
</p>
{_isEmpty(lastBlogPost) ? (
- <div className='h-6 ml-1 bg-slate-700 w-full rounded-md' />
+ <div className='h-6 ml-1 bg-slate-300 dark:bg-slate-700 w-80 rounded-md animate-pulse' />
) : (
<a
className='inline-flex ml-1 items-center space-x-1 text-sm font-semibold leading-6 text-slate-700 dark:text-slate-300 hover:underline'