Skip to content

Commit 6518ac4

Browse files
authored
Merge pull request #195 from Hemashree21/main
Added Contact Us Page
2 parents e60b7da + 6d507b2 commit 6518ac4

File tree

4 files changed

+119
-1
lines changed

4 files changed

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

src/pages/contact/styles.module.css

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
.myform {
2+
display: grid;
3+
grid-template-columns: 1fr;
4+
grid-gap: 1rem;
5+
width: 90%;
6+
margin-left: 2rem;
7+
font-size: 16px;
8+
}
9+
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+
}
19+
20+
.myform .myinput:focus {
21+
border: 2px solid rgba(0, 206, 158, 1);
22+
}
23+
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+
}
35+
36+
.myform .mytextarea:focus {
37+
border: 2px solid rgba(0, 206, 158, 1);
38+
}
39+
40+
.myform .mylabel {
41+
margin-top: 1rem;
42+
}
43+
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);
62+
}
63+
64+
.division {
65+
display: grid;
66+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
67+
gap: 2rem;
68+
}
69+
70+
.image {
71+
display: block;
72+
margin: auto;
73+
}
74+
75+
@media (max-width: 760px) {
76+
.division {
77+
grid-template-columns: 1fr;
78+
width: 90%;
79+
height: auto;
80+
}
81+
82+
.myform, .myform .myinput, .myform .mytextarea {
83+
width: 90%;
84+
}
85+
86+
.image {
87+
display: none;
88+
}
89+
}

0 commit comments

Comments
 (0)