Skip to content

Commit 6d507b2

Browse files
committed
Updated Contact Page
Signed-off-by: Hemashree M S <hemashree21.msh@gmail.com>
1 parent 821e4bb commit 6d507b2

File tree

2 files changed

+71
-70
lines changed

2 files changed

+71
-70
lines changed

src/pages/contact/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import styles from './styles.module.css';
66
* Contact Us Page
77
*/
88

9-
const Index = () => {
9+
const Contact = () => {
1010
return (
1111
<Layout>
1212
<h1 style={{marginLeft: '2rem', marginTop: '1rem'}}>Contact Us</h1>
@@ -26,4 +26,4 @@ const Index = () => {
2626
)
2727
}
2828

29-
export default Index;
29+
export default Contact;

src/pages/contact/styles.module.css

Lines changed: 69 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,89 @@
11
.myform {
2-
display: flex;
3-
align-items: flex-start;
4-
flex-direction: column;
5-
width: 50%;
6-
margin-left: 2rem;
7-
font-size: 16px;
2+
display: grid;
3+
grid-template-columns: 1fr;
4+
grid-gap: 1rem;
5+
width: 90%;
6+
margin-left: 2rem;
7+
font-size: 16px;
8+
}
89

9-
.myinput {
10-
width: 100%;
11-
height: 35px;
12-
padding: 7px;
13-
outline: none;
14-
border-radius: 5px;
15-
border: 1px solid rgb(220, 220, 220);
16-
margin-bottom: 0.5rem;
10+
.myform .myinput {
11+
width: 100%;
12+
height: 35px;
13+
padding: 7px;
14+
outline: none;
15+
border-radius: 5px;
16+
border: 1px solid rgb(220, 220, 220);
17+
margin-bottom: 0.5rem;
18+
}
1719

18-
&:focus {
19-
border: 2px solid rgba(0, 206, 158, 1);
20-
}
21-
}
20+
.myform .myinput:focus {
21+
border: 2px solid rgba(0, 206, 158, 1);
22+
}
2223

23-
.mytextarea {
24-
max-width: 100%;
25-
min-width: 100%;
26-
width: 100%;
27-
max-height: 100px;
28-
min-height: 100px;
29-
padding: 7px;
30-
outline: none;
31-
border-radius: 5px;
32-
border: 1px solid rgb(220, 220, 220);
33-
34-
&:focus {
35-
border: 2px solid rgba(0, 206, 158, 1);
36-
}
37-
}
24+
.myform .mytextarea {
25+
max-width: 100%;
26+
min-width: 100%;
27+
width: 100%;
28+
max-height: 100px;
29+
min-height: 100px;
30+
padding: 7px;
31+
outline: none;
32+
border-radius: 5px;
33+
border: 1px solid rgb(220, 220, 220);
34+
}
3835

39-
.mylabel {
40-
margin-top: 1rem;
41-
}
36+
.myform .mytextarea:focus {
37+
border: 2px solid rgba(0, 206, 158, 1);
38+
}
4239

43-
.inputsubmit {
44-
margin-top: 2rem;
45-
padding: 0.2rem;
46-
width: 10rem;
47-
height: 3rem;
48-
font-size: larger;
49-
border-radius: 10px;
50-
cursor: pointer;
51-
background: rgb(249, 105, 14);
52-
color: white;
53-
border: none;
54-
margin-bottom: 2rem;
40+
.myform .mylabel {
41+
margin-top: 1rem;
42+
}
5543

56-
&:hover {
57-
background-color: rgb(229, 96, 14);
58-
transition: transform 0.3s ease-in-out;
59-
transform: scale(1.07);;
60-
}
61-
}
44+
.myform .inputsubmit {
45+
margin-top: 2rem;
46+
padding: 0.2rem;
47+
width: 10rem;
48+
height: 3rem;
49+
font-size: larger;
50+
border-radius: 10px;
51+
cursor: pointer;
52+
background: rgb(249, 105, 14);
53+
color: white;
54+
border: none;
55+
margin-bottom: 2rem;
56+
}
57+
58+
.myform .inputsubmit:hover {
59+
background-color: rgb(229, 96, 14);
60+
transition: transform 0.3s ease-in-out;
61+
transform: scale(1.07);
6262
}
6363

6464
.division {
65-
display: flex;
66-
gap: 2rem;
65+
display: grid;
66+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
67+
gap: 2rem;
6768
}
6869

6970
.image {
70-
display: block;
71-
margin: auto;
71+
display: block;
72+
margin: auto;
7273
}
7374

7475
@media (max-width: 760px) {
75-
.division {
76-
flex-direction: column;
76+
.division {
77+
grid-template-columns: 1fr;
7778
width: 90%;
7879
height: auto;
79-
}
80+
}
8081

81-
.myform, .myinput, .mytextarea {
82-
width: 90%;
83-
}
82+
.myform, .myform .myinput, .myform .mytextarea {
83+
width: 90%;
84+
}
8485

85-
.image {
86-
display: none;
87-
}
88-
}
86+
.image {
87+
display: none;
88+
}
89+
}

0 commit comments

Comments
 (0)