Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated contact-us background #53

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added client/src/assets/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/contact-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 53 additions & 36 deletions client/src/components/contact.jsx
Original file line number Diff line number Diff line change
@@ -1,43 +1,60 @@
import React from "react";
import image from '../assets/contact-form.jpg'
import backgroundImage from "../assets/background.jpg";
import contactBackground from "../assets/contact-bg.jpg";

const ContactUs = () => {
return (
<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">
<div className="flex justify-center items-center">
<img src={image} alt="contact-form" className="max-w-full h-auto rounded-2xl" />
</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
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>
);
Expand Down
Loading