Skip to content

Commit

Permalink
Actually import the sponsor doc as an asset
Browse files Browse the repository at this point in the history
modern webdev was a mistake
  • Loading branch information
jmshrv committed Sep 6, 2023
1 parent 9bcd46e commit 0327028
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/sponsors.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import HackNottsDecoratedPage from "@components/shared/HackNottsDecoratedPage";
import HackNottsSectionHeader from "@components/shared/HackNottsSectionHeader";
import { Container } from "react-bootstrap";
import sponsorDoc from "@assets/sponsor-info.pdf"

function Sponsors(): JSX.Element {
let sponsorDocUrl = new URL(sponsorDoc, import.meta.url).href;

return <HackNottsDecoratedPage>
<Container>
<HackNottsSectionHeader
Expand All @@ -15,7 +18,7 @@ function Sponsors(): JSX.Element {
We really appreciate all of our sponsors, and
we have a range of flexible packages available
to cater for any budget or other requirements.
Take a look at our <a href="/assets/sponsor-info.pdf">Sponsorship Information Booklet</a> for more details and prices, and then feel free to
Take a look at our <a href={sponsorDocUrl}>Sponsorship Information Booklet</a> for more details and prices, and then feel free to
get in contact with the <a href="mailto:committee@hacksocnotts.co.uk">committee</a> or our <a href="mailto:daudi.wampamba@hacksocnotts.co.uk">lead organiser</a> and we can set up a meeting!
</p>
<p>
Expand Down

0 comments on commit 0327028

Please sign in to comment.