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

Refactor/penrose-background #40

Merged
merged 8 commits into from
Aug 28, 2023
Merged

Conversation

queuing4oranges
Copy link
Collaborator

@queuing4oranges queuing4oranges commented Aug 7, 2023

  • adding new component to utils that will generate the Penrose background and resize the background when the window size changes
  • adding the generatePenroseto all relevant screens

"can't login" screen and resizing

seacat-auth-penrose-cant-login-screen-sizes.mp4

all screens

seacat-auth-penrose-all-screens.mp4

different browser /testing resizing

seacat-auth-penrose-screen-resizing-vivaldi.mp4

@queuing4oranges queuing4oranges self-assigned this Aug 8, 2023
@@ -59,31 +53,6 @@ function LoginScreen(props) {
}
}

function useWindowSize() {
Copy link
Collaborator Author

@queuing4oranges queuing4oranges Aug 8, 2023

Choose a reason for hiding this comment

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

the useWindowSize is only being used to measure and for re-creating background when screen size changes (same was in RegisterScreen)

it's now part of the generatePenrose function

@queuing4oranges queuing4oranges requested a review from Pe5h4 August 8, 2023 10:17
Copy link
Collaborator

@Pe5h4 Pe5h4 left a comment

Choose a reason for hiding this comment

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

Alright, this looks very good. Please test that also on invitation (but this should look the same I suppose)

}, [size])

return null;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@queuing4oranges No new line at the end of the file

@Pe5h4 Pe5h4 requested a review from ateska August 11, 2023 14:19
@queuing4oranges
Copy link
Collaborator Author

  • tested on invitation
  • added also to password reset

penrose-invitation-diffuser

penrose-invitation

penrose-reset-pw

penrose-reset-pw2

@queuing4oranges queuing4oranges requested a review from Pe5h4 August 24, 2023 09:53
@queuing4oranges queuing4oranges marked this pull request as ready for review August 28, 2023 08:25
@queuing4oranges queuing4oranges merged commit b0a248c into main Aug 28, 2023
@queuing4oranges queuing4oranges deleted the refactor/penrose-bg-refresh branch August 28, 2023 08:25
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.

3 participants