Skip to content

Commit

Permalink
Merge pull request #23 from nairobi-gophers/pdf-fix
Browse files Browse the repository at this point in the history
feat: Handle link click to open Gophercon Africa 2024 Sponsorship
  • Loading branch information
nutcas3 authored Jul 1, 2024
2 parents 6fb7e77 + 4fc62d1 commit 9537b91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
11 changes: 8 additions & 3 deletions frontend/src/components/Sponsors.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// src/Sponsors.tsx

export default function Sponsors() {
const handleLinkClick = (event: React.MouseEvent<HTMLAnchorElement>) => {
event.preventDefault();

window.open('/Gophercon Africa 2024 Sponsorship Prospectus.pdf', '_blank');

};
return (
<section
id="sponsors"
Expand All @@ -15,11 +20,11 @@ export default function Sponsors() {
<div className="flex flex-col md:flex-row gap-4">
<a
className="button w-full md:w-auto mb-4 md:mb-0"
href="/sponsorship"
onClick={handleLinkClick}
>
Sponsorship Details
</a>
<a className="button w-full md:w-auto" href="mailto:[email protected]?subject=Sponsor%20Us">
<a className="button w-full md:w-auto" href="mailto:[email protected]?subject=GopherCon%20Africa%20Sponsorship">
Become a Sponsor
</a>
</div>
Expand Down
12 changes: 0 additions & 12 deletions frontend/src/pages/SponsorshipRedirect.tsx

This file was deleted.

0 comments on commit 9537b91

Please sign in to comment.