-
Notifications
You must be signed in to change notification settings - Fork 26
Story 2130: V3 Sign Up and Log In Pages #2290
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f620472
feat: implement auth page template and sign up page
julhoang 8345b40
feat: implement log in page
julhoang 86b2203
style: updating styling with new assets
julhoang 0037254
feat: improve auth form FE validations
julhoang 53deda7
chore: improve documentation for _field_text.html
julhoang f8237c8
feat: disable submit when form has errors, add disabled button styling
julhoang 9196c11
chore: specify if variables are optional/required in page documentation
julhoang 155dc8e
chore: update static path for auth images
julhoang 2d7a31b
style: update foreground asset and implement 1-column layout for tablet
julhoang e8f9f18
fix: address QA feedback – nit font styling, reduce image size, add u…
julhoang a04cd4f
feat: have V3AuthContextMixin extends V3Mixin
julhoang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,213 @@ | ||
| /* | ||
| Auth Page | ||
| Two-column layout for sign-up and sign-in pages. | ||
| Left: illustration image. Right: centered form content. | ||
| Dependencies: foundations, forms, buttons. | ||
| */ | ||
|
|
||
| /* ── Header overlay on auth pages ─────────── */ | ||
| body:has(.auth-page) .header { | ||
| position: absolute; | ||
| z-index: 10; | ||
| left: 0; | ||
| right: 0; | ||
| } | ||
|
|
||
| /* ── Page-level flex column ───────────────── */ | ||
| .auth-page { | ||
| display: flex; | ||
| flex-direction: column; | ||
| min-height: 100vh; | ||
| } | ||
|
|
||
| /* ── Reset base.html intermediate wrappers ──── */ | ||
| .auth-page .w-full, | ||
|
julhoang marked this conversation as resolved.
|
||
| .auth-page .md\:px-0 { | ||
| min-height: auto; | ||
| padding: 0; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .auth-page .min-vh-110 { | ||
| min-height: auto; | ||
| padding: 0; | ||
| width: 100%; | ||
| flex: 1; | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| .auth-page p { | ||
| margin: 0; | ||
| padding: 0; | ||
| } | ||
|
|
||
| /* ── Two-column grid layout ───────────────── */ | ||
| .auth-page__wrapper { | ||
| display: grid; | ||
| grid-template-columns: 1fr 1fr; | ||
| width: 100%; | ||
| max-width: 1440px; | ||
| flex: 1; | ||
| min-height: 0; | ||
| overflow: hidden; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| /* ── Illustration Panel ────────────────────── */ | ||
| .auth-page__illustration { | ||
| position: relative; | ||
| overflow: hidden; | ||
| } | ||
|
|
||
| .auth-page__illustration-background { | ||
| position: absolute; | ||
| inset: 0; | ||
| width: 100%; | ||
| height: 100%; | ||
| object-fit: cover; | ||
| z-index: 0; | ||
| } | ||
|
|
||
| .auth-page__illustration-foreground { | ||
| margin-top: 80px; /* This is the size of the header navbar, added so that the content will not be hidden behind it */ | ||
| position: absolute; | ||
| inset: 0; | ||
| width: 100%; | ||
| object-fit: contain; | ||
| z-index: 1; | ||
| align-self: center; | ||
| } | ||
|
|
||
| /* ── Content Panel ─────────────────────────── */ | ||
| .auth-page__content { | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| padding: var(--space-xlarge); | ||
| margin-top: 80px; /* This is the size of the header navbar, added so that the content will not be hidden behind it */ | ||
| } | ||
|
|
||
| .auth-page__content-inner { | ||
| max-width: 458px; | ||
| width: 100%; | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: var(--space-large); | ||
| } | ||
|
|
||
| /* ── Header ────────────────────────────────── */ | ||
| .auth-page__header { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: var(--space-medium); | ||
| } | ||
|
|
||
| .auth-page__title { | ||
| font-family: var(--font-display); | ||
| font-size: var(--font-size-large); | ||
| font-weight: var(--font-weight-medium); | ||
| line-height: var(--line-height-tight); | ||
| letter-spacing: -0.01em; | ||
| color: var(--color-text-primary); | ||
| margin: 0; | ||
| } | ||
|
|
||
| .auth-page__subtitle { | ||
| font-family: var(--font-sans); | ||
| font-size: var(--font-size-base); | ||
| font-weight: var(--font-weight-regular); | ||
| line-height: var(--line-height-default); | ||
| letter-spacing: -0.01em; | ||
| color: var(--color-text-secondary); | ||
| margin: 0; | ||
| } | ||
|
|
||
| /* ── Card ──────────────────────────────────── */ | ||
| .auth-page__card { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: var(--space-large); | ||
| padding: var(--space-large); | ||
| border: 1px solid var(--color-stroke-weak); | ||
| border-radius: var(--border-radius-xxl); | ||
| background: var(--color-surface-weak); | ||
| } | ||
|
|
||
| /* ── Forgot Password Link ──────────────────── */ | ||
| .auth-page__forgot-link { | ||
| font-family: var(--font-sans); | ||
| font-size: var(--font-size-xs); | ||
| font-weight: var(--font-weight-regular); | ||
| line-height: 120%; | ||
| letter-spacing: -0.12px; | ||
| color: var(--color-text-primary); | ||
| text-decoration: underline; | ||
| text-decoration-skip-ink: auto; | ||
| text-underline-offset: auto; | ||
| width: fit-content; | ||
| } | ||
|
|
||
| .auth-page__forgot-link:hover { | ||
| color: var(--color-text-link-accent); | ||
| } | ||
|
|
||
| /* ── Divider ───────────────────────────────── */ | ||
| .auth-page__divider { | ||
| font-family: var(--font-display); | ||
| font-size: 18px; | ||
| font-weight: var(--font-weight-medium); | ||
| line-height: var(--line-height-tight); | ||
| letter-spacing: -0.01em; | ||
| color: var(--color-text-primary); | ||
| text-align: center; | ||
| margin: 0; | ||
| } | ||
|
|
||
| /* ── Social Card ───────────────────────────── */ | ||
| .auth-page__social-card { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: var(--space-default); | ||
| padding: var(--space-large); | ||
| border: 1px solid var(--color-stroke-weak); | ||
| border-radius: var(--border-radius-xxl); | ||
| background: var(--color-surface-weak); | ||
| } | ||
|
|
||
| /* ── Responsive (Tablet) ────────────────────────────── */ | ||
| @media (max-width: 1279px) { | ||
| .auth-page { | ||
| min-height: auto; | ||
| } | ||
|
|
||
| .auth-page__wrapper { | ||
| grid-template-columns: 1fr; | ||
| flex: none; | ||
| } | ||
|
|
||
| .auth-page__illustration { | ||
| height: 592px; | ||
| } | ||
|
|
||
| .auth-page__illustration-foreground { | ||
| height: 500px; | ||
| } | ||
|
|
||
| .auth-page__content { | ||
| padding: var(--space-medium); | ||
| align-items: flex-start; | ||
| margin-top: 0; | ||
| } | ||
| } | ||
|
|
||
| /* ── Responsive (Mobile) ────────────────────────────── */ | ||
| @media (max-width: 767px) { | ||
| .auth-page__illustration { | ||
| height: 368px; | ||
| } | ||
|
|
||
| .auth-page__illustration-foreground { | ||
| height: 280px; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While my PR has not yet been accepted, these particular files should be converted to S3 content once it is. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.