Skip to content

Commit 7678043

Browse files
committed
Fix form position to maintain structure on bigger display and update CHANGELOG
1 parent 9c942be commit 7678043

5 files changed

Lines changed: 36 additions & 27 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
157157
- Updated husky script to avoid warning
158158
- Resolved incorrect meta tag rendering for nested routes
159159
- Prevent horizontal page scroll caused by overflowing long titles
160-
- Fix hero images' max-height to align with WDP mockup
160+
- Fixed hero images' max-height to align with WDP mockup
161+
- Fixed contact us form position to maintain structure on bigger displays
161162

162163
### Changed
163164

components/ContactUs/ContactUsForm/ContactUsForm.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
max-width: 100%;
1111
width: 26rem;
1212
padding: 2rem 0;
13+
margin-right: 6.5625rem;
1314
}
1415
}
1516

components/decorations/Bracket/Bracket.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737

3838
@include desktop-breakpoint-plus {
39-
top: 45%;
39+
top: 38%;
4040
right: 140%;
4141
}
4242
}

pages/contact.js

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,23 @@ export default function ContactUs() {
1010
return (
1111
<>
1212
<div className={styles.contactUsContainer}>
13-
<div className={styles.formAndDecorations}>
14-
<Bracket className={bracketStyles.yellowBracket} />
15-
<ContactUsFormSubscribe setMsg={setMessage} />
16-
<img
17-
className={styles.yellowColon}
18-
src='/images/svg/yellow-colon.svg'
19-
alt=''
20-
/>
21-
<div className={styles.responseMessage}>
22-
{message?.map((m, i) => (
23-
<span key={i}>
24-
{m}
25-
<br />
26-
</span>
27-
))}
13+
<div className={styles.formWrapper}>
14+
<div className={styles.formAndDecorations}>
15+
<Bracket className={bracketStyles.yellowBracket} />
16+
<ContactUsFormSubscribe setMsg={setMessage} />
17+
<img
18+
className={styles.yellowColon}
19+
src='/images/svg/yellow-colon.svg'
20+
alt=''
21+
/>
22+
<div className={styles.responseMessage}>
23+
{message?.map((m, i) => (
24+
<span key={i}>
25+
{m}
26+
<br />
27+
</span>
28+
))}
29+
</div>
2830
</div>
2931
</div>
3032
</div>

styles/pages/contact.module.scss

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,25 @@
1717
}
1818
}
1919

20+
.formWrapper {
21+
display: flex;
22+
max-width: 98rem;
23+
margin-inline: auto;
24+
}
25+
2026
.formAndDecorations {
27+
position: relative;
28+
width: 100%;
29+
margin: auto;
30+
2131
@include tablet {
22-
display: flex;
23-
flex-wrap: wrap;
24-
justify-content: center;
25-
position: absolute;
26-
bottom: 48%;
27-
right: 4%;
28-
z-index: 11;
32+
width: auto;
33+
margin-top: -19rem;
34+
margin-right: 2rem;
2935
}
3036

3137
@include desktop {
32-
bottom: 52%;
33-
right: 8%;
38+
margin: -25rem 5rem 0 auto;
3439
}
3540
}
3641

@@ -46,7 +51,7 @@
4651
}
4752

4853
@include desktop {
49-
right: -15%;
54+
right: -1rem;
5055
}
5156
}
5257

0 commit comments

Comments
 (0)