-
Notifications
You must be signed in to change notification settings - Fork 0
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 #18 from 1xINTERNET/28-partners
#28: Partners
- Loading branch information
Showing
13 changed files
with
164 additions
and
13 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
interface Props { | ||
logo: string; | ||
name: string; | ||
size: number; | ||
url: string; | ||
} | ||
const { logo, name, size, url } = Astro.props; | ||
--- | ||
|
||
<a class="partner-link" href={url} data-size={size} title={name} target="_blank" | ||
><img src={logo} /></a | ||
> |
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
--- | ||
|
||
<div class="partner-links"> | ||
<div> | ||
<partner-link | ||
logo="/images/1xinternet.png" | ||
brand="1xINTERNET" | ||
url="https://1xintrnet.de/"></partner-link> | ||
</div> | ||
<div> | ||
<partner-link | ||
logo="/images/sowandsow.png" | ||
brand="Sow & Sow" | ||
url="https://www.sowxsow.com/"></partner-link> | ||
<partner-link | ||
logo="/images/c_sr.png" | ||
brand="C_SR" | ||
url="https://www.c-sr.org/"></partner-link> | ||
</div> | ||
<div> | ||
<partner-link | ||
logo="/images/1xinternet.png" | ||
brand="fount" | ||
url="https://example.com"></partner-link> | ||
<partner-link | ||
logo="/images/1xinternet.png" | ||
brand="progressiva" | ||
url="https://example.com"></partner-link> | ||
<partner-link | ||
logo="/images/1xinternet.png" | ||
brand="büro lehmann" | ||
url="https://example.com"></partner-link> | ||
</div> | ||
<div> | ||
<partner-link | ||
logo="/images/1xinternet.png" | ||
brand="CRAFT BRÄU" | ||
url="https://example.com"></partner-link> | ||
<partner-link | ||
logo="/images/tante-kathe.png" | ||
brand="Tante Käthe" | ||
url="https://tante-kaethe-fussballkneipe.de/"></partner-link> | ||
</div> | ||
<div> | ||
<partner-link | ||
color="#02a95c" | ||
logo="/images/gofundme.png" | ||
brand="GoFundMe" | ||
url="https://www.gofundme.com/"></partner-link> | ||
<partner-link | ||
logo="/images/betterplace.png" | ||
brand="Betterplace" | ||
url="https://www.betterplace.org/"></partner-link> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
class PartnerLink extends HTMLElement { | ||
constructor() { | ||
super(); | ||
const _randomSize = (Math.floor(Math.random() * 3) + 1).toString(); | ||
const a = document.createElement("a"); | ||
a.classList.add("partner-link"); | ||
a.setAttribute("data-size", _randomSize); | ||
a.style.backgroundColor = this.getAttribute("color") ?? "white"; | ||
a.href = this.getAttribute("url"); | ||
a.setAttribute("target", "_blank"); | ||
a.setAttribute("title", this.getAttribute("brand")); | ||
this.appendChild(a); | ||
const img = document.createElement("img"); | ||
img.src = this.getAttribute("logo"); | ||
a.appendChild(img); | ||
} | ||
} | ||
customElements.define("partner-link", PartnerLink); | ||
</script> |
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
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
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,8 @@ | ||
--- | ||
import Layout from "@layouts/Layout.astro"; | ||
import "@styles/global.css"; | ||
import PartnerLinks from "../components/PartnerLinks.astro"; | ||
import PrimaryLink from "../components/PrimaryLink.astro"; | ||
import Section from "../components/Section.astro"; | ||
import VideoPlayer from "../components/VideoPlayer.astro"; | ||
--- | ||
|
@@ -26,8 +28,24 @@ import VideoPlayer from "../components/VideoPlayer.astro"; | |
> | ||
<VideoPlayer /> | ||
</Section> | ||
<Section backgroundColor="green" id="partners"> | ||
<div | ||
class="flex flex-col gap-6 sm:gap-12 items-center max-w-[800px] text-center" | ||
> | ||
<h2>Our Partners and Collaborators</h2> | ||
<p> | ||
We are proud to have the support of numerous partners and supporters who | ||
share our vision and have joined us in the 'WHY YOU LOVE FOOTBALL' | ||
campaign. Thanks to their valuable contribution, we are one step closer | ||
to achieving our goal of donating 10 million footballs to children in | ||
need around the world. | ||
</p> | ||
<PartnerLinks /> | ||
<PrimaryLink href="mailto:[email protected]" text="Become a partner" /> | ||
</div> | ||
</Section> | ||
<Section | ||
backgroundColor="green" | ||
backgroundColor="blue" | ||
contentImage="/images/goal.jpeg" | ||
eyebrow="Donations" | ||
heading="Let's get every child a football." | ||
|
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