Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

feat: style login redirect page - [ch1400] #221

Merged
merged 1 commit into from
Jan 20, 2021
Merged

feat: style login redirect page - [ch1400] #221

merged 1 commit into from
Jan 20, 2021

Conversation

kvnlnt
Copy link
Contributor

@kvnlnt kvnlnt commented Jan 19, 2021

Adds basic styling to login redirect page.

1400-demo.mov

@vapurrmaid who else might I add as a reviewer?

@kvnlnt kvnlnt requested a review from greyscaled January 19, 2021 23:18
@greyscaled
Copy link
Contributor

@kvnlnt We can ping @cmoog as one of the core coder-cli reviewers

@greyscaled greyscaled requested review from rachelchhay, cmoog and alexgilev and removed request for greyscaled January 19, 2021 23:25
Copy link

@rachelchhay rachelchhay left a comment

Choose a reason for hiding this comment

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

LOVE the animation you added! I think it would look nice if the green banner was a circle instead. So kinda like a big start button. But I'll leave the main design feedback to Alex.

Copy link
Contributor

@cmoog cmoog left a comment

Choose a reason for hiding this comment

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

LGTM. Running ./ci/steps/fmt.sh and ./ci/steps/lint.sh should resolve the CI issues.

@kvnlnt
Copy link
Contributor Author

kvnlnt commented Jan 19, 2021

LOVE the animation you added! I think it would look nice if the green banner was a circle instead. So kinda like a big start button. But I'll leave the main design feedback to Alex.

@alexgilev let me know what you think, feel free to blow it up.

@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #1400: coder login redirect page lacks any styling.

@kvnlnt
Copy link
Contributor Author

kvnlnt commented Jan 20, 2021

@cmoog moved the template outside the control flow, also put it into a parameterized function after noticing another state needing to be expressed not specified in the ticket (a session_token missing).

@rachelchhay put in your design suggestion (made it look like a power button) as well as lifted colors from our 2.0 scheme. Also notice the "off" state I added needed for a "session_token" missing state.

1400-on.mov
1400-off.mov

@kvnlnt kvnlnt requested review from cmoog and rachelchhay January 20, 2021 17:03
Copy link

@rachelchhay rachelchhay left a comment

Choose a reason for hiding this comment

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

That's exactly what I had in mind. Looks great to me! Btw, Alex is on PTO today. I'm fine with merging as is and making changes after he has a chance to take a look.

func (srv *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
ctx := req.Context()

token := req.URL.Query().Get("session_token")
if token == "" {
w.WriteHeader(http.StatusBadRequest)
_, _ = fmt.Fprintf(w, "No session_token found.\n") // Best effort.
// _, _ = fmt.Fprintf(w, "No session_token found.\n") // Best effort.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// _, _ = fmt.Fprintf(w, "No session_token found.\n") // Best effort.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@greyscaled
Copy link
Contributor

@kvnlnt @rachelchhay @cmoog This is awesome stuff

@kvnlnt kvnlnt merged commit c38df0b into master Jan 20, 2021
@kvnlnt kvnlnt deleted the ch1400 branch January 20, 2021 18:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants