File tree Expand file tree Collapse file tree 2 files changed +22
-19
lines changed Expand file tree Collapse file tree 2 files changed +22
-19
lines changed Original file line number Diff line number Diff line change 1
1
import { useState } from 'react' ;
2
2
import { ContactUsFormSubscribe } from '@/components/ContactUsForm/ContactUsForm' ;
3
3
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' ;
6
5
7
6
export default function ContactUs ( ) {
8
7
const [ message , setMessage ] = useState ( [ ] ) ;
9
8
10
9
return (
11
10
< >
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 />
15
14
< 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 >
21
17
{ message ?. map ( ( m , i ) => (
22
18
< span key = { i } >
23
19
{ m }
24
20
< br />
25
21
</ span >
26
22
) ) }
27
- </ div >
28
- </ div >
29
- </ div >
23
+ </ S . ResponseMessage >
24
+ </ S . FormAndDecorations >
25
+ </ S . ContactUsContainer >
30
26
< ContactUsCards />
31
27
</ >
32
28
) ;
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ const FormAndDecorations = styled.div`
46
46
` ;
47
47
48
48
const YellowBracket = styled ( Bracket ) `
49
- // -webkit-transform: scaleX(-1);
50
- // transform: scaleX(-1);
49
+ -webkit-transform: scaleX(-1);
50
+ transform: scaleX(-1);
51
51
52
52
//media query mixins
53
53
${ m . mobile ( css `
@@ -74,15 +74,14 @@ const YellowBracket = styled(Bracket)`
74
74
75
75
const YellowColon = styled . img `
76
76
//media query mixins
77
- ${ m . desktop ( css `
78
- right: -15%;
79
- ` ) }
80
-
81
77
${ m . tablet ( css `
82
78
position: absolute;
83
79
top: -10%;
84
80
right: -5%;
85
81
` ) }
82
+ ${ m . desktop ( css `
83
+ right: -15%;
84
+ ` ) }
86
85
` ;
87
86
88
87
const ResponseMessage = styled . div `
@@ -102,3 +101,11 @@ const ResponseMessage = styled.div`
102
101
max-width: fit-content;
103
102
` ) }
104
103
` ;
104
+
105
+ export default {
106
+ ContactUsContainer,
107
+ FormAndDecorations,
108
+ YellowBracket,
109
+ YellowColon,
110
+ ResponseMessage,
111
+ } ;
You can’t perform that action at this time.
0 commit comments