Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show custom landing page for known dapps #1590

Merged
merged 2 commits into from
May 12, 2023
Merged

Show custom landing page for known dapps #1590

merged 2 commits into from
May 12, 2023

Conversation

nmattia
Copy link
Collaborator

@nmattia nmattia commented May 12, 2023

This adds a few variations to the landing page, esp. to show some prettier information (logo, actual name instead of just URL) for known dapps (i.e. dapps we use for the explorer).

This also adds a new screenshot for every page that contains a chasm, that shows the chasm open.

This includes a workaround where the frontend uses the II_DUMMY_CAPTCHA value to assume the dapp is in a "test" environment, in which case it includes an extra "known dapp" for testing purposes.


This includes a workaround where the frontend uses the II_DUMMY_CAPTCHA value to assume the dapp is in a "test" environment, in which case it includes an extra "known dapp" for testing purposes.

This is unfortunate but I didn't think it was worth adding a build flag just for this. I'll try to come up with a better solution soon, maybe using vite conf files as @peterpeterparker suggested.

This adds a few variations to the landing page, esp. to show some
prettier information (logo, actual name instead of just URL) for known
dapps (i.e. dapps we use for the explorer).

This also adds a new screenshot for every page that contains a chasm,
that shows the chasm open.

This includes a workaround where the frontend uses the
`II_DUMMY_CAPTCHA` value to assume the dapp is in a "test" environment,
in which case it includes an extra "known dapp" for testing purposes.

// There are a few variations of this screen that share some common elements

// Variation: the dapp is known and user is using II for the first time
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice for these helpers to live outside the function. Unfortunately there is a lot of state to thread through (knownDapp, action, copy) which makes everything more complex.

Copy link
Contributor

@frederikrothenberger frederikrothenberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nmattia nmattia merged commit 927809c into main May 12, 2023
@nmattia nmattia deleted the nm-landing-dapp branch May 12, 2023 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants