-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from nairobi-gophers/pdf-fix
feat: Handle link click to open Gophercon Africa 2024 Sponsorship
- Loading branch information
Showing
2 changed files
with
8 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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> | ||
|
This file was deleted.
Oops, something went wrong.