Skip to content

Commit

Permalink
Merge pull request #10 from asusoda/Contact-Luan
Browse files Browse the repository at this point in the history
Added Contact Cards
  • Loading branch information
LuaanNguyen authored Jul 4, 2024
2 parents 093fdd8 + 6195c2d commit 8a91290
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 2 deletions.
74 changes: 74 additions & 0 deletions src/components/Contact/Contact.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import RegularButton from "../Button/RoundedButton";

function Contact() {
return (
<section
className="flex flex-col justify-center items-center my-20"
id="join"
>
<h1 className="text-white font-bold text-2xl md:text-4xl text-center">
Let's Get In Touch!
</h1>
<h4 className="text-soda-gray text-sm md:text-lg text-center mb-8 px-10">
Excited to join SoDA? Leave your information here and our officers will
get in touch with you shortly.
</h4>
<section className="w-[70vw] h-[70vh] grid grid-cols-2 max-md:grid-cols-1 max-md:gap-2 gap-10 ">
<section className="m-auto flex flex-cols">
<form className="grid grid-rows-4 gap-4 bg-white py-10 px-8 rounded-3xl">
<h1 className="text-soda-black text-xl font-bold">
CONTACT FORM <hr className="bg-soda-gray w-full h-0.5" />
</h1>

<div className="grid grid-cols-2 gap-4">
<input
type="text"
placeholder="Fist Name"
name="first name"
className="focus:outline-none focus:ring relative w-full px-3 py-3 text-sm text-gray-600 placeholder-gray-400 bg-white border-0 rounded shadow outline-none"
required
/>
<input
type="text"
placeholder="Last Name"
name="last name"
className="focus:outline-none focus:ring relative w-full px-3 py-3 text-sm text-gray-600 placeholder-gray-400 bg-white border-0 rounded shadow outline-none"
required
/>
</div>

<input
type="email"
placeholder="Email"
name="email"
className="focus:outline-none focus:ring relative w-full px-3 py-3 text-sm text-gray-600 placeholder-gray-400 bg-white border-0 rounded shadow outline-none"
required
/>

<div className="">
<textarea
placeholder="Your message"
name="message"
className="focus:outline-none focus:ring relative w-full px-3 text-sm text-gray-600 placeholder-gray-400 bg-white border-0 rounded shadow outline-none"
required
/>
</div>
<div className="text-center">
<RegularButton name="Submit" />
</div>
</form>
</section>
<figure className="">
<iframe
className="w-full h-full rounded-2xl"
loading="lazy"
allowFullScreen
src="https://www.google.com/maps/embed/v1/place?q=tempe&key=AIzaSyALN2fUL0Wx_CgtyGlXH5hR_s45DZH7rU0"
></iframe>
</figure>
</section>
</section>
);
}

export default Contact;
4 changes: 3 additions & 1 deletion src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ function Navbar() {
</a>
</li>
</ul>
<RoundedButton name="Join SoDA" />
<a href="#join">
<RoundedButton name="Join SoDA" />
</a>
</section>

{/*Mobile Navigation*/}
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import InfoCards from "../components/Info/InfoCards";
import MemberCards from "../components/Team/TeamCards";
import Hero from "../components/Hero";
import SponsorsMarquee from "../components/Sponsors/SponsorsMarquee";
import Contact from "../components/Contact/Contact";

function Home() {
return (
Expand All @@ -10,7 +11,7 @@ function Home() {
<SponsorsMarquee />
<MemberCards />
<InfoCards />
{/* <AnimatedBackGround /> */}
<Contact />
</section>
);
}
Expand Down

0 comments on commit 8a91290

Please sign in to comment.