-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
85 additions
and
58 deletions.
There are no files selected for viewing
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,38 @@ | ||
--- | ||
import { Card, CardContainer } from "@components"; | ||
interface Props { | ||
language?: string; | ||
} | ||
const { language = "en" } = Astro.props; | ||
--- | ||
|
||
<CardContainer className="lg:h-[408px]"> | ||
<Card | ||
title={language === "ua" | ||
? "Ти знаходишся в Україні і думаєш, що ми можемо бути тобі корисними?" | ||
: "You are based in Ukraine and think we could help you?"} | ||
bg={4} | ||
target="mailto:[email protected]" | ||
actionCaption={language === "ua" ? "Контактуй з нами" : "Get in contact"} | ||
> | ||
{ | ||
language === "ua" | ||
? "Школи, університети, громадські організації, стартапи та інші організації можуть звернутись до нас з запитом на спільний з Толокаром проект, воркшоп або тренінг." | ||
: "Schools, universities, NGOs, Startups and other organizations can reach out to us to request the Tolocars for projects, workshops and trainings." | ||
} | ||
</Card> | ||
<Card | ||
title={language === "ua" | ||
? "Ти мейкер і хочеш налагодити партнерство з нами?" | ||
: "You are a Maker and want to partner with us?"} | ||
bg={5} | ||
target="mailto:[email protected]" | ||
actionCaption={language === "ua" ? "Контактуй з нами" : "Get in contact"} | ||
> | ||
Ми шукаємо мейкерів, фаблаби, хакерспейси, мейкерспейси та інші спільноти, | ||
які мають бажання налагодити партнерство з нами в Україні або в інших | ||
країнах. | ||
</Card> | ||
</CardContainer> |
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ import { getParentPage } from "@util/ContentTransformer"; | |
import fs from "node:fs"; | ||
import Giscus from "@components/Giscus.astro"; | ||
import CommonUtils from "@util/CommonUtils"; | ||
import FooterCards from "@components/FooterCards.astro"; | ||
const rawAcademyContent = await Astro.glob<AcademyPageFrontmatter>( | ||
"../pages/en/academy/*/*.mdx" | ||
|
@@ -27,14 +28,15 @@ const editDate = new Date(statsMtime); | |
const parentPage = getParentPage(rawAcademyContent, url); | ||
const localeFromUrl = | ||
Astro?.url?.pathname.replace(baseUrl, "").split("/").filter(Boolean)[0] || "en"; | ||
Astro?.url?.pathname.replace(baseUrl, "").split("/").filter(Boolean)[0] || | ||
"en"; | ||
--- | ||
|
||
<BaseLayout frontmatter={frontmatter}> | ||
<div class="mt-20 container-width"> | ||
<BackButton target={`${baseUrl}${localeFromUrl}/academy`} | ||
>Back to Academy Overview</BackButton | ||
> | ||
<BackButton target={`${baseUrl}${localeFromUrl}/academy`}> | ||
Back to Academy Overview | ||
</BackButton> | ||
</div> | ||
<div class="container-width-hero"> | ||
<AcademyHeroImage | ||
|
@@ -78,24 +80,6 @@ const localeFromUrl = | |
}`} | ||
> | ||
</div> | ||
<CardContainer className="lg:h-[408px]"> | ||
<Card | ||
title="You are based in Ukraine and think we could help you?" | ||
bg={4} | ||
target="mailto:[email protected]" | ||
actionCaption="Get in contact" | ||
>Schools, universities, NGOs, Startups and other organizations can reach | ||
out to us to request the Tolocars for projects, workshops and trainings.</Card | ||
> | ||
<Card | ||
title="You are a Maker and want to partner with us?" | ||
bg={5} | ||
target="mailto:[email protected]" | ||
actionCaption="Get in contact" | ||
>We are looking for Makers, FabLabs, Hackerspaces, Makerspaces and other | ||
Communities who wants to partner with us in the Ukraine and | ||
internationally over the internet.</Card | ||
> | ||
</CardContainer> | ||
<FooterCards language={localeFromUrl} /> | ||
</ContentSection> | ||
</BaseLayout> |
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,31 +1,21 @@ | ||
--- | ||
import FooterCards from "@components/FooterCards.astro"; | ||
import BaseLayout from "./BaseLayout.astro"; | ||
import { ContentSection, Card, CardContainer } from "@components"; | ||
import { ContentSection } from "@components"; | ||
import CommonUtils from "@util/CommonUtils"; | ||
const { frontmatter } = Astro.props; | ||
const baseUrl = CommonUtils.getBaseUrl(false); | ||
const localeFromUrl = | ||
Astro?.url?.pathname.replace(baseUrl, "").split("/").filter(Boolean)[0] || | ||
"en"; | ||
--- | ||
|
||
<BaseLayout footerGrey={true} frontmatter={frontmatter}> | ||
<slot /> | ||
<ContentSection> | ||
<div class="absolute w-full bg-white h-64 top-0"></div> | ||
<CardContainer className="lg:h-[408px]"> | ||
<Card | ||
title="You are based in Ukraine and think we could help you?" | ||
bg={4} | ||
target="mailto:[email protected]" | ||
actionCaption="Get in contact" | ||
>Schools, universities, NGOs, Startups and other organizations can reach | ||
out to us to request the Tolocars for projects, workshops and trainings.</Card | ||
> | ||
<Card | ||
title="You are a Maker and want to partner with us?" | ||
bg={5} | ||
target="mailto:[email protected]" | ||
actionCaption="Get in contact" | ||
>We are looking for Makers, FabLabs, Hackerspaces, Makerspaces and other | ||
Communities who wants to partner with us in the Ukraine and | ||
internationally over the internet.</Card | ||
> | ||
</CardContainer> | ||
<FooterCards language={localeFromUrl} /> | ||
</ContentSection> | ||
</BaseLayout> |
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,7 +1,7 @@ | ||
--- | ||
menu: | ||
- title: Home | ||
target: "/en/#top" | ||
target: "en/#top" | ||
hideInFooter: true | ||
|
||
- title: What is a Tolocar? | ||
|
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,20 +1,20 @@ | ||
--- | ||
menu: | ||
- title: Головна | ||
target: "/ua/#top" | ||
target: "ua/#top" | ||
hideInFooter: true | ||
|
||
- title: Мотивація | ||
target: "/ua/#motivation" | ||
target: "ua/#motivation" | ||
|
||
- title: Що таке толокар? | ||
target: "/ua/#what-is-a-tolocar" | ||
target: "ua/#what-is-a-tolocar" | ||
|
||
- title: Проєкти та спільнота | ||
target: "/ua/#projects-community" | ||
target: "ua/#projects-community" | ||
|
||
- title: Makerspace Academy | ||
target: "/en/academy" | ||
target: "ua/academy" | ||
|
||
- title: Контакти | ||
target: "mailto:[email protected]" | ||
|
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