-
Notifications
You must be signed in to change notification settings - Fork 1
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
[feat + style] Sign Up + Sign In page: basic implementation w/ Supabase and styling #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you change the auth folder name to (auth)
?
app/auth/auth-styles.ts
Outdated
@@ -0,0 +1,129 @@ | |||
import styled from 'styled-components'; | |||
import COLORS from '../../styles/colors'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update all imports using the alias! for example: import COLORS from '@/styles/colors';
app/auth/signup/page.tsx
Outdated
</Card> | ||
<SmallBuffer /> | ||
<Footer> | ||
Already have an account? <Link href="/auth/signin">Sign in!</Link> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to <Link href="/signin">
app/auth/signin/page.tsx
Outdated
</Card> | ||
<SmallBuffer /> | ||
<Footer> | ||
Don’t have an account? <Link href="/auth/signup">Sign up!</Link> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to <Link href="/signup">
…se and styling (#16) * [feat + style] user authentication + styling * eslint style fixes * typo in text for signup page * forgot to capitalize the 'in' in 'Sign In' * updated imports + links + added exclamation points * updated imports + links + added exclamation points --------- Co-authored-by: Rohin Juneja <[email protected]>
🍞 What's new in this PR
🥐 Description
Took the basic back-end login and signup functionality I had in one login page earlier and created two new styled pages: a sign-up page (app/auth/signup/page.tsx) and a sign in page (app/auth/signin/page.tsx). I created styled components in app/auth/auth-styles.ts for both pages. The page remains centered with varying screen sizes. I saw some minor style/design changes made to Figma this afternoon and those are reflected in the implementation.
Confirmation emails need to be configured in Supabase settings, but after that, basic sign-up and sign-in functionality should be fully implemented. I describe some more features that would complete / enhance the authentication process in next steps. For now, I also added an error message at the bottom of the white card in the center of the page to make it easier to validate whether logins/signups were successful.
🥖 Screenshots
🥪 How to review
Functionality
Basically everything is in the first commit with user authentication and styling. The signup page (app/auth/signup/page.tsx) takes as input an email, password, and confirmed password. It should display an error if passwords do not match or if the email is invalid. The login page (app/auth/signin/page.tsx) takes as input an email and password, and it should display an error if the login credentials are invalid. The supabase user table to track users and auth requests is linked here: https://supabase.com/dashboard/project/paifoskjfzbjbiehraqj/auth/users
Styling
Uses flexbox so it should remain centered with varying screen sizes. I believe all fonts, colors, and font sizes should match the Figma now, except for the temporary error message I added as discussed above. All the styled components I created for the page can be found in app/auth/auth-styles.ts
Testing
Because the SMTP confirmation email isn't set up yet, sign up functionality isn't quite there right now, but you can test login with the following email + password I added to the users table
Email: [email protected]
Password: vignesh
🥧 Next steps
Functionality
Styling
🥞 Relevant links
🥨 Online sources
https://styled-components.com/docs/basics#adapting-based-on-props
Referenced these PRs:
https://github.com/calblueprint/immigration-justice-project/pull/24/files
https://github.com/calblueprint/immigration-justice-project/pull/27/files
🥯 Related PRs
CC: @celinechoiii