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

Add welcome screen #52

Open
Bodigrim opened this issue Oct 5, 2024 · 9 comments
Open

Add welcome screen #52

Bodigrim opened this issue Oct 5, 2024 · 9 comments

Comments

@Bodigrim
Copy link

Bodigrim commented Oct 5, 2024

Feature request

Currently if an uninitiated user hits https://play.haskell.org there is no introduction / welcome screen, just a sheer wall of code. This could be frightening for newcomers. Could it be possible to detect if it's a first visit to the domain and display a modal window, describing purpose / capabilities of the site and where to go next?

@tomsmeding
Copy link
Collaborator

That's possible. Neither the Rust playground nor the Go playground seem to have this -- at least, not when I visit them in incognito mode.

There is already a Help button in the top-left of the screen; infelicities of that thing are 1. the placement of the modal is not ideal on mobile or small screens, either <dialog> is uncooperative or my CSS skills are not strong enough; 2. there is no introductory sentence at the top of the modal; 3. the Help button is not immediately visible on mobile, you have to scroll the top toolbar to bring it in view.

Could we repurpose the Help screen for this? What text / design did you have in mind?

@Bodigrim
Copy link
Author

Bodigrim commented Oct 5, 2024

Yes, if we can make Help screen to pop up at first visit, it would be great.

A few introductory sentences; what this playground is capable of / suitable for, and what it's not sufficient for; where to go next if you need more (basically a link to ghcup).

@tomsmeding
Copy link
Collaborator

What is the sanctioned place to send people? This page?

@Bodigrim
Copy link
Author

Bodigrim commented Oct 5, 2024

If you are past Playground capabilities you are already capable of "Running your first lines of code" and "Writing your first Haskell program", so I'd send users straight up to https://www.haskell.org/ghcup/#.

(I think it's rather https://www.haskell.org/get-started/ should send people to Playground first instead of suggesting to install local development environment)

@hasufell
Copy link
Member

hasufell commented Oct 5, 2024

I'm not sure I am a fan of popups when I visit websites.

I think a help button should be enough.

@tomsmeding
Copy link
Collaborator

tomsmeding commented Oct 5, 2024

I'm not sure I am a fan of popups when I visit websites.

Agreed.

I think a help button should be enough.

What do you think of the placement of the button currently? It's reachable and visible on desktop, but takes scrolling the toolbar on mobile or small screens. (And also I need to fix the popup on mobile anyway...)

@hasufell
Copy link
Member

hasufell commented Oct 5, 2024

I'm not sure I am a fan of popups when I visit websites.

Agreed.

I think a help button should be enough.

What do you think of the placement of the button currently? It's reachable and visible on desktop, but takes scrolling the toolbar on mobile or small screens. (And also I need to fix the popup on mobile anyway...)

Screenshot_20241005_175934_edit_177851854403068.jpg

Maybe a question mark symbol there?

Alternatively a small question mark symbol directly on the haskell icon. Like notification style. It would vanish if you're not a new time visitor and the original help text button would persist.

@tomsmeding
Copy link
Collaborator

Where is the "there" you mean?

@hasufell
Copy link
Member

hasufell commented Oct 5, 2024

Where is the "there" you mean?

I reuploaded the picture

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

No branches or pull requests

3 participants