Skip to content

Commit

Permalink
Merge pull request Anjaliavv51#94 from pabitra-kumar/main
Browse files Browse the repository at this point in the history
fixes Contact section issue Anjaliavv51#92
  • Loading branch information
gauravsingh1281 authored Oct 27, 2023
2 parents 0c02758 + dc82108 commit c929a9f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 73 deletions.
57 changes: 8 additions & 49 deletions src/components/Contact-section/Contact.jsx
Original file line number Diff line number Diff line change
@@ -1,66 +1,25 @@
import ContactForm from "./ContactForm";
import GoogleMap from './GoogleMap';
import { ContactText } from "./ContactText";
import "./Contact-section.css";

const Contact = () => {
return (
<>
<div id="ContactUs"></div>
<header className="flex justify-center align-middle my-20 mt-0">
<section className="flex flex-col w-full px-[5%] gap-10 justify-center">
<header id="ContactUs" className="flex justify-center align-middle mt-20">
<h1 className="text-5xl font-bold tracking-wider text-text-black font-monsterrat">
Contact Us
</h1>
</header>
<main>
<div className={"px-5 lg:px-20 text-base lg:text-xl font-medium tracking-wider leading-10"}>
<div className="mb-10">
Hey there ! We love to hear from our Rentalog users ! Whether
you&apos;re looking for answers to your burning questions, or simply
want to chat about the app, we&apos;re all ears. We believe that
staying connected with our users is key to delivering an exceptional
experience. That&apos;s why we offer a variety of ways for you to
reach out and get in touch with us. Here&apos;s how : <br />
</div>
<div className="mb-10">
Email : Send us an email at{" "}
<span className=" text-primaryGreen font-bold underline">
<a href="mailto:[email protected]">[email protected]</a>
</span>
, and we&apos;ll get back to you as soon as we can. Our support team
is always happy to help. <br />
</div>
<div className="mb-10">
Phone : Prefer to chat over the phone? No problem! Give us a call at{" "}
<span className=" text-primaryGreen font-bold underline">
<a href="tel:+916201577047">+916201577047</a>
</span>
, and we&apos;ll be more than happy to assist you. <br />
</div>
<div className="mb-10">
Address : If you&apos;re in the area, we&apos;d love to see you !
You can find us at{" "}
<b>Shaktinagar, Sonebhadra, Uttar Pradesh, 231222.</b> Swing by and
say hello !<br />
</div>
<div className="mb-10">
We&apos;re always looking for ways to improve and enhance your
experience with Rentalog, so we welcome your feedback and
suggestions. Don&apos;t be shy - drop us a line, and let us know
what&apos;s on your mind. <br />
</div>
<div>
Thanks for choosing Rentalog ! <br />
Best regards,
<br />
The Rentalog Team
</div>
</div>
<main className=" flex flex-wrap lg:gap-[5%] gap-[20px] justify-center items-center">
<ContactText />
<ContactForm />
</main>

<ContactForm />

<GoogleMap />

</>
</section>
);
};

Expand Down
27 changes: 3 additions & 24 deletions src/components/Contact-section/ContactForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,8 @@ import Twitter from "../../assets/Social-Icons/Twitter.png";
const ContactForm = () => {
return (
<>
<section className="flex flex-col md:flex-row gap-y-10 my-20">
{/* left hand side of the form */}
<article className="flex-1 text-center md:text-left md:ml-24">
<h2 className="text-3xl lg:text-5xl font-bold tracking-wider mb-10 font-monsterrat text-textBlack">
Connect with <span className="text-customRed">Us</span>
</h2>
<div
className="flex gap-x-12 justify-center md:justify-start"
style={{ height: "min-content", alignItems: "baseline" }}
>
<a href="https://twitter.com/gauravsingh1281">
<img src={Twitter} alt="Twitter-logo" className="h-14" />
</a>
<a href="https://github.com/gauravsingh1281">
<img src={Github} alt="Github-logo" className="h-14" />
</a>
<a href="https://www.instagram.com/gauravsingh1281">
<img src={Insta} alt="Insta-logo" className="h-14" />
</a>
</div>
</article>
{/* Right hand side of the form */}
<article className="flex flex-1 justify-center p-5 md:p-0 md:mr-24">
<section className="lg:w-[45%] w-full flex justify-center items-center">
<div className="flex flex-1 justify-center p-5 md:p-0 md:mr-24">
<form className="gap-x-5 w-full">
<div className="flex flex-col md:flex-row mb-6 justify-between">
<input
Expand Down Expand Up @@ -60,7 +39,7 @@ const ContactForm = () => {
</div>
</div>
</form>
</article>
</div>
</section>
</>
);
Expand Down
41 changes: 41 additions & 0 deletions src/components/Contact-section/ContactText.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import React from 'react'
import Github from "../../assets/Social-Icons/Github.png";
import Insta from "../../assets/Social-Icons/instagram.png";
import Twitter from "../../assets/Social-Icons/Twitter.png";

export const ContactText = () => {
return (
<section className='flex flex-col gap-[20px] justify-center lg:w-[45%] w-full'>
<div className="">
Hey Rentalog Users, <br />
We are always looking forward to hearing from you.
Please feel free to reach out to us for any queries, suggestions, or
feedback. <br />
We would love to hear from you. <br />
<br />
Contact us: <br />
Email: <a href="mailto:[email protected]" className='font-bold text-primaryGreen underline'> [email protected] </a> <br />
Phone: <a href="tel:+916201577047" className='font-bold text-primaryGreen underline'> +91 62015 77047 </a> <br />
Address: Shaktinagar, Sonebhadra, UP, 231222 <br />
<br />
We welcome your input to improve your Rentalog experience. <br />
Thank you for choosing Rentalog! <br />
Best regards, <br />
The Rentalog Team
</div>
<div
className="flex gap-x-12 lg:justify-center justify-start"
>
<a href="https://twitter.com/gauravsingh1281">
<img src={Twitter} alt="Twitter-logo" className="h-8" />
</a>
<a href="https://github.com/gauravsingh1281">
<img src={Github} alt="Github-logo" className="h-8" />
</a>
<a href="https://www.instagram.com/gauravsingh1281">
<img src={Insta} alt="Insta-logo" className="h-8" />
</a>
</div>
</section>
)
}

0 comments on commit c929a9f

Please sign in to comment.