Skip to content

Commit 1a7a67b

Browse files
committed
Added Contact Us Page
Signed-off-by: Hemashree M S <hemashree21.msh@gmail.com>
1 parent e60b7da commit 1a7a67b

File tree

4 files changed

+114
-1
lines changed

4 files changed

+114
-1
lines changed

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ const config = {
279279
},
280280
{
281281
label: "Contact",
282-
to: "#",
282+
to: "/contact/",
283283
},
284284
{
285285
label: "Careers",

src/pages/contact/assets/contact.png

64.3 KB
Loading

src/pages/contact/index.tsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import React from 'react';
2+
import Layout from "@theme/Layout";
3+
import styles from './styles.module.css';
4+
5+
const Index = () => {
6+
return (
7+
<Layout>
8+
<h1 style={{marginLeft: '2rem', marginTop: '1rem'}}>Contact Us</h1>
9+
<div className={styles.division}>
10+
<form className={styles.myform}>
11+
<label className={styles.mylabel}>Name</label>
12+
<input placeholder='Enter your name' className={styles.myinput} type="text" name="user_name" />
13+
<label className={styles.mylabel}>Email</label>
14+
<input placeholder='Enter your email' className={styles.myinput} type="email" name="user_email" />
15+
<label className={styles.mylabel}>Message</label>
16+
<textarea placeholder='Your message...' className={styles.mytextarea} name="message" />
17+
<button className={styles.inputsubmit} type="submit">Send</button>
18+
</form>
19+
<div className={styles.image}><img src="https://cdn-icons-png.flaticon.com/512/5075/5075578.png" alt="" style={{height: '25rem'}}/></div>
20+
</div>
21+
</Layout>
22+
)
23+
}
24+
25+
export default Index;

src/pages/contact/styles.module.css

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
.myform {
2+
display: flex;
3+
align-items: flex-start;
4+
flex-direction: column;
5+
width: 50%;
6+
margin-left: 2rem;
7+
font-size: 16px;
8+
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;
17+
18+
&:focus {
19+
border: 2px solid rgba(0, 206, 158, 1);
20+
}
21+
}
22+
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+
}
38+
39+
.mylabel {
40+
margin-top: 1rem;
41+
}
42+
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;
55+
56+
&:hover {
57+
background-color: rgb(229, 96, 14);
58+
transition: transform 0.3s ease-in-out;
59+
transform: scale(1.07);;
60+
}
61+
}
62+
}
63+
64+
.division {
65+
display: flex;
66+
gap: 2rem;
67+
}
68+
69+
.image {
70+
display: block;
71+
margin: auto;
72+
}
73+
74+
@media (max-width: 760px) {
75+
.division {
76+
flex-direction: column;
77+
width: 90%;
78+
height: auto;
79+
}
80+
81+
.myform, .myinput, .mytextarea {
82+
width: 90%;
83+
}
84+
85+
.image {
86+
display: none;
87+
}
88+
}

0 commit comments

Comments
 (0)