Skip to content

fix: Enhance hover effect for social media icons in the Contact component #1969

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

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
23 changes: 17 additions & 6 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,9 +109,14 @@ 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-4"
onSubmit={handleSubmit}
>
<input
className="text-md border-transparent rounded-lg block w-full p-2.5 bg-[#171f38] placeholder-gray-400 text-white"
type="text"
Expand Down
11 changes: 9 additions & 2 deletions styles/contact.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@
margin-left: 4px !important;
}

.social__links :hover {
color: var(--site-theme-color);
.social__links a {
color: white; /* Default color */
font-size: 2rem; /* Icon size */
transition: color 0.3s ease, transform 0.3s ease; /* Smooth hover effect */
}

.social__links a:hover {
color: #01d293; /* Change color on hover */
transform: scale(1.2); /* Slightly enlarge on hover */
}

@media only screen and (max-width: 768px) {
Expand Down
Loading