Skip to content

Commit

Permalink
Add sponsorship section to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
anyaparekh committed Aug 15, 2023
1 parent c76e82b commit dbf1b23
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/utils/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export type Info = {
applicationBlurb: string;
homepageAbout: Image;
homepagePartnerships: Image;
homepageSponsorships: Image;
homepageBannerText: string;
homepageBannerUrl: string;
};
Expand Down
33 changes: 33 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,34 @@
</Row>
</Section>

<Section id="sponsorships" color="var(--blue)" padding="60px">
<Row gap={84} reverse
><figure>
<img
src={data.info.homepageSponsorships.src}
alt={data.info.homepageSponsorships.alt}
/>
</figure>
<div id="sponsorship-content">
<h2>
We
<Icon icon="heart" width="1em" height="1em" />
Our Sponsors
</h2>
<div class="row-center" />
<p>
Our drive to write impactful software for social good is made possible
by equally socially minded organizations. A sponsorship with Hack4Impact
is a lasting relationship that brings us to your commnunity and, in
turn, supports our work.
</p>
<div class="row-center gap">
<Button type="primary-white" href="/join/sponsors">For Sponsors</Button>
</div>
</div>
</Row>
</Section>

<style>
a {
text-decoration: none;
Expand Down Expand Up @@ -163,6 +191,11 @@
color: var(--blue-darker);
}
#sponsorship-content {
color: white;
vertical-align: top;
}
figure > img {
width: 100%;
border-radius: 4px;
Expand Down

0 comments on commit dbf1b23

Please sign in to comment.