Greeting screen on first startup
Disti4ct opened this issue · comments
Goal: when the user launches this app for the first time, we need to display a new page with the following content:
Hello! Let's connect this domain to your wallet address. Do you want to set <replace this with user address:
0x...
> address as the owner of <replace with a current domain:window.location.hostname || document.location.host
>? Then only you can access and change the settings of the app.
Next we have a short notice with a bold text (some styles to be sure users see it):
If you want to change the address, switch to another address. If you can't switch, just disconnect your wallet and connect it to the new address.
And finally we have buttons:
- Disconnect
- Set my address as the owner
approximate plan:
Create a new component (follow the file structure and rules): GreetingScreen/index.tsx
. Import it inside src/pages/App.tsx
. Display this component in case if !appIsReady
(maybe before <Connection />).
- wait for a while. We cannot just set a new admin, with this flow we have to deploy Factory + Router. Maybe it's better to complete it first: #102