diff --git a/frontend/src/components/Sponsors.tsx b/frontend/src/components/Sponsors.tsx index 6b7ffa3..7b2bfb0 100644 --- a/frontend/src/components/Sponsors.tsx +++ b/frontend/src/components/Sponsors.tsx @@ -1,11 +1,11 @@ -// src/Sponsors.tsx -export default function Sponsors() { - const handleLinkClick = (event: React.MouseEvent) => { - event.preventDefault(); +import React from 'react'; - window.open('/Gophercon Africa 2024 Sponsorship Prospectus.pdf', '_blank'); +export default function Sponsors() { + const handleButtonClick = (event: React.MouseEvent) => { + event.preventDefault(); // Prevents the default behavior of the anchor tag (navigation) }; + return (

- Don't miss this chance to supercharge your brand and tap into the vibrant energy of Nairobi's Go programming community. Contact us today to explore more sponsorship opportunities and join us in creating an unforgettable event.

+ Don't miss this chance to supercharge your brand and tap into the vibrant energy of Nairobi's Go programming community. Contact us today to explore more sponsorship opportunities and join us in creating an unforgettable event. +

Sponsorship Details - + Become a Sponsor
diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index a82e2f7..a0546ec 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -4,6 +4,7 @@ import './index.css' import {createBrowserRouter, RouterProvider} from "react-router-dom"; import Home from "./pages/Home.tsx"; import Error from "./pages/Error.tsx"; +import SponsorshipRedirect from './pages/SponsorshipRedirect'; const router = createBrowserRouter([ @@ -12,6 +13,10 @@ const router = createBrowserRouter([ element: , errorElement: , }, + { + path: "/sponsorship", + element: , + }, ]); ReactDOM.createRoot(document.getElementById('root')!).render( diff --git a/frontend/src/pages/SponsorshipRedirect.tsx b/frontend/src/pages/SponsorshipRedirect.tsx new file mode 100644 index 0000000..f97dda4 --- /dev/null +++ b/frontend/src/pages/SponsorshipRedirect.tsx @@ -0,0 +1,12 @@ +// src/SponsorshipRedirect.tsx +import React from 'react'; + +const SponsorshipRedirect: React.FC = () => { + React.useEffect(() => { + window.location.href = '/Gophercon Africa 2024 Sponsorship Prospectus.pdf'; + }, []); + + return null; +}; + +export default SponsorshipRedirect;