-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Use tailwind if possible. 2. Realize that each step has a different desired content width, so introduce contentClassName for that. 3. Adjust many numbers to follow the design, like margin, padding, gap. 4. Add margin to content so that text are not TOO near the edge in mobile view.
- Loading branch information
1 parent
4731773
commit e50d07c
Showing
4 changed files
with
109 additions
and
90 deletions.
There are no files selected for viewing
This file contains 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,41 +1,34 @@ | ||
.logo { | ||
position: absolute; | ||
height: 48px; | ||
} | ||
.body { | ||
min-height: 100vh; | ||
flex-shrink: 0; | ||
} | ||
.centerDiv { | ||
margin: auto; | ||
padding-top: 100px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
max-width: 750px; | ||
@apply min-h-screen; | ||
@apply shrink-0; | ||
@apply flex flex-col; | ||
@apply relative; | ||
} | ||
.navigationDiv { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
gap: 10px; | ||
margin-bottom: 10px; | ||
|
||
.logo { | ||
@apply absolute; | ||
@apply h-12; | ||
} | ||
.contentDiv { | ||
margin: 50px 10px; | ||
max-width: 100%; | ||
|
||
.content { | ||
@apply self-center; | ||
@apply flex flex-col; | ||
@apply mt-[100px] mx-4 mb-4; | ||
} | ||
.titlesDiv { | ||
width: 420px; | ||
max-width: 100%; | ||
|
||
.navigationDiv { | ||
@apply self-center; | ||
@apply flex flex-row justify-between items-center; | ||
@apply gap-2.5; | ||
} | ||
|
||
.SurveyTitle { | ||
white-space: pre-line; | ||
text-align: center; | ||
margin-bottom: 20px; | ||
@apply whitespace-pre-line; | ||
@apply text-center; | ||
@apply mb-6; | ||
} | ||
|
||
.SurveySubtitle { | ||
white-space: pre-line; | ||
text-align: center; | ||
@apply whitespace-pre-line; | ||
@apply text-center; | ||
} |
This file contains 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 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,42 +1,55 @@ | ||
.SingleChoiceButtonGroupVariantCentered { | ||
display: flex; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
gap: 10px; | ||
justify-content: center; | ||
width: 100%; | ||
@apply my-[72px]; | ||
@apply flex flex-row flex-wrap items-center justify-center; | ||
@apply gap-4; | ||
} | ||
|
||
.SingleChoiceButtonGroupVariantLabeled { | ||
display: flex; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
gap: 10px; | ||
width: 100%; | ||
@apply flex flex-row flex-wrap items-center; | ||
@apply gap-4; | ||
@apply w-full; | ||
} | ||
|
||
.formBox { | ||
@apply mt-[48px] mb-[72px]; | ||
@apply grid; | ||
@apply gap-8; | ||
} | ||
|
||
.step1Content { | ||
@apply max-w-[600px]; | ||
} | ||
|
||
.step2Content { | ||
@apply max-w-[420px]; | ||
} | ||
|
||
.step3Content { | ||
@apply max-w-[420px]; | ||
} | ||
|
||
.step4Content { | ||
@apply max-w-[760px]; | ||
} | ||
|
||
.step4 { | ||
@apply mt-[48px] mb-[72px]; | ||
} | ||
|
||
.MultiChoiceButtonGroup { | ||
display: grid; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
gap: 10px; | ||
margin: auto; | ||
grid-auto-rows: 1fr; | ||
@apply grid; | ||
@apply gap-6 mobile:gap-3; | ||
@apply grid-cols-2 mobile:grid-cols-1; | ||
grid-auto-rows: 1fr; | ||
} | ||
|
||
.CompoundChoiceButton { | ||
display: grid; | ||
max-width: 368px; | ||
min-height: 118px; | ||
height: 100%; | ||
padding: 25px; | ||
} | ||
.formBox { | ||
width: 380px; | ||
max-width: 100%; | ||
display: grid; | ||
gap: 20px; | ||
padding-left: 10px; | ||
padding-right: 10px; | ||
} | ||
|
||
.otherReasonInput { | ||
margin-top: 20px; | ||
@apply mt-8; | ||
} |
This file contains 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