Skip to content

Commit f539efc

Browse files
committed
PROD-2395 #comment fix legacy pages for mobile designs #time 1h
1 parent ededd85 commit f539efc

File tree

15 files changed

+125
-27
lines changed

15 files changed

+125
-27
lines changed

src/components/Banners/WebsiteDesignBannerLegacy/styles.module.scss

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
min-width: 0;
2020
max-width: 100%;
2121
overflow: hidden;
22-
grid-template-columns: 1fr 200px;
22+
flex-direction: column;
23+
grid-template-columns: auto;
24+
margin-top: 0 !important;
25+
border-radius: 0 !important;
2326
}
2427

2528
.heroBackgroundContainer {
@@ -39,7 +42,12 @@
3942
border-radius: 0 8px 8px 0;
4043

4144
@include mobile {
42-
width: 200px;
45+
width: 100%;
46+
height: 156px;
47+
order: 0;
48+
background: url("../../../assets/images/website-design-banner-mobile.png");
49+
background-size: cover;
50+
background-position: bottom;
4351
}
4452
}
4553

@@ -117,13 +125,23 @@
117125

118126
.heroHeaderTitle {
119127
display: flex;
128+
129+
@include mobile {
130+
font-size: 28px;
131+
line-height: 32px;
132+
}
120133
}
121134

122135
.heroHeaderSubtitle {
123136
font-size: 17px;
124137
max-width: 713px;
125138
line-height: 24px;
126139
font-weight: 500;
140+
141+
@include mobile {
142+
font-size: 14px;
143+
line-height: 20px;
144+
}
127145
}
128146
}
129147
}

src/components/Progress/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const Progress = ({ level, styleName, setStep, ...props }) => {
4141
<span className={styles["level-num"]}>STEP {trueLevel.showIndex} </span>
4242
<span className={styles["muted"]}>/ {levels.length}</span>
4343
</div>
44-
<div>{trueLevel.label}</div>
44+
<div className={styles["label"]}>{trueLevel.label}</div>
4545
</div>
4646
<ProgressDonutChart
4747
className={styles["progress-donut-chart"]}

src/components/Progress/styles.module.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
top: 20px;
77
display: flex;
88
align-items: center;
9+
10+
@include mobile {
11+
position: relative;
12+
right: auto;
13+
top: auto;
14+
}
915
}
1016

1117
.level-container {
@@ -14,6 +20,11 @@
1420
flex-direction: column;
1521
color: $black;
1622

23+
@include mobile {
24+
flex: 1;
25+
align-items: flex-start;
26+
}
27+
1728
.level {
1829
margin-bottom: 8px;
1930

@@ -25,6 +36,15 @@
2536
color: #ddd;
2637
}
2738
}
39+
40+
.label {
41+
@include mobile {
42+
@include font-barlow;
43+
line-height: 20px;
44+
text-transform: uppercase;
45+
font-weight: 600;
46+
}
47+
}
2848
}
2949

3050
.progress-donut-chart {}

src/components/ProgressDonutChart/index.jsx

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,25 @@ const ProgressDonutChart = ({ progress, styleName, ...props }) => {
4242
return (
4343
<div className={cn(styles["progress-donut-chart"], !!styleName ? styles[styleName] : undefined)} {...props}>
4444
<div id="chart">
45-
<Chart
46-
options={chartOptions}
47-
series={[progress]}
48-
type="radialBar"
49-
height={150}
50-
width={120}
51-
/>
45+
<div className={styles["mobile-chart"]}>
46+
<Chart
47+
options={chartOptions}
48+
series={[progress]}
49+
type="radialBar"
50+
height={100}
51+
width={80}
52+
/>
53+
</div>
54+
55+
<div className={styles["desktop-chart"]}>
56+
<Chart
57+
options={chartOptions}
58+
series={[progress]}
59+
type="radialBar"
60+
height={150}
61+
width={120}
62+
/>
63+
</div>
5264
</div>
5365
</div>
5466
);
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
@import "../../styles/include";
22

3-
.progress-donut-chart {}
3+
.progress-donut-chart {}
4+
5+
.desktop-chart {
6+
@include mobile {
7+
display: none;
8+
}
9+
}
10+
11+
.mobile-chart {
12+
@include desktop {
13+
display: none;
14+
}
15+
}

src/routes/BasicInfoLegacy/index.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ const BasicInfoLegacy = ({
174174
<Breadcrumb items={breadcrumbs} />
175175
<WebsiteDesignBannerLegacy />
176176
<PageContent styleName={styles["container"]}>
177-
<PageH2>BASIC INFO</PageH2>
177+
<div className={styles["title-wrapper"]}>
178+
<PageH2>BASIC INFO</PageH2>
179+
</div>
180+
<Progress level={2} setStep={setProgressItem} />
178181
<PageDivider />
179182

180183
<BasicInfoFormLegacy
@@ -222,8 +225,6 @@ const BasicInfoLegacy = ({
222225
</div>
223226
</div>
224227
</PageFoot>
225-
226-
<Progress level={2} setStep={setProgressItem} />
227228
</PageContent>
228229
</Page>
229230
</>

src/routes/BasicInfoLegacy/styles.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,10 @@
1919

2020
.backButtonWrapper {
2121
@include backButtonWrapper;
22+
}
23+
24+
.title-wrapper {
25+
@include mobile {
26+
display: none;
27+
}
2228
}

src/routes/BrandingLegacy/index.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ const BrandingLegacy = ({ saveBranding, setProgressItem, isLoggedIn }) => {
135135
<Breadcrumb items={breadcrumbs} />
136136
<WebsiteDesignBannerLegacy />
137137
<PageContent>
138-
<PageH2>BRANDING</PageH2>
138+
<div className={styles["title-wrapper"]}>
139+
<PageH2>BRANDING</PageH2>
140+
</div>
141+
<Progress level={5} setStep={setProgressItem} />
139142
<PageDivider />
140143

141144
<BrandingForm
@@ -170,8 +173,6 @@ const BrandingLegacy = ({ saveBranding, setProgressItem, isLoggedIn }) => {
170173
</div>
171174
</div>
172175
</PageFoot>
173-
174-
<Progress level={5} setStep={setProgressItem} />
175176
</PageContent>
176177
</Page>
177178
</>

src/routes/BrandingLegacy/styles.module.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@
1414

1515
.backButtonWrapper {
1616
@include backButtonWrapper;
17-
}
17+
}
18+
19+
.title-wrapper {
20+
@include mobile {
21+
display: none;
22+
}
23+
}

src/routes/PageDetailsLegacy/index.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ const PageDetailsLegacy = ({ savePageDetails, setProgressItem, isLoggedIn }) =>
110110
<Breadcrumb items={breadcrumbs} />
111111
<WebsiteDesignBannerLegacy />
112112
<PageContent>
113-
<PageH2>PAGE DETAILS</PageH2>
113+
<div className={styles["title-wrapper"]}>
114+
<PageH2>PAGE DETAILS</PageH2>
115+
</div>
116+
<Progress level={4} setStep={setProgressItem} />
114117
<PageDivider />
115118

116119
<PageDetailsForm
@@ -146,8 +149,6 @@ const PageDetailsLegacy = ({ savePageDetails, setProgressItem, isLoggedIn }) =>
146149
</div>
147150
</div>
148151
</PageFoot>
149-
150-
<Progress level={4} setStep={setProgressItem} />
151152
</PageContent>
152153
</Page>
153154
</>

0 commit comments

Comments
 (0)