Skip to content

Commit

Permalink
feature(website): mobile app download page (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssandino authored Jul 10, 2024
1 parent 9f99149 commit f3be785
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shared/locales/de/website-app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"title": "Mobile App für Empfänger:innen",
"subtitle": "Mit der App kannst du Zahlungen von Social Income einfach verwalten, Umfragen ausfüllen und deine Daten aktualisieren.",
"android": "Hast du ein Android Telefon?",
"apple": "Hast du ein iPhone?"
}
6 changes: 6 additions & 0 deletions shared/locales/en/website-app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"title": "Mobile App for Recipients",
"subtitle": "Recipients with a smartphone can easily manage their payments, complete surveys and update their personal information all in one place.",
"android": "Recipients with an Android phone",
"apple": "Recipients with an iPhone"
}
6 changes: 6 additions & 0 deletions shared/locales/it/website-app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"title": "App mobile per destinatari",
"subtitle": "I destinatari con uno smartphone possono gestire facilmente i loro pagamenti, completare sondaggi e aggiornare le loro informazioni personali tutto in un unico posto.",
"android": "Destinatari con un telefono Android",
"apple": "Destinatari con un iPhone"
}
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.
55 changes: 55 additions & 0 deletions website/src/app/[lang]/[region]/(website)/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import { DefaultPageProps } from '@/app/[lang]/[region]';
import { Translator } from '@socialincome/shared/src/utils/i18n';
import { BaseContainer, Typography } from '@socialincome/ui';
import Image from 'next/image';
import Link from 'next/link';
import Applestore from './(assets)/applestore.svg';
import Playstore from './(assets)/playstore.svg';

export default async function Page({ params }: DefaultPageProps) {
const translator = await Translator.getInstance({
language: params.lang,
namespaces: ['website-app'],
});

return (
<BaseContainer className="flex flex-col items-start space-y-8 pt-16">
<div className="flex flex-col space-y-8">
<Typography as="h1" size="5xl" weight="bold" className="mx-auto text-center">
{translator.t('title')}
</Typography>
<Typography as="h2" size="xl" className="mx-auto w-2/3 text-center">
{translator.t('subtitle')}
</Typography>
</div>
<div className="container mx-auto pb-24 pt-1 md:pt-6">
<div className="flex flex-col md:flex-row">
<div className="m-2 flex flex-col items-center justify-center p-4 md:w-1/2">
<Typography as="h2" size="xl" className="pb-4">
{translator.t('android')}
</Typography>
<Link
href="https://play.google.com/store/apps/details?id=org.socialincome.app"
target="_blank"
rel="noopener noreferrer"
>
<Image src={Playstore} width={150} height={50} alt="Playstore Button" />
</Link>
</div>
<div className="m-2 flex flex-col items-center justify-center p-4 md:w-1/2">
<Typography as="h2" size="xl" className="pb-4">
{translator.t('apple')}
</Typography>
<Link
href="https://apps.apple.com/app/social-income/id6444860109"
target="_blank"
rel="noopener noreferrer"
>
<Image src={Applestore} width={150} height={50} alt="Appstore Button" />
</Link>
</div>
</div>
</div>
</BaseContainer>
);
}

0 comments on commit f3be785

Please sign in to comment.