[3798b7]: / client / src / components / contact.jsx

Download this file

64 lines (61 with data), 2.6 kB

 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
import React from "react";
import backgroundImage from "../assets/background.jpg";
import contactBackground from "../assets/contact-bg.jpg";
const ContactUs = () => {
return (
<div
className="min-h-screen bg-gradient-to-r from-purple-500 to-pink-500 flex flex-col items-center justify-center sm:flex-row sm:justify-center pb-3 md:pb-0"
style={{
backgroundImage: `url(${backgroundImage})`,
backgroundSize: "cover",
backgroundPosition: "center",
}}
>
<div
className="w-[90%] max-w-[1000px] h-auto my-12 mx-auto grid grid-cols-1 md:grid-cols-2 p-8 rounded-2xl shadow-lg bg-gradient-to-r from-gray-200 to-blue-200 overflow-hidden"
style={{
backgroundImage: `url(${contactBackground})`,
backgroundSize: "cover",
backgroundPosition: "center",
}}
>
<div className="flex justify-center items-center"></div>
<div className="flex flex-col justify-center p-5">
<h2 className="mb-5 text-gray-800 font-sans font-extrabold text-2xl">
Get in touch!
</h2>
<form className="flex flex-col gap-4">
<input
type="text"
id="name"
placeholder="Name"
className="w-full p-4 rounded-lg border-2 border-gray-300 text-lg bg-white transition-all duration-300 outline-none focus:border-indigo-400 focus:shadow-md font-sans font-extrabold"
required
/>
<input
type="email"
id="email"
placeholder="Email"
className="w-full p-4 rounded-lg border-2 border-gray-300 text-lg bg-white transition-all duration-300 outline-none focus:border-indigo-400 focus:shadow-md font-sans font-extrabold"
required
/>
<textarea
rows="8"
id="message"
placeholder="Message"
className="w-full p-4 rounded-lg border-2 border-gray-300 text-lg bg-white transition-all duration-300 resize-none overflow-auto outline-none focus:border-indigo-400 focus:shadow-md font-sans font-extrabold"
required
/>
<button
type="submit"
className="mt-5 p-4 text-lg rounded-lg border-none cursor-pointer bg-indigo-500 text-white transition-colors duration-300 hover:bg-indigo-700 font-sans font-extrabold"
>
Submit
</button>
</form>
</div>
</div>
</div>
);
};
export default ContactUs;