-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(website): update sdg goals section on new landing page (#894)
- Loading branch information
Showing
14 changed files
with
80 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
website/src/app/[lang]/[region]/v2/(home)/(sections)/sdg-goals.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { DefaultParams } from '@/app/[lang]/[region]'; | ||
import sdgLogo from '@/app/[lang]/[region]/(website)/(home)/(assets)/sdg-logo.svg'; | ||
import { Translator } from '@socialincome/shared/src/utils/i18n'; | ||
import { Typography } from '@socialincome/ui'; | ||
import { FontColor } from '@socialincome/ui/src/interfaces/color'; | ||
import Image from 'next/image'; | ||
import Town from '../(assets)/sdg-town.jpg'; | ||
|
||
export async function SDGGoals({ lang }: DefaultParams) { | ||
const translator = await Translator.getInstance({ | ||
language: lang, | ||
namespaces: ['website-home2'], | ||
}); | ||
|
||
return ( | ||
<div | ||
className="flex flex-col bg-cover bg-center pb-64 pt-20 md:pb-80" | ||
style={{ backgroundImage: `linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.0)), url(${Town.src})` }} | ||
> | ||
<Typography | ||
color="primary-foreground" | ||
className="mx-auto mt-8 w-3/4 text-center md:mt-16" | ||
size="4xl" | ||
weight="medium" | ||
> | ||
{translator.t<{ text: string; color?: FontColor }[]>('section-10.title-1').map((title, index) => ( | ||
<Typography as="span" key={index} color={title.color}> | ||
{title.text}{' '} | ||
</Typography> | ||
))} | ||
</Typography> | ||
<Image className="mx-auto mt-8 w-96 max-w-[75%]" src={sdgLogo} alt="Sustainable Development Goals Logo" /> | ||
<div className="mx-auto -mb-6 flex w-4/5 max-w-xl pt-20 text-center text-xl text-white md:pt-40 md:text-2xl"> | ||
<div className="bg-primary flex h-72 flex-1 -rotate-6 flex-col items-center justify-between py-4 md:h-96"> | ||
<div /> | ||
<Typography weight="medium" className="w-3/4"> | ||
{translator.t('section-10.sdg-1-title')} | ||
</Typography> | ||
<Typography size="sm">{translator.t('section-10.sdg-1')}</Typography> | ||
</div> | ||
<div className="bg-accent -ml-6 mt-12 flex h-72 flex-1 rotate-2 flex-col items-center justify-between py-4 md:h-96"> | ||
<div /> | ||
<Typography weight="medium" className="w-3/4"> | ||
{translator.t('section-10.sdg-10-title')} | ||
</Typography> | ||
<Typography size="sm">{translator.t('section-10.sdg-10')}</Typography> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
46 changes: 0 additions & 46 deletions
46
website/src/app/[lang]/[region]/v2/(home)/(sections)/sdgoals.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters