Skip to content

Commit 2a15219

Browse files
committed
message if user isn't part of a server
1 parent 3532843 commit 2a15219

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

components/home/DefaultSplash.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
//TODO: REMOVE THIS FILE, JUST FOR TESTING
2-
31
import { FrostcordSnowflake } from '@/components/icons/FrostcordSnowflake';
2+
import { useServers } from '@/lib/store';
43

54
export default function DefaultSplash() {
5+
const servers = useServers();
66
return (
7-
<div className="w-full h-full flex items-center">
7+
<div className="w-full h-full flex flex-col items-center">
88
<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+
)}
915
</div>
1016
);
1117
}

0 commit comments

Comments
 (0)