Skip to content

Commit

Permalink
fix: translations
Browse files Browse the repository at this point in the history
  • Loading branch information
pReya committed Dec 10, 2024
1 parent 0233b58 commit 7554397
Show file tree
Hide file tree
Showing 6 changed files with 145 additions and 26 deletions.
43 changes: 20 additions & 23 deletions src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const Navigation: React.FC<NavigationProps> = ({
/>
</PopoverGroup>
</nav>
<div className="flex items-center md:hidden bg-white box-border z-20 px-1">
<div className="flex items-center md:hidden bg-white box-border z-20 p-1">
{showOverlayMenu && (
<LanguageSwitcher
path={path}
Expand Down Expand Up @@ -304,28 +304,25 @@ const OverlayMenu: React.FC<OverlayMenuProps> = ({ menu, show }) => {
<div className="bg-white ring-1 ring-black ring-opacity-5 overflow-hidden">
<div className="mt-16 py-10 px-5">
<ul className="flex flex-col gap-2 md:gap-5">
{menu?.map(
(menuItem) =>
!menuItem.hideInHeader && (
<MenuListItem
key={menuItem.title}
target={menuItem.target}
title={menuItem.title}
newTab={menuItem.newTab}
>
{menuItem.children?.map((subMenuItem) => {
return (
<MenuListItem
key={subMenuItem.title}
target={subMenuItem.target}
title={subMenuItem.title}
newTab={subMenuItem.newTab}
/>
);
})}
</MenuListItem>
)
)}
{menu?.map((menuItem) => (
<MenuListItem
key={menuItem.title}
target={menuItem.target}
title={menuItem.title}
newTab={menuItem.newTab}
>
{menuItem.children?.map((subMenuItem) => {
return (
<MenuListItem
key={subMenuItem.title}
target={subMenuItem.target}
title={subMenuItem.title}
newTab={subMenuItem.newTab}
/>
);
})}
</MenuListItem>
))}
</ul>
</div>
</div>
Expand Down
7 changes: 6 additions & 1 deletion src/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
{
"title": "Get involved",
"hideInFooter": true,
"children": [
{
"title": "Makers Empowerment Hubs",
Expand All @@ -19,6 +20,7 @@
},
{
"title": "Interventions",
"hideInFooter": true,
"children": [
{
"title": "Building Makerspaces",
Expand Down Expand Up @@ -56,6 +58,7 @@
},
{
"title": "Resources",
"hideInFooter": true,
"children": [
{
"title": "Playbook",
Expand All @@ -74,6 +77,7 @@
},
{
"title": "Community",
"hideInFooter": true,
"children": [
{
"title": "Project Partners",
Expand All @@ -92,6 +96,7 @@
{
"title": "Contact",
"target": "en/contact",
"hideInHeader": true
"hideInHeader": true,
"hideInFooter": true
}
]
7 changes: 6 additions & 1 deletion src/menu_ua.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
{
"title": "Діючі програми",
"hideInFooter": true,
"children": [
{
"title": "Мейкери для відновлення",
Expand All @@ -19,6 +20,7 @@
},
{
"title": "Проєкти та ініціативи",
"hideInFooter": true,
"children": [
{
"title": "Побудова майстерень",
Expand Down Expand Up @@ -55,7 +57,8 @@
]
},
{
"title": "Інфоосвітні ресурси ",
"title": "Інфоосвітні ресурси",
"hideInFooter": true,
"children": [
{
"title": "Playbook",
Expand All @@ -74,6 +77,7 @@
},
{
"title": "Спільнота",
"hideInFooter": true,
"children": [
{
"title": "Партнери проєкту",
Expand All @@ -92,6 +96,7 @@
{
"title": "Контакти",
"target": "ua/contact",
"hideInFooter": true,
"hideInHeader": true
}
]
2 changes: 1 addition & 1 deletion src/pages/en/community/partners.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ darkFooter: true
import { HeaderLogo, Footer, CommunityBanner, CommunityGridCard, ContentSection, CommunityHeader} from "@components";
import WideCard from "@components/WideCardWrapper.astro"

<CommunityHeader title="Project partners" text="TOLOCAR is a project funded by the German Federal Ministry for Economic Cooperation and Development (BMZ) and implemented by the German Institute HIWW with support from the Deutsche Gesellschaft für internationale Zusammenarbeit (GIZ) GmbH in close collaboration with its Ukrainian and international partners."/>
<CommunityHeader title="Project partners" text="TOLOCAR is a component of the project «GovTech and Transparency in Ukraine» funded by the German Federal Ministry for Economic Cooperation and Development (BMZ) and implemented by Deutsche Gesellschaft für internationale Zusammenarbeit (GIZ) GmbH in close collaboration with Ukrainian and international partners."/>

<ContentSection variant="white" id="partners">
{/* <CommunityBanner title="Project partners" text="TOLOCAR is a project funded by the German Federal Ministry for Economic Cooperation and Development (BMZ) and implemented by the German Institute HIWW with support from the Deutsche Gesellschaft für internationale Zusammenarbeit (GIZ) GmbH in close collaboration with its Ukrainian and international partners." bg={1}/> */}
Expand Down
34 changes: 34 additions & 0 deletions src/pages/ua/contact.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: "@layouts/BaseLayoutMarkdown.astro"
title: Контакти
darkFooter: true
darkNavigation: true
---

import { ButtonLink } from "@components";

<div class="w-full bg-neutral-50">
<h1 class="mt-40 container-width text-5xl font-semibold font-aktiv">Contact</h1>
<p class="container-width mt-10 mb-20 text-lg">Ви можете звернутися до нас за вказаними нижче контактами. </p>
</div>

<div class="container-width my-20 custom-prose h-full">

## Будемо раді поспілкуватися

Якщо у вас є запитання, ідеї, пропозиції щодо співпраці, коментарі або інші питання для обговорення, будь ласка, звертайтеся до нас електронною поштою. Ми з радістю відповімо Вам!

<br/><br/>
<ButtonLink
target="mailto:[email protected]"
caption="[email protected]"
variant="dark"
className="not-prose"
/>

<br/><br/>

<img src="images/contact/tolocar_team.jpg" />

</div>

Loading

0 comments on commit 7554397

Please sign in to comment.