All files / src/components Footer.tsx

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60                                                    19x 133x   133x                                                            
/**
 * @file Footer.tsx
 * @description
 * Application footer with copyright notice and social media links.
 *
 * **Content:**
 * - Copyright year and application name
 * - GitHub profile link
 * - LinkedIn profile link
 * - Dark mode styling support
 *
 * **Localization:**
 * - Copyright text uses i18n for localization
 *
 * @component
 */
 
import React from 'react';
import { FaGithub, FaLinkedin } from 'react-icons/fa';
import { useTranslation } from 'react-i18next';
 
/**
 * Application footer component
 * @component
 * @returns {JSX.Element} Footer with copyright and social links
 */
const Footer: React.FC = () => {
  const { t } = useTranslation();
 
  return (
    <footer className="footer-container w-full text-center py-4 mt-6 bg-gray-200 dark:bg-gray-800 text-gray-700 dark:text-white">
      <p className="text-sm">© 2025 StockEase. {t('footer.rights')}</p>
 
      <div className="flex justify-center space-x-6 mt-2">
        <a
          href="https://github.com/Keglev"
          target="_blank"
          rel="noopener noreferrer"
          className="flex items-center space-x-2 text-gray-700 hover:text-black transition-all duration-200 
            dark:text-white dark:hover:text-yellow-400"
        >
          <FaGithub size={20} /> <span>GitHub</span>
        </a>
 
        <a
          href="https://linkedin.com/in/carloskeglevich"
          target="_blank"
          rel="noopener noreferrer"
          className="flex items-center space-x-2 text-blue-600 hover:text-blue-800 transition-all duration-200 
            dark:text-white dark:hover:text-yellow-400"
        >
          <FaLinkedin size={20} /> <span>LinkedIn</span>
        </a>
      </div>
    </footer>
  );
};
 
export default Footer;