All files / components Footer.tsx

100% Statements 4/4
50% Branches 2/4
100% Functions 1/1
100% Lines 4/4

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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117          1x 6x   6x   6x                                                                                                                                                                                                                    
import React from 'react';
import { Link } from 'gatsby';
import { StaticImage } from 'gatsby-plugin-image';
import { useTheme } from '../context/ThemeContext';
 
const Footer: React.FC = () => {
  const { theme } = useTheme();
  
  const currentYear = new Date().getFullYear();
  
  return (
    <footer className="py-16 border-t border-slate-800/50 relative overflow-hidden">
      {/* Gradient effects */}
      <div className="absolute -top-20 -left-20 w-60 h-60 bg-green-500/5 rounded-full filter blur-3xl"></div>
      <div className="absolute -bottom-20 -right-20 w-60 h-60 bg-blue-500/5 rounded-full filter blur-3xl"></div>
      
      <div className="container mx-auto px-4">
        <div className="grid md:grid-cols-2 lg:grid-cols-4 gap-10">
          <div>
            <Link to="/" className="flex items-center space-x-3 mb-6">
              <div className="w-10 h-10 relative rounded-full bg-gradient-to-br from-green-400/20 to-teal-500/20 p-0.5 flex items-center justify-center">
                <StaticImage 
                  src="../images/neo-logo.svg" 
                  alt="Neo Logo" 
                  width={32} 
                  height={32}
                  placeholder="blurred"
                  className="rounded-full"
                />
              </div>
              <span className="text-xl font-bold">
                <span className={theme === 'dark' ? 'text-white' : 'text-gray-900'}>Neo</span>
                <span className={theme === 'dark' ? 'text-green-400' : 'text-green-600'}>Rust</span>
              </span>
            </Link>
            <p className="text-gray-400 mb-6">A comprehensive Rust SDK for the Neo N3 blockchain ecosystem.</p>
            <div className="flex space-x-4">
              <a href="https://github.com/R3E-Network/NeoRust" 
                className="w-10 h-10 flex items-center justify-center rounded-full bg-slate-800 hover:bg-slate-700 transition-colors" 
                target="_blank" 
                rel="noopener noreferrer"
                aria-label="GitHub Repository"
              >
                <svg className="h-5 w-5 text-gray-300" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
                  <path fillRule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clipRule="evenodd"></path>
                </svg>
              </a>
              <a href="https://twitter.com/neo_blockchain" 
                className="w-10 h-10 flex items-center justify-center rounded-full bg-slate-800 hover:bg-slate-700 transition-colors" 
                target="_blank" 
                rel="noopener noreferrer"
                aria-label="Neo Twitter"
              >
                <svg className="h-5 w-5 text-gray-300" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
                  <path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"></path>
                </svg>
              </a>
              <a href="https://discord.gg/neo" 
                className="w-10 h-10 flex items-center justify-center rounded-full bg-slate-800 hover:bg-slate-700 transition-colors" 
                target="_blank" 
                rel="noopener noreferrer"
                aria-label="Neo Discord"
              >
                <svg className="h-5 w-5 text-gray-300" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
                  <path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"></path>
                </svg>
              </a>
            </div>
          </div>
          
          <div>
            <h4 className="text-lg font-medium mb-4 text-white">Documentation</h4>
            <ul className="space-y-3">
              <li><Link to="/docs/getting-started" className="text-gray-400 hover:text-green-400 transition inline-block">Getting Started</Link></li>
              <li><Link to="/docs/wallets" className="text-gray-400 hover:text-green-400 transition inline-block">Wallet Management</Link></li>
              <li><Link to="/docs/contracts" className="text-gray-400 hover:text-green-400 transition inline-block">Smart Contracts</Link></li>
              <li><Link to="/docs/neo-x" className="text-gray-400 hover:text-green-400 transition inline-block">Neo X Integration</Link></li>
              <li><Link to="/api-reference" className="text-gray-400 hover:text-green-400 transition inline-block">API Reference</Link></li>
            </ul>
          </div>
          
          <div>
            <h4 className="text-lg font-medium mb-4 text-white">Resources</h4>
            <ul className="space-y-3">
              <li><Link to="/examples" className="text-gray-400 hover:text-green-400 transition inline-block">Examples</Link></li>
              <li><Link to="/playground" className="text-gray-400 hover:text-green-400 transition inline-block">Playground</Link></li>
              <li><Link to="/guides" className="text-gray-400 hover:text-green-400 transition inline-block">Guides</Link></li>
              <li><a href="https://neo.org" className="text-gray-400 hover:text-green-400 transition inline-block">Neo Website</a></li>
              <li><a href="https://github.com/R3E-Network/NeoRust" className="text-gray-400 hover:text-green-400 transition inline-block">GitHub Repository</a></li>
            </ul>
          </div>
          
          <div>
            <h4 className="text-lg font-medium mb-4 text-white">Community</h4>
            <ul className="space-y-3">
              <li><a href="https://discord.gg/neo" className="text-gray-400 hover:text-green-400 transition inline-block">Discord</a></li>
              <li><a href="https://twitter.com/neo_blockchain" className="text-gray-400 hover:text-green-400 transition inline-block">Twitter</a></li>
              <li><a href="https://www.reddit.com/r/NEO/" className="text-gray-400 hover:text-green-400 transition inline-block">Reddit</a></li>
              <li><a href="https://medium.com/neo-smart-economy" className="text-gray-400 hover:text-green-400 transition inline-block">Medium</a></li>
              <li><a href="https://t.me/NEO_EN" className="text-gray-400 hover:text-green-400 transition inline-block">Telegram</a></li>
            </ul>
          </div>
        </div>
        
        <div className="mt-12 pt-8 border-t border-slate-800/50 flex flex-col md:flex-row justify-between items-center">
          <p className="text-gray-500 text-sm">&copy; {currentYear} Neo Rust SDK. All rights reserved.</p>
          
          <div className="mt-4 md:mt-0 text-gray-500 text-sm">
            <p>Built with <span className="text-green-400">♥</span> for the Neo community</p>
          </div>
        </div>
      </div>
    </footer>
  );
};
 
export default Footer;