-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: loading screen * chore: casing --------- Co-authored-by: Daniel Norman <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react' | ||
import Image from 'next/image' | ||
import Spinner from './spinner' | ||
|
||
interface Props { | ||
error?: string | ||
} | ||
|
||
export function Booting({ error }: Props) { | ||
return ( | ||
<div className="grid h-screen place-items-center"> | ||
<div className="text-center"> | ||
<Image | ||
src="/libp2p-logo.svg" | ||
alt="libp2p logo" | ||
height="156" | ||
width="156" | ||
className="text-white mx-auto mb-5" | ||
/> | ||
<h2 className="text-3xl font-bold text-gray-900 mb-2">Initializing libp2p peer</h2> | ||
{!error && ( | ||
<> | ||
<p className="text-lg text-gray-900 mb-2">Connecting to bootstrap nodes...</p> | ||
<Spinner /> | ||
</> | ||
)} | ||
{error && error !== '' && <p className="text-lg text-gray-900">{error}</p>} | ||
{error && error === '' && <p className="text-lg text-gray-900">Unknown error</p>} | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters