Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Handle link click to open Gophercon Africa 2024 Sponsorship #23

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading