Skip to content

Commit 95f4682

Browse files
committed
change Contact page to styled components
1 parent e79bdd0 commit 95f4682

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

pages/contact.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
import { useState } from 'react';
22
import { ContactUsFormSubscribe } from '@/components/ContactUsForm/ContactUsForm';
33
import ContactUsCards from '@/components/ContactUsCards';
4-
import contactUsFormStyles from '@/styles/Contact.module.scss';
5-
import Bracket from '@/components/decorations/Bracket';
4+
import S from '@/styles/pages/contactStyles';
65

76
export default function ContactUs() {
87
const [message, setMessage] = useState([]);
98

109
return (
1110
<>
12-
<div className={contactUsFormStyles.contact}>
13-
<div className={contactUsFormStyles.contact__formAndDecorations}>
14-
<Bracket className={contactUsFormStyles.contact__yellowBracket} />
11+
<S.ContactUsContainer>
12+
<S.FormAndDecorations>
13+
<S.YellowBracket />
1514
<ContactUsFormSubscribe setMsg={setMessage} />
16-
<img
17-
src='/images/svg/yellow-colon.svg'
18-
className={contactUsFormStyles.contact__yellowColon}
19-
/>
20-
<div className={contactUsFormStyles.contact__response_message}>
15+
<S.YellowColon src='/images/svg/yellow-colon.svg' />
16+
<S.ResponseMessage>
2117
{message?.map((m, i) => (
2218
<span key={i}>
2319
{m}
2420
<br />
2521
</span>
2622
))}
27-
</div>
28-
</div>
29-
</div>
23+
</S.ResponseMessage>
24+
</S.FormAndDecorations>
25+
</S.ContactUsContainer>
3026
<ContactUsCards />
3127
</>
3228
);

styles/pages/contactStyles.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const FormAndDecorations = styled.div`
4646
`;
4747

4848
const YellowBracket = styled(Bracket)`
49-
// -webkit-transform: scaleX(-1);
50-
// transform: scaleX(-1);
49+
-webkit-transform: scaleX(-1);
50+
transform: scaleX(-1);
5151
5252
//media query mixins
5353
${m.mobile(css`
@@ -74,15 +74,14 @@ const YellowBracket = styled(Bracket)`
7474

7575
const YellowColon = styled.img`
7676
//media query mixins
77-
${m.desktop(css`
78-
right: -15%;
79-
`)}
80-
8177
${m.tablet(css`
8278
position: absolute;
8379
top: -10%;
8480
right: -5%;
8581
`)}
82+
${m.desktop(css`
83+
right: -15%;
84+
`)}
8685
`;
8786

8887
const ResponseMessage = styled.div`
@@ -102,3 +101,11 @@ const ResponseMessage = styled.div`
102101
max-width: fit-content;
103102
`)}
104103
`;
104+
105+
export default {
106+
ContactUsContainer,
107+
FormAndDecorations,
108+
YellowBracket,
109+
YellowColon,
110+
ResponseMessage,
111+
};

0 commit comments

Comments
 (0)