File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { useState } from 'react' ;
22import ContactUsFormSubscribe from '@/components/ContactUs' ;
33import ContactUsCards from '@/components/ContactUs/ContactUsCards' ;
4- import S from '@/styles/pages/contactStyles ' ;
4+ import styles from '@/styles/pages/contact.module.scss ' ;
55import Bracket from '@/components/decorations/Bracket' ;
66import bracketStyles from '@/components/decorations/Bracket/Bracket.module.scss' ;
77export default function ContactUs ( ) {
88 const [ message , setMessage ] = useState ( [ ] ) ;
99
1010 return (
1111 < >
12- < S . ContactUsContainer >
13- < S . FormAndDecorations >
12+ < div className = { styles . contactUsContainer } >
13+ < div className = { styles . formAndDecorations } >
1414 < Bracket className = { bracketStyles . yellowBracket } />
1515 < ContactUsFormSubscribe setMsg = { setMessage } />
16- < S . YellowColon src = '/images/svg/yellow-colon.svg' />
17- < S . ResponseMessage >
16+ < img
17+ className = { styles . yellowColon }
18+ src = '/images/svg/yellow-colon.svg'
19+ alt = ''
20+ />
21+ < div className = { styles . responseMessage } >
1822 { message ?. map ( ( m , i ) => (
1923 < span key = { i } >
2024 { m }
2125 < br />
2226 </ span >
2327 ) ) }
24- </ S . ResponseMessage >
25- </ S . FormAndDecorations >
26- </ S . ContactUsContainer >
28+ </ div >
29+ </ div >
30+ </ div >
2731 < ContactUsCards />
2832 </ >
2933 ) ;
Original file line number Diff line number Diff line change 1+ @use ' @/styles/index' as * ;
2+
3+ .contactUsContainer {
4+ background-color : var (--color-light-bg );
5+ height : 42rem ;
6+ position : relative ;
7+ margin-bottom : -10rem ;
8+
9+ @include mobile {
10+ height : unset ;
11+ padding-bottom : 2rem ;
12+ margin-bottom : 3rem ;
13+ }
14+
15+ @include desktop {
16+ height : 32rem ;
17+ }
18+ }
19+
20+ .formAndDecorations {
21+ @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 ;
29+ }
30+
31+ @include desktop {
32+ bottom : 52% ;
33+ right : 8% ;
34+ }
35+ }
36+
37+ .yellowColon {
38+ @include desktop-breakpoint-minus {
39+ display : none ;
40+ }
41+
42+ @include tablet {
43+ position : absolute ;
44+ top : -10% ;
45+ right : -5% ;
46+ }
47+
48+ @include desktop {
49+ right : -15% ;
50+ }
51+ }
52+
53+ .responseMessage {
54+ position : unset ;
55+ bottom : -5% ;
56+ padding : 0 2rem ;
57+
58+ @include tablet {
59+ position : absolute ;
60+ margin-top : 1rem ;
61+ }
62+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments