Skip to content

Commit

Permalink
tiny adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue committed Nov 28, 2023
1 parent 8ef54d3 commit 00b73d1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion shared/locales/de/website-about-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"color": "secondary"
}
],
"subtitle": "Wir sind der Meinung, dass 100 % der wieder­kehrenden Spenden Menschen in Not zugute kommen sollen. ",
"subtitle": "Wir sind der Meinung, dass 100% der wieder­kehrenden Spenden Menschen in Not zugute kommen sollen.",
"paragraphs": [
"Wir haben einen Weg gefunden, dieses Versprechen einzulösen: Unsere Betriebskosten und Finanzierungsaufwendungen werden durch philanthropische Zuschüsse und institutionelle Spenden gedeckt.",
"Dank dieser Unterstützung können wir garantieren, dass 100 % der Beiträge unserer individuellen Spender*innen bei den Empfänger:innen ankommt."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ export async function HundredPercentModel({ lang }: { lang: WebsiteLanguage }) {
size="2xl"
weight="medium"
className="hyphens-manual"
lang="de"
dangerouslySetInnerHTML={{ __html: translator.t('100-percent-model.subtitle') }}
></Typography>
/>
<div className="flex flex-col space-y-4 md:col-span-2">
{translator.t<string[]>('100-percent-model.paragraphs').map((text, index) => (
<Typography key={index} size="lg">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function FlowOfFunds({ lang }: { lang: WebsiteLanguage }) {
<div className="md:col-span-2">
<div className="flex flex-col space-y-4">
<div className="mx-auto w-full max-w-3xl">
<div className="aspect-w-16 aspect-h-9 overflow-hidden rounded-xl">
<div className="aspect-video overflow-hidden rounded-xl">
<VimeoVideo videoId={translator.t('flow-of-funds.vimeo-video-id')} />
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ export default async function Team({ lang }: { lang: WebsiteLanguage }) {
<Typography as="h3" size="xl" color="muted-foreground" className="mb-4">
{translator.t('team.header')}
</Typography>
<p className="mb-8 lg:mb-16">
<Typography size="4xl" weight="bold">
{translator.t<{ text: string; color?: FontColor }[]>('team.title').map((title, index) => (
<Typography as="span" key={index} size="4xl" weight="bold" color={title.color}>
<Typography as="span" key={index} color={title.color}>
{title.text}
</Typography>
))}
</p>
</Typography>
<div className="mt-10 space-y-16">
{groups.map((group, index1) => (
<div key={index1}>
Expand All @@ -132,7 +132,7 @@ export default async function Team({ lang }: { lang: WebsiteLanguage }) {
<Typography size="xl" weight="medium">
{translator.t(`team.groups.${group.name}.subtitle`)}
</Typography>
<div className="flex flex-col space-y-4 md:col-span-2">
<div className="md:col-span-2">
<Typography size="lg" className="mb-8">
{translator.t(`team.groups.${group.name}.description`)}
</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function TransparencyCharts({
lang,
currency,
}: ContributionStatsProps) {
const translator = useTranslator(lang, 'website-transparency');
const translator = useTranslator(lang, 'website-finances');

return (
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CountryCard, CountryCardList } from './section-3-cards';
export async function Section3({ params, contributionStats }: SectionProps) {
const translator = await Translator.getInstance({
language: params.lang,
namespaces: ['countries', 'website-transparency'],
namespaces: ['countries', 'website-finances'],
});
const totalContributionsByCountry = contributionStats.totalContributionsByCountry as {
country: string;
Expand Down

0 comments on commit 00b73d1

Please sign in to comment.