|
1 | 1 | import React from "react";
|
| 2 | +import { Header } from "../../components"; |
| 3 | +import { CiPhone } from "react-icons/ci"; |
| 4 | +import { AiOutlineMail, AiOutlineTwitter } from "react-icons/ai"; |
2 | 5 |
|
3 | 6 | const Contact = () => {
|
4 |
| - return <div>Contact</div>; |
| 7 | + return ( |
| 8 | + <> |
| 9 | + <Header text="Contact Us" /> |
| 10 | + <main className="w-full mx-auto px-2 md:w-9/12 md:px-6 mt-6 flex flex-col md:flex-row justify-between gap-10"> |
| 11 | + <section className="w-full md:w-[30rem] bg-primary-content rounded-md p-6 min-h-max"> |
| 12 | + {/* Card */} |
| 13 | + <div className="mb-4"> |
| 14 | + <h1 className="text-3xl">Contact Information</h1> |
| 15 | + <p className="text-lg">Fill the form or contact us via other channels</p> |
| 16 | + </div> |
| 17 | + <div> |
| 18 | + <div className="flex items-center gap-2 my-2 text-xl"> |
| 19 | + <AiOutlineMail /> |
| 20 | + <a href="mailto: Support@eshop.com?subject=Feedback&body=message"> |
| 21 | + Support@eshop.com |
| 22 | + </a> |
| 23 | + </div> |
| 24 | + <div className="flex items-center gap-2 my-2 text-xl"> |
| 25 | + <CiPhone /> |
| 26 | + <a href="tel:+91-123-12345">91-123-12345</a> |
| 27 | + </div> |
| 28 | + <div className="flex items-center gap-2 text-xl my-2"> |
| 29 | + <AiOutlineTwitter /> |
| 30 | + <a |
| 31 | + href="https://twitter.com/kartik_im" |
| 32 | + rel="noreferrer" |
| 33 | + target="_blank" |
| 34 | + > |
| 35 | + @kartik_im |
| 36 | + </a> |
| 37 | + </div> |
| 38 | + </div> |
| 39 | + </section> |
| 40 | + <section className="w-full md:w-2/3 rounded-md shadow-lg border-2 p-6"> |
| 41 | + {/* Form */} |
| 42 | + <h1 className="text-3xl">Contact Us</h1> |
| 43 | + <form className="form-control"> |
| 44 | + <div className="py-2"> |
| 45 | + <label className="label-text font-semibold mb-2 block text-lg"> |
| 46 | + Name : |
| 47 | + </label> |
| 48 | + <input |
| 49 | + className="input input-bordered max-w-lg w-full border-2" |
| 50 | + type="text" |
| 51 | + placeholder="Full Name" |
| 52 | + required |
| 53 | + // name="name" |
| 54 | + // value={product.name} |
| 55 | + // onChange={handleInputChange} |
| 56 | + /> |
| 57 | + </div> |
| 58 | + <div className="py-2"> |
| 59 | + <label className="label-text font-semibold mb-2 block text-lg"> |
| 60 | + Email : |
| 61 | + </label> |
| 62 | + <input |
| 63 | + className="input input-bordered max-w-lg w-full border-2" |
| 64 | + type="email" |
| 65 | + placeholder="Active Email" |
| 66 | + required |
| 67 | + // name="name" |
| 68 | + // value={product.name} |
| 69 | + // onChange={handleInputChange} |
| 70 | + /> |
| 71 | + </div> |
| 72 | + <div className="py-2"> |
| 73 | + <label className="label-text font-semibold mb-2 block text-lg"> |
| 74 | + Subject : |
| 75 | + </label> |
| 76 | + <input |
| 77 | + className="input input-bordered max-w-lg w-full border-2" |
| 78 | + type="text" |
| 79 | + placeholder="Subject" |
| 80 | + required |
| 81 | + // name="name" |
| 82 | + // value={product.name} |
| 83 | + // onChange={handleInputChange} |
| 84 | + /> |
| 85 | + </div> |
| 86 | + <div className="py-2"> |
| 87 | + <label className="label-text font-semibold mb-2 block text-lg"> |
| 88 | + Message : |
| 89 | + </label> |
| 90 | + <textarea |
| 91 | + className="textarea textarea-bordered" |
| 92 | + cols={50} |
| 93 | + rows={7} |
| 94 | + ></textarea> |
| 95 | + </div> |
| 96 | + <button className="btn max-w-xs w-full">Send Message</button> |
| 97 | + </form> |
| 98 | + </section> |
| 99 | + </main> |
| 100 | + </> |
| 101 | + ); |
5 | 102 | };
|
6 | 103 |
|
7 | 104 | export default Contact;
|
0 commit comments