Skip to content

Commit

Permalink
Merge pull request #49 from Dium-dev/48-whatsappbutton
Browse files Browse the repository at this point in the history
Add WhatsApp button
  • Loading branch information
JohanMejia77 authored Apr 5, 2024
2 parents 2351d9c + 32d1799 commit 43710d2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import BrandsCarousel from "@/components/BrandsCarousel";
import { Reviews } from "@/components/Reviews";
import { PaymentMethods } from '@/components/PaymentMethods'
import { ReviewsSkeleton } from "@/components/Reviews/ReviewsSkeleton";
import { WhatsAppButton } from '@/components/WhatsAppButton'
import { Suspense } from "react";

export default function Home() {
Expand All @@ -27,6 +28,7 @@ export default function Home() {
<Reviews />
</Suspense>
<PaymentMethods />
<WhatsAppButton />
</main>
)
}
12 changes: 12 additions & 0 deletions src/components/WhatsAppButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Link from "next/link";
import { MdOutlineWhatsapp } from "react-icons/md";

export const WhatsAppButton = () => {
return (
<div className="w-20 h-20 rounded-full bg-[#25D366] fixed z-10 bottom-10 right-10 ms:flex items-center justify-center hidden cursor-pointer hover:scale-125 transition-all">
<Link href={'#'} className="text-white">
<MdOutlineWhatsapp size={55} />
</Link>
</div>
);
};

0 comments on commit 43710d2

Please sign in to comment.