-
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 branch 'main' into feature/14-update-navigation-and-create-sect…
…ions
- Loading branch information
Showing
17 changed files
with
202 additions
and
26 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
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
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 @@ | ||
--- | ||
import Layout from "@layouts/Layout.astro"; | ||
import "@styles/global.css"; | ||
--- | ||
|
||
<Layout title="Imprint"> | ||
<div class="container mx-auto py-8 px-4 sm:py-12 sm:px-8 lg:py-16 lg:px-28"> | ||
<div class="flex items-center justify-between"> | ||
<h1 class="mb-4">Imprint</h1> | ||
<a class="hover:underline text-blue" href="/">Back</a> | ||
</div> | ||
<p>Imprint text goes here...</p> | ||
</div> | ||
</Layout> |
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,13 +1,17 @@ | ||
--- | ||
import Hero from "../components/Hero.astro"; | ||
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"; | ||
import HowToHelp from "../components/HowToHelp.astro"; | ||
import AboutUs from "../components/AboutUs.astro"; | ||
--- | ||
|
||
<Layout title="Welcome to Whyuluvfootball"> | ||
<Hero /> | ||
<Section | ||
backgroundColor="green" | ||
eyebrow="Our goal" | ||
|
@@ -29,19 +33,30 @@ import AboutUs from "../components/AboutUs.astro"; | |
> | ||
<VideoPlayer /> | ||
</Section> | ||
<Section | ||
backgroundColor="green" | ||
eyebrow="How to help" | ||
heading="" | ||
id="how-to-help" | ||
> | ||
<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="blue" eyebrow="How to help" id="how-to-help"> | ||
<HowToHelp /> | ||
</Section> | ||
<Section backgroundColor="blue" eyebrow="About us" heading="" id="about-us"> | ||
<Section backgroundColor="green" eyebrow="About us" id="about-us"> | ||
<AboutUs /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
import Layout from "@layouts/Layout.astro"; | ||
import "@styles/global.css"; | ||
--- | ||
|
||
<Layout title="Imprint"> | ||
<div class="container mx-auto py-8 px-4 sm:py-12 sm:px-8 lg:py-16 lg:px-28"> | ||
<div class="flex items-center justify-between"> | ||
<h1 class="mb-4">Privacy policy</h1> | ||
<a class="hover:underline text-blue" href="/">Back</a> | ||
</div> | ||
<p>Privacy policy text goes here...</p> | ||
</div> | ||
</Layout> |
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