We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3532843 commit 2a15219Copy full SHA for 2a15219
1 file changed
components/home/DefaultSplash.tsx
@@ -1,11 +1,17 @@
1
-//TODO: REMOVE THIS FILE, JUST FOR TESTING
2
-
3
import { FrostcordSnowflake } from '@/components/icons/FrostcordSnowflake';
+import { useServers } from '@/lib/store';
4
5
export default function DefaultSplash() {
+ const servers = useServers();
6
return (
7
- <div className="w-full h-full flex items-center">
+ <div className="w-full h-full flex flex-col items-center">
8
<FrostcordSnowflake className='fill-slate-600 w-full h-full' fillColor='#8a94a633'/>
9
+ {servers.length === 0 && (
10
+ <div className='w-full text-center text-gray-400 mb-8 italic animate-pulse'>
11
+ <h1 className="text-xl">{'Looks like you\'re not a part of any servers...'}</h1>
12
+ <h2 className="text-xl">{'Why not create or join one?'}</h2>
13
+ </div>
14
+ )}
15
</div>
16
);
17
}
0 commit comments