-
Notifications
You must be signed in to change notification settings - Fork 58
/
ContactPage.jsx
90 lines (87 loc) · 3.63 KB
/
ContactPage.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import React, { useContext } from "react";
import BackBtn from "../components/BackBtn/BackBtn";
import { ThemeContext } from "/src/main"; // Adjusted import path
function ContactPage() {
const { theme } = useContext(ThemeContext); // Access the theme
return (
<>
<div className="py-8 mb-5 flex w-[50vw] justify-start ml-auto mr-auto mt-10">
<div>
<BackBtn Page={"Contact"} />
</div>
</div>
<div>
<form className="bg-white dark:bg-gray-800 contact">
<div className="py-8 lg:py-16 px-4 mx-auto max-w-screen-md">
<h2 className="mb-4 text-4xl font-extrabold text-center text-green-500">
Contact Us
</h2>
<p className="mb-8 lg:mb-16 font-light text-center text-gray-500 dark:text-gray-300 contact-para">
Got a technical issue? Want to send feedback about a beta feature?
Need details about our Business plan? Let us know.
</p>
<div className="space-y-8">
<div>
<label
htmlFor="email"
className={`block mb-2 text-sm font-medium ${
theme === "dark" ? "text-white" : "text-gray-900"
}`}
>
Your email
</label>
<input
type="email"
id="email"
className="shadow-sm bg-gray-50 dark:bg-gray-700 border border-gray-300 dark:border-gray-600 text-gray-900 dark:text-white text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 block w-full p-2.5"
placeholder="[email protected]"
required
/>
</div>
<div>
<label
htmlFor="subject"
className={`block mb-2 text-sm font-medium ${
theme === "dark" ? "text-white" : "text-gray-900"
}`}
>
Subject
</label>
<input
type="text"
id="subject"
className="block p-3 w-full text-sm text-gray-900 dark:text-white bg-gray-50 dark:bg-gray-700 rounded-lg border border-gray-300 dark:border-gray-600 shadow-sm focus:ring-primary-500 focus:border-primary-500"
placeholder="Let us know how we can help you"
required
/>
</div>
<div className="sm:col-span-2">
<label
htmlFor="message"
className={`block mb-2 text-sm font-medium ${
theme === "dark" ? "text-white" : "text-gray-900"
}`}
>
Your message
</label>
<textarea
id="message"
rows="6"
className="block p-2.5 w-full text-sm text-gray-900 dark:text-white bg-gray-50 dark:bg-gray-700 rounded-lg shadow-sm border border-gray-300 dark:border-gray-600 focus:ring-primary-500 focus:border-primary-500"
placeholder="Leave a comment..."
></textarea>
</div>
<button
type="submit"
className="py-3 px-5 hover:scale-105 hover:shadow-lg hover:shadow-green-300 transition-all text-sm font-medium text-center text-white rounded-lg sm:w-fit bg-green-600 focus:ring-4 focus:outline-none focus:ring-primary-300"
>
Send message
</button>
</div>
</div>
</form>
</div>
</>
);
}
export default ContactPage;