Show server status

This commit is contained in:
Dane Everitt 2020-08-24 21:17:15 -07:00
parent 7e3ac2399b
commit 9e60cf9f53
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -59,8 +59,18 @@ export default ({ server, className }: { server: Server; className?: string }) =
<FontAwesomeIcon icon={faServer}/>
</div>
<div css={tw`flex-1 ml-4`}>
<div css={tw`flex items-center`}>
<div
css={[
tw`w-3 h-3 rounded-full mr-2`,
(!stats?.status || stats?.status === 'offline')
? tw`bg-red-500`
: (stats?.status === 'running' ? tw`bg-green-500` : tw`bg-yellow-500`),
]}
/>
<p css={tw`text-lg`}>{server.name}</p>
</div>
</div>
<div css={tw`w-1/4 overflow-hidden`}>
<div css={tw`flex ml-4`}>
<FontAwesomeIcon icon={faEthernet} css={tw`text-neutral-500`}/>