|
| 1 | +import { useEffect } from "react"; |
| 2 | + |
| 3 | +export default function Footer() { |
| 4 | + useEffect(() => { |
| 5 | + // Load FreeVisitorCounters auth script |
| 6 | + const authScript = document.createElement("script"); |
| 7 | + authScript.src = |
| 8 | + "https://www.freevisitorcounters.com/auth.php?id=89da7579fe98be3ad386e176c3d5db047a1f0486"; |
| 9 | + authScript.async = true; |
| 10 | + document.body.appendChild(authScript); |
| 11 | + |
| 12 | + // Load FreeVisitorCounters counter script |
| 13 | + const counterScript = document.createElement("script"); |
| 14 | + counterScript.src = |
| 15 | + "https://www.freevisitorcounters.com/en/home/counter/1384365/t/2"; |
| 16 | + counterScript.async = true; |
| 17 | + document.body.appendChild(counterScript); |
| 18 | + |
| 19 | + return () => { |
| 20 | + document.body.removeChild(authScript); |
| 21 | + document.body.removeChild(counterScript); |
| 22 | + }; |
| 23 | + }, []); |
| 24 | + |
| 25 | + return ( |
| 26 | + <footer className="bg-gradient-to-r from-blue-600 to-indigo-800 text-white py-3"> |
| 27 | + <div className="container mx-auto text-center space-y-2"> |
| 28 | + <div className="text-lg font-semibold"> |
| 29 | + <p>© 2024 Drone Defense Research. All rights reserved.</p> |
| 30 | + </div> |
| 31 | + <div className="text-sm"> |
| 32 | + <p>Transforming Defense Capabilities with Cutting-Edge Research.</p> |
| 33 | + <a href='http://www.freevisitorcounters.com'>Counter</a> <script type='text/javascript' src='https://www.freevisitorcounters.com/auth.php?id=9cf034db2bfaa3430d30b3137f92efbc9fd844cd'></script> |
| 34 | +<script type="text/javascript" src="https://www.freevisitorcounters.com/en/home/counter/1384370/t/5"></script> |
| 35 | + </div> |
| 36 | + |
| 37 | + {/* Free Visitor Counter */} |
| 38 | + <div className="mt-2"> |
| 39 | + <a |
| 40 | + href="http://www.freevisitorcounters.com" |
| 41 | + className="text-white underline" |
| 42 | + target="_blank" |
| 43 | + rel="noopener noreferrer" |
| 44 | + > |
| 45 | + Counter |
| 46 | + </a> |
| 47 | + <div id="1384365" className="inline-block ml-2"></div> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + </footer> |
| 51 | + ); |
| 52 | +} |
0 commit comments