Skip to content

Commit

Permalink
Implement tablet & mobile versions of VSR page
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminJohnson2204 committed Mar 23, 2024
1 parent b659e1a commit bc79d71
Show file tree
Hide file tree
Showing 14 changed files with 500 additions and 386 deletions.
224 changes: 139 additions & 85 deletions frontend/src/app/vsr/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
line-height: normal;
}

.title {
font-size: 40px;
}

.description {
color: #000;
/* Desktop/Body 1 */
Expand All @@ -25,18 +29,9 @@
line-height: normal;
}

.personalInfo {
color: var(--Accent-Blue-1, #102d5f);
/* Desktop/H2 */
font-family: Lora;
font-size: 24px;
font-style: normal;
font-weight: 700;
line-height: normal;
}

.fieldsMarked {
color: #000;
font-family: "Open Sans";
font-size: 16px;
font-style: normal;
font-weight: 400;
Expand Down Expand Up @@ -70,6 +65,16 @@
align-self: flex-start;
}

.sectionTitle {
color: var(--Accent-Blue-1, #102d5f);
/* Desktop/H2 */
font-family: Lora;
font-size: 24px;
font-style: normal;
font-weight: 700;
line-height: normal;
}

.formRow {
width: 100%;
display: flex;
Expand All @@ -78,68 +83,23 @@
align-items: start;
}

.desktopRowTabletColumn {
flex-direction: row;
}

.numChildren {
display: flex;
flex-direction: column;
gap: 20px;
align-items: center;
flex: 1;
width: 100%;
}

.asterisk {
color: var(--Secondary-2, #be2d46);
}

.buttonContainer {
display: flex;
justify-content: space-between;
}

.submitButton {
align-self: end;
}

.submit {
width: 306px;
height: 64px;
background-color: #102d5f;
color: white;
cursor: pointer;
font-family: Lora;
font-size: 24px;
font-style: normal;
font-weight: 700;
line-height: normal;
border: none;
border-radius: 4px;
}
.enabled {
background-color: #102d5f;
}

.disabled {
background-color: grey;
}

.backButton {
align-self: start;
}

.back {
width: 306px;
height: 64px;
background-color: white;
color: #102d5f;
cursor: pointer;
font-family: Lora;
font-size: 24px;
font-style: normal;
font-weight: 700;
line-height: normal;
border: #102d5f;
border-radius: 4px;
}

.sectionHeader {
gap: 4px;
font-size: 16px;
Expand All @@ -153,17 +113,13 @@

.longText {
flex: 1;
width: 100%;
}

.childInputWrapper {
width: 100%;
}

.page {
margin: 0;
box-sizing: border-box;
background-color: var(--color-tse-primary-light);
}
.canvas {
border-radius: 20px;
background-color: #fff;
Expand All @@ -172,6 +128,7 @@
margin-top: 128px;
padding: 64px;
}

.title {
color: var(--Accent-Blue-1, #102d5f);
font-family: "Lora";
Expand All @@ -180,9 +137,7 @@
font-weight: 700;
line-height: normal;
}
.sections {
padding-top: 32px;
}

.section:not(:last-child) {
padding-bottom: 64px;
}
Expand All @@ -204,6 +159,7 @@

.furnitureItemsSectionLabel {
padding-bottom: 16px;
font-size: 16px;
/* Capitalize names of furniture categories */
text-transform: capitalize;
}
Expand All @@ -215,43 +171,141 @@
gap: 16px;
}

.actions {
.bottomRow {
display: flex;
flex-direction: row;
justify-content: space-between;
width: calc(100vw * 5 / 6);
margin: auto;
align-items: baseline;
padding-top: 64px;
align-items: center;
width: 100%;
gap: 64px;
padding-top: 32px;
padding-bottom: 128px;
}

.submit {
.bottomRowMobile {
display: flex;
flex-direction: row;
width: 100%;
gap: 32px;
}

.bottomButton {
width: 306px;
height: 64px;
color: white;
cursor: pointer;
font-family: "Lora";
font-size: 24px;
font-style: normal;
font-weight: 700;
line-height: normal;
border: none;
border-radius: 4px;
}

.submit {
color: white;
border: none;
}

.enabled {
background-color: #102d5f;
}

.disabled {
background-color: grey;
}

.back {
width: 306px;
height: 64px;
background-color: var(--color-tse-primary-light);
color: #102d5f;
cursor: pointer;
font-family: "Lora";
font-size: 24px;
font-style: normal;
font-weight: 700;
line-height: normal;
border-radius: 4px;
border: 1px solid var(--Secondary-1, #102d5f);
background: rgba(255, 255, 255, 0);
}

/* tablet version */
@media screen and (max-width: 850px) {
.main {
padding: 48px;
padding-top: 64px;
}

.title {
font-size: 36px;
}

.description {
font-size: 18px;
}

.fieldsMarked {
font-size: 14px;
}

.formContainer {
padding: 48px 32px;
}

.sectionTitle {
font-size: 28px;
}

.formRow {
gap: 32px;
}

.desktopRowTabletColumn {
flex-direction: column;
}

.bottomRow {
padding-bottom: 64px;
}

.bottomButton {
width: 100%;
}

.furnitureItemsSectionLabel {
font-size: 14px;
}
}

/* mobile version */
@media screen and (max-width: 550px) {
.main {
padding: 24px;
padding-top: 35px;
}

.title {
font-size: 28px;
}

.description {
font-size: 14px;
}

.fieldsMarked {
font-size: 12px;
}

.formContainer {
padding: 32px 16px;
}

.sectionTitle {
font-size: 20px;
}

.formRow {
flex-direction: column;
}

.bottomRow {
gap: 32px;
flex-direction: column;
}

.furnitureItemsSectionLabel {
font-size: 12px;
}
}
Loading

0 comments on commit bc79d71

Please sign in to comment.