Skip to content

Commit

Permalink
Added multiple language support system tp all pages
Browse files Browse the repository at this point in the history
  • Loading branch information
biswa committed Nov 9, 2024
1 parent 4102e53 commit 08f2c47
Showing 1 changed file with 107 additions and 4 deletions.
111 changes: 107 additions & 4 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,117 @@
// import Link from "next/link";
// import { IoLogoTwitter, IoLogoGithub, IoLogoLinkedin } from "react-icons/io5";
// import React from "react";
// import { FaXTwitter } from "react-icons/fa6";
// import Image from "next/image";

// const Footer: React.FC = () => {
// return (
// <footer className="w-full bg-black text-white py-10 px-4 md:px-10 z-[999]">
// <div className="container mx-auto flex flex-col gap-8 md:flex-row justify-between items-center">
// <div className="text-center md:text-left">
// <Link
// href={"/"}
// className=" transition duration-300 ease-in-out transform hover:scale-105">
// <Image
// src={"/nexmeet.png"}
// width={500}
// height={500}
// alt="NexMeet Logo"
// className="h-8 w-auto transition duration-300 ease-in-out transform hover:scale-105"
// />
// </Link>
// <p className="text-gray-400 mt-2">Your Next Meetup Platform</p>
// </div>

// <div className="flex justify-center md:justify-end gap-6">
// <Link
// href="/"
// target="_blank"
// className="transition hover:scale-110 hover:text-blue-500"
// >
// <FaXTwitter className="h-6 w-6 text-white" />
// </Link>
// <Link
// href="https://github.com/TejasNasre/nexmeet"
// target="_blank"
// className="transition hover:scale-110 hover:text-blue-500"
// >
// <IoLogoGithub className="h-6 w-6 text-white" />
// </Link>
// <Link
// href="/"
// target="_blank"
// className="transition hover:scale-110 hover:text-blue-500"
// >
// <IoLogoLinkedin className="h-6 w-6 text-white" />
// </Link>
// </div>

// <div className="flex flex-col md:flex-row gap-6 text-center">
// <Link href="/about" className="transition hover:text-gray-300">
// About Us
// </Link>
// <Link
// href="/explore-events"
// className="transition hover:text-gray-300"
// >
// Explore Events
// </Link>
// <Link href="/contact" className="transition hover:text-gray-300">
// Contact
// </Link>
// </div>
// </div>

// <div className="border-t border-gray-700 mt-10 pt-6 text-center text-gray-500">

// <p>&copy; {new Date().getFullYear()} Nexmeet. All Rights Reserved.</p>
// </div>
// </footer>
// );
// };

// export default Footer;


"use client";

import Link from "next/link";
import { IoLogoTwitter, IoLogoGithub, IoLogoLinkedin } from "react-icons/io5";
import React from "react";
import React, { useEffect } from "react";
import { FaXTwitter } from "react-icons/fa6";
import Image from "next/image";

const GoogleTranslateWidget: React.FC = () => {
useEffect(() => {
(window as any).gtranslateSettings = {
default_language: "en",
detect_browser_language: true,
wrapper_selector: ".gtranslate_wrapper",
};

const script = document.createElement("script");
script.src = "https://cdn.gtranslate.net/widgets/latest/float.js";
script.defer = true;
document.body.appendChild(script);

return () => {
document.body.removeChild(script);
};
}, []);

return <div className="gtranslate_wrapper"></div>;
};

const Footer: React.FC = () => {
return (
<footer className="w-full bg-black text-white py-10 px-4 md:px-10 z-[999]">
<div className="container mx-auto flex flex-col gap-8 md:flex-row justify-between items-center">
<div className="text-center md:text-left">
<Link
href={"/"}
className=" transition duration-300 ease-in-out transform hover:scale-105">
<Link
href="/"
className="transition duration-300 ease-in-out transform hover:scale-105"
>
<Image
src={"/nexmeet.png"}
width={500}
Expand Down Expand Up @@ -61,6 +161,9 @@ const Footer: React.FC = () => {
Contact
</Link>
</div>

{/* Add the GoogleTranslateWidget component */}
<GoogleTranslateWidget />
</div>

<div className="border-t border-gray-700 mt-10 pt-6 text-center text-gray-500">
Expand Down

0 comments on commit 08f2c47

Please sign in to comment.