Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(website): mobile app download page #860

Merged
merged 9 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
);
}
Loading