-
Notifications
You must be signed in to change notification settings - Fork 2
Casimir43/enhancement/665 refactor baseauthform card layout loginform link #675
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
Skoivumaki
merged 12 commits into
dev
from
casimir43/enhancement/665-refactor-baseauthform-card-layout-loginform-link
Aug 27, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
355942a
style(auth): update baseauthform card and add logo
Casimir43 f55058f
style(auth): restyle BaseAuthForm card, add logo, register-in-game liβ¦
Casimir43 f5fca3a
style(auth): add remember-me checkbo,labels, and register in game
Casimir43 3706ed9
fix(auth): fix auth card sizing and layout, update Finnish translations
Casimir43 9fa6cd3
style(auth): add input label padding and checkbox styling for BaseAutβ¦
Casimir43 d17fd33
style(auth): add custom checkbox
Casimir43 b598f7a
style(auth): add custom checkbox with check.svg and fix auth layout pβ¦
Casimir43 1d060d6
style(auth): replace hardcoded colors with CSS vars in BaseAuthForm
Casimir43 3800f07
style(auth): match login card to mobile Figma design
Casimir43 0749930
style(auth): show username/email label on mobile and top-align form
Casimir43 fcffd99
test(auth): add login form label and link tests
Casimir43 13a5fa4
fix(auth): use next/image for logo in BaseAuthForm
Casimir43 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
157 changes: 145 additions & 12 deletions
157
frontend-next-migration/src/entities/Auth/ui/BaseAuthForm/BaseAuthForm.module.scss
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 |
|---|---|---|
| @@ -1,34 +1,167 @@ | ||
| .baseAuthForm { | ||
| @media (max-width: breakpoint(xl)) { | ||
| width: 280px; | ||
| .baseAuthForm.baseAuthForm { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| width: 100%; | ||
| max-width: 806px; | ||
| margin: 0 auto; | ||
| background: var(--base-card-background); | ||
| border: 2px solid var(--black); | ||
| box-shadow: 6px 12px 0px var(--drop-shadows); | ||
| border-radius: 12px; | ||
| padding: 44px 80px; | ||
| gap: 36px; | ||
| box-sizing: border-box; | ||
| min-height: 852px; | ||
|
|
||
| input[type='checkbox'] { | ||
| appearance: none; | ||
| -webkit-appearance: none; | ||
| width: 24px; | ||
| height: 24px; | ||
| padding: 0; | ||
| margin-right: 8px; | ||
| cursor: pointer; | ||
| flex: none; | ||
| background: var(--content-primary); | ||
| border: 1px solid var(--black); | ||
| border-radius: 4px; | ||
| box-shadow: 1px 1px 0px var(--drop-shadows); | ||
|
|
||
| &:checked { | ||
| background-image: url('../../../../shared/assets/icons/check.svg'); | ||
| background-repeat: no-repeat; | ||
| background-position: center; | ||
| background-size: 16px 14px; | ||
| } | ||
| } | ||
|
|
||
| .actions button { | ||
| background-color: var(--content-primary); | ||
| color: var(--drop-shadows); | ||
| border: 2px solid var(--drop-shadows); | ||
| box-shadow: 2px 4px 0px var(--drop-shadows); | ||
| border-radius: 25px; | ||
| padding: 12px 24px; | ||
| height: 47px; | ||
| font-family: var(--font-family-secondary); | ||
| font-size: 18px; | ||
| font-weight: 500; | ||
| line-height: 23px; | ||
|
|
||
| @media (max-width: breakpoint(sm)) { | ||
| background-color: #ffb703; | ||
| box-sizing: border-box; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| padding: var(--spacing-300) var(--spacing-400); | ||
| height: 53px; | ||
| font: var(--font-dm-m); | ||
| } | ||
| } | ||
|
|
||
| @media (max-width: breakpoint(md)) { | ||
| padding: 32px 40px; | ||
| } | ||
|
|
||
| @media (max-width: breakpoint(sm)) { | ||
| box-shadow: var(--m); | ||
| padding: 15px 15px 10px; | ||
| gap: 18px; | ||
| min-height: 641px; | ||
|
|
||
| h1 { | ||
| margin-bottom: 17px; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| .logo { | ||
| width: 282px; | ||
| height: 238px; | ||
| object-fit: contain; | ||
| margin: 0 auto; | ||
|
|
||
| @media (max-width: breakpoint(sm)) { | ||
| width: 198px; | ||
| height: 167px; | ||
| } | ||
| } | ||
|
|
||
| .fields { | ||
| gap: 4px; | ||
| gap: 24px; | ||
| width: 100%; | ||
| max-width: 460px; | ||
| margin: 0 auto; | ||
| font: var(--font-dm-bold-s); | ||
|
|
||
| @media (max-width: breakpoint(sm)) { | ||
| gap: 8px; | ||
| margin-bottom: 6px; | ||
| } | ||
|
|
||
| label { | ||
| font: var(--font-dm-s); | ||
| color: var(--white); | ||
| margin-bottom: 8px; | ||
| padding-left: 8px; | ||
| display: flex; | ||
| align-items: center; | ||
| } | ||
|
|
||
| input { | ||
| background-color: var(--background-color); | ||
| color: white; | ||
| border: 2px solid rgba(18, 18, 18, 1); | ||
| background-color: #172936; | ||
| color: var(--neutral); | ||
| border: none; | ||
| border-radius: 25px; | ||
| padding: 12px 24px; | ||
| height: 47px; | ||
| width: 100%; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| input::placeholder { | ||
| color: var(--primary-color); | ||
| color: var(--neutral); | ||
| } | ||
|
|
||
| input:focus::placeholder { | ||
| color: transparent; | ||
| } | ||
| } | ||
|
|
||
| .header { | ||
| font: var(--font-dm-bold-m); | ||
| font: var(--font-sw-xxxl); | ||
| display: flex; | ||
| font-size: 0.7em; | ||
| justify-content: start; | ||
| font-weight: 300; | ||
| justify-content: center; | ||
| align-items: center; | ||
| text-align: center; | ||
| color: var(--content-primary); | ||
|
|
||
| @media (max-width: breakpoint(sm)) { | ||
| font: var(--font-sw-xl); | ||
| } | ||
| } | ||
|
|
||
| .actions { | ||
| text-align: center; | ||
| gap: 16px; | ||
| width: 100%; | ||
| max-width: 460px; | ||
| margin: 0 auto; | ||
| color: var(--white); | ||
|
|
||
| button { | ||
| width: 100%; | ||
| } | ||
|
|
||
| p { | ||
| color: var(--white); | ||
| font: var(--font-dm-s); | ||
| } | ||
|
|
||
| a { | ||
| text-decoration: underline; | ||
| color: var(--content-primary); | ||
| } | ||
| } | ||
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
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.
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.
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.
This is wild. Shame
SCSSdoesnt understand @/shared...