Skip to content

Commit 7ee2581

Browse files
miguelaenlleJ164
andauthored
Implemented Illustrations in Registration Page (#233)
* Added backgrounds; reduced text size; started characters * Implemented backgrounds; characters; further mobile and desktop optimizations * Fixed sizing for other option textbox for checkboxes * Convert the characters and backgrounds to SVG * Resolved Review Info padding bug * Resolved Navbar padding issue * adjust illustrations * Implemented navbar support for mobile * Removed contentRef --------- Co-authored-by: J164 <[email protected]>
1 parent e42b02e commit 7ee2581

32 files changed

+5092
-79
lines changed

components/Form/Checkboxes/Checkboxes.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.container {
22
display: flex;
33
flex-direction: column;
4-
gap: 0.5rem;
4+
gap: 1.5rem;
55
}
66

77
.checkboxes {

components/Form/Checkboxes/RadioButton/RadioButton.module.scss

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020

2121
border-radius: 0.25em;
2222
@media (max-width: 768px) {
23-
width: 24px;
24-
height: 24px;
23+
min-width: 28px;
24+
min-height: 28px;
25+
width: 28px;
26+
height: 28px;
2527
}
2628
}
2729

@@ -48,7 +50,7 @@
4850
// hide it
4951

5052
@media (max-width: 768px) {
51-
font-size: 20px;
53+
font-size: 16px;
5254
}
5355
display: none;
5456
}

components/Form/Checkboxes/StyledCheckbox/StyledCheckbox.module.scss

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
border: 2px solid #ffffff;
2222
border-radius: 0.25em;
2323
@media (max-width: 768px) {
24-
width: 24px;
25-
height: 24px;
24+
min-width: 28px;
25+
min-height: 28px;
26+
width: 28px;
27+
height: 28px;
2628
}
2729
}
2830

@@ -37,7 +39,4 @@
3739
.checkbox {
3840
display: none;
3941
}
40-
@media (max-width: 768px) {
41-
font-size: 20px;
42-
}
4342
}

components/Form/Checkboxes/StyledInput/StyledInput.module.scss

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
&:invalid {
2323
border: 4px solid rgb(224, 57, 7);
2424
}
25+
@media (max-width: 768px) {
26+
font-size: 16px;
27+
}
2528
}
2629

2730
.multiline {

components/Form/DropdownBox/Dropdown.module.scss

+15-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
flex-direction: column;
44
position: relative;
55
width: 100%;
6-
gap: 0.5rem;
6+
gap: 1rem;
77
}
88

99
.dropdownButton {
1010
width: 100%;
11-
padding: 11px;
11+
padding: 10px;
1212
font-size: 20px;
1313
color: #a19366;
1414
background-color: #ffffff;
@@ -21,10 +21,15 @@
2121
&:focus {
2222
outline: 4px solid #ad8e28;
2323
}
24+
25+
@media (max-width: 768px) {
26+
font-size: 16px;
27+
}
2428
}
2529

2630
.dropdownIcon {
27-
font-size: 16px;
31+
font-size: 14px;
32+
height: 22px;
2833
color: #757575;
2934
}
3035

@@ -51,6 +56,10 @@
5156
transition:
5257
opacity 0.3s ease,
5358
height 0.3s ease;
59+
60+
@media (max-width: 768px) {
61+
font-size: 16px;
62+
}
5463
}
5564

5665
.dropdownOptions.open {
@@ -65,6 +74,9 @@
6574
font-size: 18px;
6675
color: #ad8e28;
6776
cursor: pointer;
77+
@media (max-width: 768px) {
78+
font-size: 16px;
79+
}
6880
}
6981

7082
.dropdownOptions li:hover {

components/Form/DropdownBox/Dropdown.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const Dropdown: React.FC<DropdownProps> = ({
197197
<svg
198198
width="22"
199199
height="22"
200-
viewBox="0 0 24 24"
200+
viewBox="0 0 22 22"
201201
fill="currentColor"
202202
>
203203
<polygon points="12,8 4,16 20,16" />
@@ -206,7 +206,7 @@ const Dropdown: React.FC<DropdownProps> = ({
206206
<svg
207207
width="22"
208208
height="22"
209-
viewBox="0 0 24 24"
209+
viewBox="0 0 22 22"
210210
fill="currentColor"
211211
>
212212
<polygon points="4,8 20,8 12,16" />

components/Form/FileUpload/FileUpload.module.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.fileUpload {
99
background-color: white;
1010
width: 100%;
11-
padding: 5rem;
11+
padding: 5rem 2rem;
1212
display: flex;
1313
flex-direction: column;
1414
justify-content: center;
@@ -18,7 +18,7 @@
1818
position: relative;
1919

2020
.text {
21-
font-size: 24px;
21+
font-size: 20px;
2222
color: #6c6c6c;
2323
font-style: normal;
2424
font-weight: 400;
@@ -32,7 +32,7 @@
3232
label {
3333
background-color: #33b1c1;
3434
font-weight: 400;
35-
font-size: 24px;
35+
font-size: 20px;
3636
color: white;
3737
padding: 1rem 5rem;
3838
display: flex;

components/Form/NavigationButton/NavigationButton.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
padding-left: 30px;
1515
padding-right: 30px;
1616
text-transform: uppercase;
17-
font-size: 28px;
17+
font-size: 24px;
1818
height: auto;
1919
cursor: pointer;
2020

components/Form/TextInput/TextInput.module.scss

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.container {
22
display: flex;
33
flex-direction: column;
4-
gap: 0.5rem;
4+
gap: 1rem;
55
}
66

77
.input {
@@ -23,6 +23,10 @@
2323
&:focus {
2424
outline: 4px solid #ad8e28;
2525
}
26+
27+
@media (max-width: 768px) {
28+
font-size: 16px;
29+
}
2630
}
2731

2832
.invalid {

components/Form/TextInput/TextInput.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const TextInput: React.FC<TextInputProps> = ({
6464
{...props}
6565
/>
6666
)}
67-
<h4>{showFeedback && meta.error}</h4>
67+
{showFeedback && <h4>{meta.error}</h4>}
6868
</div>
6969
);
7070
};

components/ProgressBar/ProgressBar.module.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
grid-template-rows: 1fr;
77
grid-template-columns: 1fr;
88
margin-top: 1rem;
9-
padding: 1rem;
9+
padding: 1rem 0.75rem;
1010

1111
.progressBar {
1212
position: relative;
@@ -67,7 +67,8 @@
6767

6868
@media (max-width: 768px) {
6969
.progressStepper {
70-
padding: 0;
70+
padding: 0 0.5rem;
71+
padding-top: 0.75rem;
7172
.progressBar {
7273
height: 2px;
7374
}

components/Registration/Pages/PersonalInfo/PersonalInfo.module.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.container {
22
display: flex;
33
flex-direction: column;
4-
gap: 3rem;
4+
gap: 1.5rem;
55

66
@media (max-width: 768px) {
7-
gap: 2rem;
7+
gap: 1rem;
88
}
99
}
1010

@@ -15,7 +15,7 @@
1515
align-items: flex-start;
1616
@media (max-width: 768px) {
1717
flex-direction: column;
18-
gap: 2rem;
18+
gap: 1rem;
1919
}
2020
}
2121

components/Registration/Pages/ReviewInfo/ReviewInfo.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
.reviewButtons {
1515
display: flex;
1616
flex-direction: column;
17-
gap: 2rem;
17+
gap: 1rem;
1818
}
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,47 @@
11
.container {
2-
margin-top: 13%;
32
display: flex;
43
flex-direction: column;
54
justify-content: flex-start;
65
align-items: center;
7-
width: 100%;
6+
width: 1750px;
87
padding: 5rem 1rem;
9-
gap: 4rem;
8+
padding-top: 2rem;
9+
gap: 3rem;
1010
min-height: 100vh;
11-
position: relative;
11+
background-repeat: no-repeat;
12+
background-size: 1750px;
13+
14+
@media (max-width: 1024px) {
15+
background-size: 1256px;
16+
max-height: 100vh;
17+
overflow-y: auto;
18+
}
19+
1220
@media (max-width: 768px) {
13-
padding: 4rem 1.5rem;
14-
padding-bottom: 25rem;
15-
// Lots of bottom padding for mobile keyboard
21+
background-size: 400px;
22+
gap: 2rem;
23+
padding-bottom: 25rem; // bottom padding is for mobile keyboard
24+
}
25+
}
26+
27+
.contentWrapper {
28+
margin-top: 126px;
29+
display: flex;
30+
align-items: center;
31+
justify-content: center;
32+
flex-direction: column;
33+
gap: 3rem;
34+
width: 80%;
35+
@media (max-width: 768px) {
36+
margin-top: 68px;
1637
}
1738
}
1839

1940
.form {
2041
width: 100%;
2142
h1 {
2243
font-weight: 900;
23-
font-size: 72px;
44+
font-size: 36px;
2445
color: white;
2546
// font-size: 56px;
2647
@media (max-width: 768px) {
@@ -31,26 +52,27 @@
3152

3253
h4 {
3354
font-weight: 400;
34-
font-size: 24px;
35-
color: white;
55+
font-size: 20px;
56+
color: red;
57+
@media (max-width: 768px) {
58+
font-size: 16px;
59+
}
3660
}
3761

3862
label,
3963
h3 {
4064
font-weight: 600;
41-
font-size: 40px;
65+
font-size: 20px;
4266
color: white;
43-
// font-size: 28px;
4467
@media (max-width: 768px) {
45-
font-size: 22px;
68+
font-size: 18px;
4669
}
4770
color: white;
4871
}
4972

5073
display: flex;
5174
flex-direction: column;
52-
gap: 6rem;
53-
max-width: 900px;
75+
gap: 3rem;
5476
}
5577

5678
.navigation {
@@ -59,3 +81,35 @@
5981
align-items: center;
6082
width: 100%;
6183
}
84+
85+
.formWrapper {
86+
display: flex;
87+
width: 100%;
88+
gap: 3rem;
89+
90+
max-width: 1200px;
91+
}
92+
93+
.formContent {
94+
flex: 2;
95+
}
96+
97+
.character {
98+
display: flex;
99+
flex-direction: column;
100+
justify-content: flex-end;
101+
flex: 0.5;
102+
img {
103+
width: 100%;
104+
height: auto;
105+
object-fit: contain;
106+
// scale up 1.5x
107+
}
108+
@media (max-width: 1000px) {
109+
flex: 1;
110+
}
111+
112+
@media (max-width: 768px) {
113+
display: none;
114+
}
115+
}

0 commit comments

Comments
 (0)