diff --git a/.gitignore b/.gitignore index a600850c7..f8ce9d275 100644 --- a/.gitignore +++ b/.gitignore @@ -33,5 +33,9 @@ ignored/ # VSCode .vscode/ +# vim IDE +*.swp +tags + recipients_app/android/app/src/main/google-services.json recipients_app/android/app/google-services.json diff --git a/shared/locales/de/website-home2.json b/shared/locales/de/website-home2.json new file mode 100644 index 000000000..8e1b6dca0 --- /dev/null +++ b/shared/locales/de/website-home2.json @@ -0,0 +1,122 @@ +{ + "metadata": { + "title": "Social Income", + "description": "Change from human to human. From mobile to mobile.", + "og-image": "/assets/metadata/og/default.jpg", + "twitter-image": "/assets/metadata/twitter/default.jpg" + }, + "section-1": { + "title-1": [ + { "text": "How many people can you lift out of poverty " }, + { "text": "with only 1%", "color": "accent" }, + { "text": "of your income" } + ] + }, + "section-2": { + "title-1": "Those that live in Sierra Leone’s poorest communities know what it takes to rise out of poverty.", + "title-2": [ + { "text": "They just rarely have the opportunity – or the money – to do so. That’s where " }, + { "text": "you and Social Income", "color": "accent" }, + { "text": "come in." } + ], + "title-3": "Unique Process for Fair Selection", + "text-3.1": "Identifying those in need: Through collaboration with local NGOs in Sierra Leone, we target individuals living in poverty who can benefit from a three-year predictable income, empowering them to invest in their future.", + "text-3.2": "Selecting randomly: Our randomized selection process is transparent and publicly verifiable, eliminating human biases and favoritism. This ensures fairness and equal chances for all individuals in poverty to benefit.", + "title-4": "Direct Giving, Direct Results", + "text-4": "We directly transfer your contribution onto the mobile phones of individuals in need, empowering them to overcome poverty through their own choices and efforts.", + "title-5": "Ongoing Support", + "text-5": "Our recipients receive continuous support from our local partners throughout and even after the program, maximizing the overall impact. Specifically, the third year of the program is focused on facilitating a seamless transition as they move on from the program." + }, + "section-3": {}, + "section-4": { + "title-1": [ + { "text": "What would change if you gave " }, + { "text": "away 1% of your income every month?", "color": "accent" } + ], + "cta": "Watch video and find out" + }, + "section-5": { + "title-1": [{ "text": "Change from human to human. " }, { "text": "From mobile to mobile.", "color": "accent" }], + "subtitle-1": "Social Income is a new way to fight poverty in the Global South. Digital, efficient and mobile." + }, + "section-6": { + "title-1": "Das hört sich gut an, aber...", + "questions": [ + { + "prompt": "Sind direkte Cash-Transfers ein effektiver Weg zur Armutsbekämpfung?", + "answer": "Es besteht ein breiter Konsens über den Nutzen und den langfristigen Erfolg von Cash-Transfer-Programmen. In unserer Rubrik Evidenz bieten wir einen Überblick über die neueste wissenschaftliche Literatur.", + "links": [ + { + "title": "Rubrik Evidenz", + "href": "/evidence" + }, + { + "title": "Policy Brief: Impacts of Unconditional Cash Transfers", + "href": "https://drive.google.com/file/d/1xn4BvrEHZjSUGpNZLHjIc2YYnwq399jR/view" + }, + { + "title": "GiveDirectly's Cash Evidence Explorer", + "href": "https://www.givedirectly.org/cash-evidence-explorer/" + } + ] + }, + { + "prompt": "Ist es hilfreich, Menschen in Not Geld zu schicken?", + "answer": "Es ist definitiv hilfreicher, als gar kein Geld zu senden. Viele Menschen setzen sich heutzutage für Chancengleichheit im Erwerbsleben ein. Dies ist zweifellos ein Ziel, wofür es sich einzusetzen lohnt. Allerdings wird dabei leider allzu oft der Umstand ignoriert, dass vielerorts ein Angestelltenverhältnis, wie wir es typischerweise kennen, weder möglich, noch erreichbar ist. Geldspenden können helfen, diese Barriere schrittweise aufzuheben, indem Menschen in Armut der Zugang zu Aus- und Weiterbildung, Arbeit und akzeptablen Lebensbedingungen verschafft wird.", + "links": [ + { + "title": "Government of Malawi’s unconditional cash transfer improves youth mental health", + "href": "https://drive.google.com/file/d/1GKBdHjD80Jv7lZJmKvouZv8Z7MgLw_HL/view" + }, + { + "title": "Can unconditional cash transfers raise long-term living standards? Evidence from Zambia", + "href": "https://drive.google.com/file/d/1HwSLDlml0yyHrCrv8Y7pkqxz2orM02Lc/view" + } + ] + }, + { + "prompt": "Kann Social Income zu mehr Gerechtigkeit beitragen?", + "answer": "Social Income ist keine Theorie der Gleichheit, sondern ein Akt der Solidarität. Wir sind hier, um die Welt fairer zu machen, indem wir uns dem immensen Unterschied zwischen zwischen arm und reich annehmen und ganz konkret eine einfache und wirksame Umverteilung ermöglichen. Diese Umverteilung hilft Menschen in Not, selbstbestimmt Veränderungen einzuleiten und einen gewissen Grad finanzieller Unabhängigkeit zu erlangen." + }, + { + "prompt": "Wie werden die Empfänger:innen ausgewählt?", + "answer": "Wir bestimmen mögliche neue Empfänger:innen aufgrund der Vorarbeit unserer lokalen Kontaktpersonen und Vorschläge von Partnern und lokalen NGOs: i.e. Aurora Foundation, Reachout Salone, Equal Rights Alliance, United Polio Brothers und Sisters und Jamyl & Nyanga Jaward Foundation. Unsere Kriterien sind einfach: Die Empfänger müssen älter als 16 Jahre sein und aus einer einkommensschwachen Community stammen.Als übergeordnetes Prinzip verpflichten wir uns, Menschen in Not zu unterstützen und halten uns dabei strikt an ein ausgeglichenes Geschlechterverhältnis." + }, + { + "prompt": "Wie werden die Empfänger:innen ausgewählt?", + "answer": "Wir bestimmen mögliche neue Empfänger:innen aufgrund der Vorarbeit unserer lokalen Kontaktpersonen und Vorschläge von Partnern und lokalen NGOs: i.e. Aurora Foundation, Reachout Salone, Equal Rights Alliance, United Polio Brothers und Sisters und Jamyl & Nyanga Jaward Foundation. Unsere Kriterien sind einfach: Die Empfänger müssen älter als 16 Jahre sein und aus einer einkommensschwachen Community stammen.Als übergeordnetes Prinzip verpflichten wir uns, Menschen in Not zu unterstützen und halten uns dabei strikt an ein ausgeglichenes Geschlechterverhältnis." + } + ], + "cta": "Alle FAQ" + }, + "section-7": { + "title-1": "Social Income combines three approaches to change." + }, + "section-8": { + "title-1": [ + { "text": "Unique Recipients Selection Process for " }, + { "text": "Fair Selection.", "color": "accent" } + ], + "text-1.1": "Identifying those in need: Through collaboration with local NGOs in Sierra Leone, we target individuals living in poverty who can benefit from a three-year predictable income, empowering them to invest in their future.", + "text-1.2": "Selecting randomly: Our randomized selection process is transparent and publicly verifiable, eliminating human biases and favoritism. This ensures fairness and equal chances for all individuals in poverty to benefit." + }, + "section-9": { + "testimonial-1": "It’s a great example of redistribution of wealth based on solidarity and enabled by today's technology.", + "author-1": "Vanja, Switzerland", + "testimonial-2": "We are living in a world of opportunities, let's make sure we share this privilege with everyone else.", + "author-2": "Carlos, United States", + "testimonial-3": "I contribute to Social Income not only because it's simple, but because research has shown it's extremely effective.", + "author-3": "Ruben, Switzerland", + "testimonial-4": "The question is not why to get involved, but how to possibly abide not doing so. Social Income is an urgent necessity in contemporary society.", + "author-4": "Han, United States", + "testimonial-5": "Today's global inequality is the consequence of centuries of unequal progress. Social Income is a new way to address this.", + "author-5": "Claudia, Switzerland" + }, + "section-10": { + "title-1": [{ "text": "Contribute to the United Nations’ " }, { "text": "United Nations’", "color": "primary" }], + "sdg-1-title": "End poverty in all its forms, everywhere.", + "sdg-1": "SDG #1", + "sdg-10-title": "Reduce inequality within and \namong countries.", + "sdg-10": "SDG #10" + } +} diff --git a/shared/locales/en/website-home2.json b/shared/locales/en/website-home2.json index 184e39667..d4adf3314 100644 --- a/shared/locales/en/website-home2.json +++ b/shared/locales/en/website-home2.json @@ -19,13 +19,13 @@ { "text": "you and Social Income", "color": "accent" }, { "text": "come in." } ], - "subtitle-1": "Unique Process for Fair Selection", - "text-1.1": "Identifying those in need: Through collaboration with local NGOs in Sierra Leone, we target individuals living in poverty who can benefit from a three-year predictable income, empowering them to invest in their future.", - "text-1.2": "Selecting randomly: Our randomized selection process is transparent and publicly verifiable, eliminating human biases and favoritism. This ensures fairness and equal chances for all individuals in poverty to benefit.", - "subtitle-2": "Direct Giving, Direct Results", - "text-2": "We directly transfer your contribution onto the mobile phones of individuals in need, empowering them to overcome poverty through their own choices and efforts.", - "subtitle-3": "Ongoing Support", - "text-3": "Our recipients receive continuous support from our local partners throughout and even after the program, maximizing the overall impact. Specifically, the third year of the program is focused on facilitating a seamless transition as they move on from the program." + "title-3": "Unique Process for Fair Selection", + "text-3.1": "Identifying those in need: Through collaboration with local NGOs in Sierra Leone, we target individuals living in poverty who can benefit from a three-year predictable income, empowering them to invest in their future.", + "text-3.2": "Selecting randomly: Our randomized selection process is transparent and publicly verifiable, eliminating human biases and favoritism. This ensures fairness and equal chances for all individuals in poverty to benefit.", + "title-4": "Direct Giving, Direct Results", + "text-4": "We directly transfer your contribution onto the mobile phones of individuals in need, empowering them to overcome poverty through their own choices and efforts.", + "title-5": "Ongoing Support", + "text-5": "Our recipients receive continuous support from our local partners throughout and even after the program, maximizing the overall impact. Specifically, the third year of the program is focused on facilitating a seamless transition as they move on from the program." }, "section-3": {}, "section-4": { @@ -41,13 +41,90 @@ }, "section-6": { "title-1": "This sounds good, but ... ", - "question-1": [{ "question": "Is it working" }, { "answer": "XXX" }], + "questions": [ + { + "prompt": "Are direct cash payments an effective way to fight poverty?", + "answer": "There is a wide consensus around the benefits and long-term success of direct giving programs. We offer an overview of the latest scientific literature in our Evidence section.", + "links": [ + { + "title": "Evidence section", + "href": "/evidence" + }, + { + "title": "Policy Brief: Impacts of Unconditional Cash Transfers", + "href": "https://drive.google.com/file/d/1xn4BvrEHZjSUGpNZLHjIc2YYnwq399jR/view" + }, + { + "title": "GiveDirectly's Cash Evidence Explorer", + "href": "https://www.givedirectly.org/cash-evidence-explorer/" + } + ] + }, + { + "prompt": "Is it helpful to send money to people in need?", + "answer": "It’s definitely more helpful than sending no money at all. Many people today advocate for equal opportunity in employment. This is obviously a goal worth aiming for, but it tends to ignore the fact that for many people born in the world’s poorest countries, employment as it is typically understood isn’t even possible or accessible. Giving money can help break down this barrier and give more people living in poverty access to work, education, and decent living conditions.", + "links": [ + { + "title": "Government of Malawi’s unconditional cash transfer improves youth mental health", + "href": "https://drive.google.com/file/d/1GKBdHjD80Jv7lZJmKvouZv8Z7MgLw_HL/view" + }, + { + "title": "Can unconditional cash transfers raise long-term living standards? Evidence from Zambia", + "href": "https://drive.google.com/file/d/1HwSLDlml0yyHrCrv8Y7pkqxz2orM02Lc/view" + } + ] + }, + { + "prompt": "Can Social Income create equality?", + "answer": "Social Income isn’t a theory of equality. It’s here to help make the world more fair, by taking advantage of the immense gap between rich and poor to carry out a simple, direct redistribution based on solidarity. It also helps contribute to self-driven change and a certain degree of financial independence for people in need. This process only works as long as inequality continues to exist; as soon as the distribution of wealth across the world becomes balanced, Social Income will no longer be useful." + }, + { + "prompt": "How are recipients chosen?", + "answer": "We determine possible new recipients thanks to the groundwork of our local advocates and partnerships with local NGOs: Aurora Foundation, Reachout Salone and Jamyl & Nyanga Jaward Foundation. Our criterias are simple: recipients must be older than 16 and come from a low income community. One other major principle is to keep up a strict gender balance/equality and to support people in need." + }, + { + "prompt": "How are recipients chosen?", + "answer": "We determine possible new recipients thanks to the groundwork of our local advocates and partnerships with local NGOs: Aurora Foundation, Reachout Salone and Jamyl & Nyanga Jaward Foundation. Our criterias are simple: recipients must be older than 16 and come from a low income community. One other major principle is to keep up a strict gender balance/equality and to support people in need." + } + ], "cta": "All FAQ" }, "section-7": { - "title-1": "Social Income combines three approaches to change." + "title-1": "Social Income combines three approaches to change.", + "cards": [ + { + "category": "Concept", + "title": "Universal Basic Income", + "points": [ + { "text": "Reduces discrimination" }, + { "text": "Fights income inequality" }, + { "text": "Empowers marginalized groups" }, + { "text": "Improves working conditions" } + ] + }, + { + "category": "Method", + "title": "Direct Cash Transfers", + "points": [ + { "text": "Reduces discrimination" }, + { "text": "Fights income inequality" }, + { "text": "Empowers marginalized groups" }, + { "text": "Improves working conditions" } + ] + }, + { + "category": "Technology", + "title": "Mobile Banking", + "points": [ + { "text": "Reduces discrimination" }, + { "text": "Fights income inequality" }, + { "text": "Empowers marginalized groups" }, + { "text": "Improves working conditions" } + ] + } + ] }, - "section-8": { + "section-x": { "title-1": [ { "text": "Unique Recipients Selection Process for " }, { "text": "Fair Selection.", "color": "accent" } @@ -55,9 +132,14 @@ "text-1.1": "Identifying those in need: Through collaboration with local NGOs in Sierra Leone, we target individuals living in poverty who can benefit from a three-year predictable income, empowering them to invest in their future.", "text-1.2": "Selecting randomly: Our randomized selection process is transparent and publicly verifiable, eliminating human biases and favoritism. This ensures fairness and equal chances for all individuals in poverty to benefit." }, - "section-9": { - "testimonial-1": "It’s a great example of redistribution of wealth based on solidarity and enabled by today's technology.", - "author-1": "Vanja, Switzerland", + "section-8": { + "portraits": [ + { + "name": "Vanja", + "country": "Switzerland", + "text": "It’s a great example of redistribution of wealth based on solidarity and enabled by today's technology." + } + ], "testimonial-2": "We are living in a world of opportunities, let's make sure we share this privilege with everyone else.", "author-2": "Carlos, United States", "testimonial-3": "I contribute to Social Income not only because it's simple, but because research has shown it's extremely effective.", diff --git a/ui/src/components/accordion2.tsx b/ui/src/components/accordion2.tsx new file mode 100644 index 000000000..72549bd38 --- /dev/null +++ b/ui/src/components/accordion2.tsx @@ -0,0 +1,56 @@ +'use client'; + +import * as AccordionPrimitive from '@radix-ui/react-accordion'; +import { ChevronDown } from 'lucide-react'; +import * as React from 'react'; + +import { cn } from '../lib/utils'; + +const Accordion = AccordionPrimitive.Root; + +const AccordionItem = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +AccordionItem.displayName = 'AccordionItem'; + +const AccordionTrigger = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + svg]:rotate-180', + className, + )} + {...props} + > + {children} + + + +)); +AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName; + +const AccordionContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + +
{children}
+
+)); +AccordionContent.displayName = AccordionPrimitive.Content.displayName; + +export { Accordion, AccordionContent, AccordionItem, AccordionTrigger }; diff --git a/website/src/app/[lang]/[region]/v2/(home)/(assets)/avatarImgData.jpg b/website/src/app/[lang]/[region]/v2/(home)/(assets)/avatarImgData.jpg new file mode 100644 index 000000000..f1fab92f7 Binary files /dev/null and b/website/src/app/[lang]/[region]/v2/(home)/(assets)/avatarImgData.jpg differ diff --git a/website/src/app/[lang]/[region]/v2/(home)/(components)/approach-cards.tsx b/website/src/app/[lang]/[region]/v2/(home)/(components)/approach-cards.tsx new file mode 100644 index 000000000..029f7eb16 --- /dev/null +++ b/website/src/app/[lang]/[region]/v2/(home)/(components)/approach-cards.tsx @@ -0,0 +1,36 @@ +'use client'; +import { Card, CardContent, CardHeader, Typography } from '@socialincome/ui'; + +type ApproachCardProps = { + category: string; + title: string; + points: { + text: string; + }[]; +}; + +export function ApproachCard({ category, title, points }: ApproachCardProps) { + return ( + + + + {category} + + + {title} + + + +
    + {points.map((point, key) => { + return ( +
  • + {point.text} +
  • + ); + })} +
+
+
+ ); +} diff --git a/website/src/app/[lang]/[region]/v2/(home)/(components)/contributors-people-carousel.tsx b/website/src/app/[lang]/[region]/v2/(home)/(components)/contributors-people-carousel.tsx new file mode 100644 index 000000000..f6a15e928 --- /dev/null +++ b/website/src/app/[lang]/[region]/v2/(home)/(components)/contributors-people-carousel.tsx @@ -0,0 +1,67 @@ +'use client'; +import { useScreenSize } from '@/hooks/useScreenSize'; +import { Card, CardFooter, CardHeader, Carousel, CarouselContent, Typography } from '@socialincome/ui'; +import { StaticImport } from 'next/dist/shared/lib/get-img-props'; +import Image from 'next/image'; + +type PortraitProps = { + name: string; + text: string; + country: string; + image: string | StaticImport; +}; + +function Portrait({ name, text, country, image }: PortraitProps) { + return ( + + + + {text} + + + + {`${name} + + {name}, {country} + + + + ); +} + +export function ContributorsPeopleCarouselv2({ portraits }: { portraits: PortraitProps[] }) { + const screenSize = useScreenSize(); + + let slidesToScroll; + switch (screenSize) { + case null: + case 'xs': + slidesToScroll = 1; + break; + case 'sm': + case 'md': + slidesToScroll = 2; + break; + default: + slidesToScroll = 3; + break; + } + + return ( + + {portraits.map((portrait, index) => ( + + + + ))} + + ); +} diff --git a/website/src/app/[lang]/[region]/v2/(home)/(sections)/approach.tsx b/website/src/app/[lang]/[region]/v2/(home)/(sections)/approach.tsx index 87d31e2e3..a69d3a3f6 100644 --- a/website/src/app/[lang]/[region]/v2/(home)/(sections)/approach.tsx +++ b/website/src/app/[lang]/[region]/v2/(home)/(sections)/approach.tsx @@ -1,16 +1,33 @@ import { DefaultParams } from '@/app/[lang]/[region]'; import { Translator } from '@socialincome/shared/src/utils/i18n'; import { BaseContainer, Typography } from '@socialincome/ui'; +import { ApproachCard } from '../(components)/approach-cards'; + +type ApproachCardProps = { + category: string; + title: string; + points: { + text: string; + }[]; +}; export async function Approach({ lang, region }: DefaultParams) { const translator = await Translator.getInstance({ language: lang, namespaces: ['website-home2'], }); + const cards = translator.t('section-7.cards'); return ( - - {translator.t('section-7.title-1')} + + + {translator.t('section-7.title-1')} + +
+ {cards.map((card, key) => { + return ; + })} +
); } diff --git a/website/src/app/[lang]/[region]/v2/(home)/(sections)/faq.tsx b/website/src/app/[lang]/[region]/v2/(home)/(sections)/faq.tsx index ee7127dd4..c66c65252 100644 --- a/website/src/app/[lang]/[region]/v2/(home)/(sections)/faq.tsx +++ b/website/src/app/[lang]/[region]/v2/(home)/(sections)/faq.tsx @@ -1,7 +1,22 @@ import { DefaultParams } from '@/app/[lang]/[region]'; import { Translator } from '@socialincome/shared/src/utils/i18n'; import { BaseContainer, Typography } from '@socialincome/ui'; -import { FontColor } from '@socialincome/ui/src/interfaces/color'; +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, +} from '@socialincome/ui/src/components/accordion2'; +import Link from 'next/link'; + +type FaqQuestion = { + prompt: string; + answer: string; + links: { + title: string; + href: string; + }[]; +}; export async function Faq({ lang, region }: DefaultParams) { const translator = await Translator.getInstance({ @@ -9,17 +24,44 @@ export async function Faq({ lang, region }: DefaultParams) { namespaces: ['website-home2'], }); + const questions = translator.t('section-6.questions'); + return ( - {translator.t('section-6.title-1')} -
- {translator.t<{ text: string; color?: FontColor }[]>('section-6.question-1').map((title, index) => ( - - {title.text}{' '} - + + {translator.t('section-6.title-1')} + +
+ + {questions.map((question, index) => ( + + + {question.prompt} + + + {question.answer} + {question.links && ( +
    + {question.links?.map((link, index2) => ( +
  • + + + {link.title} + + +
  • + ))} +
+ )} +
+
))} -
- {translator.t('section-6.cta')} + + + + {translator.t('section-6.cta') + ' ›'} + +
); } diff --git a/website/src/app/[lang]/[region]/v2/(home)/(sections)/overview.tsx b/website/src/app/[lang]/[region]/v2/(home)/(sections)/overview.tsx index e163b6c71..056fd39e3 100644 --- a/website/src/app/[lang]/[region]/v2/(home)/(sections)/overview.tsx +++ b/website/src/app/[lang]/[region]/v2/(home)/(sections)/overview.tsx @@ -10,24 +10,43 @@ export async function Overview({ lang, region }: DefaultParams) { }); return ( - - + + {translator.t('section-2.title-1')} -
+
{translator.t<{ text: string; color?: FontColor }[]>('section-2.title-2').map((title, index) => ( - + {title.text}{' '} ))}
- {translator.t('section-2.subtitle-1')} - {translator.t('section-2.text-1.1')} - {translator.t('section-2.text-1.2')} - {translator.t('section-2.subtitle-2')} - {translator.t('section-2.text-2')} - {translator.t('section-2.subtitle-3')} - {translator.t('section-2.text-3')} + + {translator.t('section-2.title-3')} + +
    +
  1. + {translator.t('section-2.text-3.1')} +
  2. +
  3. + {translator.t('section-2.text-3.2')} +
  4. +
+ + {translator.t('section-2.title-4')} + + {translator.t('section-2.text-4')} + + {translator.t('section-2.title-5')} + + {translator.t('section-2.text-5')} ); } diff --git a/website/src/app/[lang]/[region]/v2/(home)/(sections)/quotes.tsx b/website/src/app/[lang]/[region]/v2/(home)/(sections)/quotes.tsx index d72bcc846..1cc6596b2 100644 --- a/website/src/app/[lang]/[region]/v2/(home)/(sections)/quotes.tsx +++ b/website/src/app/[lang]/[region]/v2/(home)/(sections)/quotes.tsx @@ -1,6 +1,16 @@ import { DefaultParams } from '@/app/[lang]/[region]'; import { Translator } from '@socialincome/shared/src/utils/i18n'; import { BaseContainer } from '@socialincome/ui'; +import { StaticImport } from 'next/dist/shared/lib/get-img-props'; +import avatarImgData from '../(assets)/avatarImgData.jpg'; +import { ContributorsPeopleCarouselv2 } from '../(components)/contributors-people-carousel'; + +type PortraitProps = { + name: string; + text: string; + country: string; + image: string | StaticImport; +}; export async function Quotes({ lang, region }: DefaultParams) { const translator = await Translator.getInstance({ @@ -8,9 +18,36 @@ export async function Quotes({ lang, region }: DefaultParams) { namespaces: ['website-home2', 'common'], }); + const portrait: PortraitProps[] = [ + { + name: 'Vanja', + text: "It's a great example of redistribution of wealth based on solidarity and enabled by today's technology.", + country: 'Switzerland', + image: avatarImgData, + }, + { + name: 'Vanja', + text: "It's a great example of redistribution of wealth based on solidarity and enabled by today's technology.", + country: 'Switzerland', + image: avatarImgData, + }, + { + name: 'Vanja', + text: "It's a great example of redistribution of wealth based on solidarity and enabled by today's technology.", + country: 'Switzerland', + image: avatarImgData, + }, + { + name: 'Vanja', + text: "It's a great example of redistribution of wealth based on solidarity and enabled by today's technology.", + country: 'Switzerland', + image: avatarImgData, + }, + ]; + return ( - -
Quotes carousel section
+ + ); } diff --git a/website/src/app/[lang]/[region]/v2/(home)/page.tsx b/website/src/app/[lang]/[region]/v2/(home)/page.tsx index fea4154f5..c3085ab24 100644 --- a/website/src/app/[lang]/[region]/v2/(home)/page.tsx +++ b/website/src/app/[lang]/[region]/v2/(home)/page.tsx @@ -1,17 +1,9 @@ import { DefaultPageProps } from '@/app/[lang]/[region]'; -import { Approach } from '@/app/[lang]/[region]/v2/(home)/(sections)/approach'; -import { ExplainerVideo } from '@/app/[lang]/[region]/v2/(home)/(sections)/explainer-video'; import { Faq } from '@/app/[lang]/[region]/v2/(home)/(sections)/faq'; -import { HeroVideo } from '@/app/[lang]/[region]/v2/(home)/(sections)/hero-video'; -import { Journal } from '@/app/[lang]/[region]/v2/(home)/(sections)/journal'; -import { MobileIllustration } from '@/app/[lang]/[region]/v2/(home)/(sections)/mobile-illustration'; -import { MonthlyIncome } from '@/app/[lang]/[region]/v2/(home)/(sections)/monthly-income'; -import { Overview } from '@/app/[lang]/[region]/v2/(home)/(sections)/overview'; import { Quotes } from '@/app/[lang]/[region]/v2/(home)/(sections)/quotes'; -import { RecipientSelection } from '@/app/[lang]/[region]/v2/(home)/(sections)/recipient-selection'; -import { Sdgoals } from '@/app/[lang]/[region]/v2/(home)/(sections)/sdgoals'; -import { Testimonials } from '@/app/[lang]/[region]/v2/(home)/(sections)/testimonials'; import { Translator } from '@socialincome/shared/src/utils/i18n'; +import { Approach } from './(sections)/approach'; +import { Overview } from './(sections)/overview'; export default async function Page({ params: { lang, region } }: DefaultPageProps) { const translator = await Translator.getInstance({ @@ -20,18 +12,18 @@ export default async function Page({ params: { lang, region } }: DefaultPageProp }); return ( <> - + {/* */} - - - + {/* */} + {/* */} + {/* */} - - - - + {/* */} + {/* */} + {/* */} + {/* */} ); }