Skip to content

Commit

Permalink
stlye: Add hover effect to navigation links and buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
faridvatani committed Aug 1, 2024
1 parent 7c06be4 commit 246e139
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}

.btn-primary {
@apply bg-black text-white;
@apply bg-black text-white hover:bg-black/80;
}

.btn-text {
Expand Down
15 changes: 8 additions & 7 deletions src/sections/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
import Image from "next/image";
import { motion } from "framer-motion";
import { footerData } from "@/src/constants";
import Link from "next/link";

export const Footer = () => {
return (
Expand Down Expand Up @@ -43,17 +44,17 @@ export const Footer = () => {

<nav className="flex flex-col md:flex-row md:justify-center gap-6 mt-6">
{footerData.footerLinks.map((link, index) => (
<a key={index} href={link.href}>
<Link key={index} href={link.href} className="hover:text-white">
{link.name}
</a>
</Link>
))}
</nav>
<div className="flex justify-center gap-6 mt-6">
<SocialX className="cursor-pointer" />
<SocialInstagram className="cursor-pointer" />
<SocialLinkedIn className="cursor-pointer" />
<SocialPinterest className="cursor-pointer" />
<SocialYoutube className="cursor-pointer" />
<SocialX className="hover:text-white cursor-pointer" />
<SocialInstagram className="hover:text-white cursor-pointer" />
<SocialLinkedIn className="hover:text-white cursor-pointer" />
<SocialPinterest className="hover:text-white cursor-pointer" />
<SocialYoutube className="hover:text-white cursor-pointer" />
</div>
<p className="mt-6">&copy;{footerData.copyRight}</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/sections/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export const Header = () => {
<Menu className="w-5 h-5 md:hidden" />
<nav className="hidden md:flex gap-6 text-black/60 items-center">
{headerData.headerLinks.map((link) => (
<Link href={link.href} key={link.name}>
<Link href={link.href} key={link.name} className="hover:text-black">
{link.name}
</Link>
))}
<button className="inline-flex align-baseline justify-center font-medium tracking-tight bg-black text-white px-4 py-2 rounded-lg">
<button type="button" className="btn btn-primary">
{headerData.cta}
</button>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const Pricing = () => {
<button
className={twMerge(
"btn btn-primary w-full mt-[30px]",
inverse === true && "bg-white text-black",
inverse === true && "bg-white text-black hover:bg-white/80",
)}
>
{buttonText}
Expand Down

0 comments on commit 246e139

Please sign in to comment.