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

feat(#1814): Improved styling for Connect with Me section #1829

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
31 changes: 21 additions & 10 deletions components/UI/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ import Form from "./Form";
import axios from "axios";
import { useState } from "react";
import NewTwitterLogo from "./NewTwitterlogo";
import { RiYoutubeFill, RiGithubFill, RiTwitterFill, RiLinkedinFill } from "react-icons/ri";
import {
RiYoutubeFill,
RiGithubFill,
RiTwitterFill,
RiLinkedinFill,
} from "react-icons/ri";
const Contact = () => {
const [submitted, setSubmitted] = useState(false);
const handleSubmit = async (event) => {
Expand Down Expand Up @@ -36,7 +41,6 @@ const Contact = () => {
<Container>
<Row className="flex justify-between flex-col md:flex-row ">
<Col lg="4" md="6">

<h3 className="mt-4 mb-4 text-2xl">Connect with me</h3>

<ul className={`${classes.contact__info__list}`}>
Expand All @@ -53,7 +57,10 @@ const Contact = () => {
</a>
</span>
<p>
<a className="hover:text-[#01d293]" href="mailto:[email protected]">
<a
className="hover:text-[#01d293]"
href="mailto:[email protected]"
>
[email protected]
</a>
</p>
Expand Down Expand Up @@ -83,7 +90,6 @@ const Contact = () => {
href="https://twitter.com/piyushgarg_dev"
target="_blank"
>

<NewTwitterLogo />
</Link>
<Link
Expand All @@ -103,27 +109,32 @@ const Contact = () => {
</div>
) : (
<>
<div className="mt-4 mb-4 text-2xl"><SectionSubtitle subtitle="Contact me" /></div>
<div className="mt-4 mb-4 text-2xl">
<SectionSubtitle subtitle="Contact me" />
</div>

<form className="flex flex-col space-y-4" onSubmit={handleSubmit}>
<form
className="flex flex-col space-y-6"
onSubmit={handleSubmit}
>
<input
className="text-md border-transparent rounded-lg block w-full p-2.5 bg-[#171f38] placeholder-gray-400 text-white"
className="text-md border border-gray-600 rounded-lg block w-full p-3 bg-[#171f38] placeholder-gray-500 text-white focus:outline-none focus:border-[#01d293] focus:ring-2 focus:ring-[#01d293] transition-all duration-300"
type="text"
name="name"
placeholder="Your Full Name"
required
autoComplete="off"
/>
<input
className="text-md border-transparent rounded-lg block w-full p-2.5 bg-[#171f38] placeholder-gray-400 text-white"
className="text-md border border-gray-600 rounded-lg block w-full p-3 bg-[#171f38] placeholder-gray-500 text-white focus:outline-none focus:border-[#01d293] focus:ring-2 focus:ring-[#01d293] transition-all duration-300"
type="email"
name="email"
placeholder="Your Email"
required
autoComplete="off"
/>
<textarea
className="text-md border-transparent rounded-lg block w-full p-2.5 bg-[#171f38] placeholder-gray-400 text-white"
className="text-md border border-gray-600 rounded-lg block w-full p-3 bg-[#171f38] placeholder-gray-500 text-white focus:outline-none focus:border-[#01d293] focus:ring-2 focus:ring-[#01d293] transition-all duration-300"
name="message"
placeholder="Your Message"
required
Expand All @@ -132,7 +143,7 @@ const Contact = () => {
></textarea>
<button
type="submit"
className="bg-blue-500 text-white px-4 py-2 rounded-md hover:bg-blue-600"
className="bg-[#01d293] text-white px-6 py-3 rounded-lg hover:bg-[#00b87d] hover:transform hover:scale-105 transition-all duration-300 font-medium"
>
Send Message
</button>
Expand Down
Loading