-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
refactor(website): styling cleanups for hero sections #660
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6b8bb7a
Made some design changes to the hero section of "about us" and "our w…
ssandino b37d893
Prettified Code!
ssandino 64e7a26
Made some design changes to the hero section of "about us" and "our w…
ssandino 990a14e
Merge remote-tracking branch 'origin/sandino/adapted-hero-sections' i…
ssandino cd770e2
Merge branch 'main' into sandino/adapted-hero-sections
mkue f82906f
wip
mkue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,24 @@ | |
"landing-page": { | ||
"title": [ | ||
{ | ||
"text": "Etwas bewegen, nicht nur darüber sprechen. " | ||
"text": "Wir hatten die Möglichkeit, nichts zu tun. " | ||
}, | ||
{ | ||
"text": "Dies war der Anfang von Social Income.", | ||
"text": "Wir haben uns dagegen entschieden.", | ||
"color": "secondary" | ||
} | ||
] | ||
], | ||
"subtitle": "Die Verbesserung der Lebensbedingungen von Menschen in Armut sehen wir als unsere Verantwortung. Aus dieser Überzeugung heraus wurde Social Income ins Leben gerufen.", | ||
"contact": "Kontakt", | ||
"contact-title": "Schreib uns an", | ||
"contact-email": "[email protected]", | ||
"registration": "NGO Registrierung", | ||
"registration-title": "Rechtsstatus", | ||
"registration-foundation": "Social Income ist eine gemeinnützige Organisation, die 2019 nach schweizerischem Recht gegründet wurde und steuerbefreit ist.", | ||
"registration-uid": "UID: ", | ||
"registration-uid-nr": "CHE-289.611.695", | ||
"registration-duns": "DUNS: ", | ||
"registration-duns-nr": "48-045-6376" | ||
}, | ||
"our-mission": { | ||
"header": "Unsere Mission", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,24 @@ | |
"landing-page": { | ||
"title": [ | ||
{ | ||
"text": "We wanted to act. We found a way to do it. " | ||
"text": "We had the option to do nothing. " | ||
}, | ||
{ | ||
"text": "Social Income was born.", | ||
"text": "We decided against it.", | ||
"color": "secondary" | ||
} | ||
] | ||
], | ||
"subtitle": "We believe that improving the lives of people in need is not just a possibility but a responsibility. That's how Social Income was born.", | ||
"contact": "Contact Us", | ||
"contact-title": "Get in touch", | ||
"contact-email": "[email protected]", | ||
"registration": "NGO Registration", | ||
"registration-title": "Legal status", | ||
"registration-foundation": "Social Income is a non-profit organization founded under Swiss law in 2019 with tax exempt status.", | ||
"registration-uid": "UID: ", | ||
"registration-uid-nr": "CHE-289.611.695", | ||
"registration-duns": "DUNS: ", | ||
"registration-duns-nr": "48-045-6376" | ||
}, | ||
"our-mission": { | ||
"header": "Our Mission", | ||
|
@@ -54,7 +65,7 @@ | |
"header": "Flow of Funds", | ||
"title": [ | ||
{ | ||
"text": "From Everywhere to the Global South " | ||
"text": "From Everywhere to the Global South. " | ||
}, | ||
{ | ||
"text": "Safe, Fast, and Direct.", | ||
|
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
76 changes: 0 additions & 76 deletions
76
website/src/app/[lang]/[region]/(website)/about-us/(sections)/contact.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { WebsiteLanguage } from '@/i18n'; | ||
import { Translator } from '@socialincome/shared/src/utils/i18n'; | ||
import { BaseContainer, Typography } from '@socialincome/ui'; | ||
import { Badge, BaseContainer, Button, Popover, PopoverContent, PopoverTrigger, Typography } from '@socialincome/ui'; | ||
import { FontColor } from '@socialincome/ui/src/interfaces/color'; | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
import changeGif from '../(assets)/change.gif'; | ||
|
||
export default async function LandingPage({ lang }: { lang: WebsiteLanguage }) { | ||
|
@@ -13,13 +14,88 @@ export default async function LandingPage({ lang }: { lang: WebsiteLanguage }) { | |
|
||
return ( | ||
<BaseContainer className="min-h-screen-navbar grid grid-cols-1 content-center items-center gap-16 md:grid-cols-5"> | ||
<p className="mx-auto max-w-lg md:col-span-3"> | ||
<div className="mx-auto max-w-lg space-y-5 md:col-span-3"> | ||
{translator.t<{ text: string; color?: FontColor }[]>('landing-page.title').map((title, index) => ( | ||
<Typography as="span" key={index} size="5xl" weight="bold" color={title.color}> | ||
<Typography as="span" key={index} size="5xl" weight="bold" lineHeight="tight" color={title.color}> | ||
{title.text} | ||
</Typography> | ||
))} | ||
</p> | ||
<Typography size="2xl" lineHeight="normal"> | ||
{translator.t('landing-page.subtitle')} | ||
</Typography> | ||
<div className="flex space-x-2 pt-5"> | ||
<div> | ||
<Popover> | ||
<PopoverTrigger> | ||
<Badge variant="muted"> | ||
<Typography size="md" weight="normal" className="p-1"> | ||
{translator.t('landing-page.contact')} | ||
</Typography> | ||
</Badge> | ||
</PopoverTrigger> | ||
<PopoverContent> | ||
<div className="space-y-2"> | ||
<Typography size="md" lineHeight="normal" weight="medium"> | ||
{translator.t('landing-page.contact-title')} | ||
</Typography> | ||
<Link href="mailto:[email protected]"> | ||
<Button variant="link" className="p-0"> | ||
<Typography size="md" lineHeight="normal" weight="normal"> | ||
{translator.t('landing-page.contact-email')} | ||
</Typography> | ||
</Button> | ||
</Link> | ||
</div> | ||
</PopoverContent> | ||
</Popover> | ||
</div> | ||
<div> | ||
<Popover> | ||
<PopoverTrigger> | ||
<Badge variant="muted"> | ||
<Typography size="md" weight="normal" className="p-1"> | ||
{translator.t('landing-page.registration')} | ||
</Typography> | ||
</Badge> | ||
</PopoverTrigger> | ||
<PopoverContent> | ||
<div className="space-y-2"> | ||
<Typography size="md" lineHeight="normal" weight="medium"> | ||
{translator.t('landing-page.registration-title')} | ||
</Typography> | ||
<Typography size="md" lineHeight="normal"> | ||
{translator.t('landing-page.registration-foundation')} | ||
</Typography> | ||
<div className="flex items-center space-x-1"> | ||
<Typography size="md" lineHeight="normal"> | ||
{translator.t('landing-page.registration-uid')} | ||
</Typography> | ||
<Link href="https://www.uid.admin.ch/Detail.aspx?uid_id=CHE-289.611.695&lang=en" target="_blank"> | ||
<Button variant="link" className="m-0 p-0"> | ||
<Typography size="md" lineHeight="normal" weight="normal"> | ||
{translator.t('landing-page.registration-uid-nr')} | ||
</Typography> | ||
</Button> | ||
</Link> | ||
</div> | ||
<div className="flex items-center space-x-1"> | ||
<Typography size="md" lineHeight="normal"> | ||
{translator.t('landing-page.registration-duns')} | ||
</Typography> | ||
<Link href="https://www.dnb.com/duns/what-is-a-DUNS-number.html" target="_blank"> | ||
<Button variant="link" className="p-0"> | ||
<Typography size="md" lineHeight="normal" weight="normal"> | ||
{translator.t('landing-page.registration-duns-nr')} | ||
</Typography> | ||
</Button> | ||
</Link> | ||
</div> | ||
</div> | ||
</PopoverContent> | ||
</Popover> | ||
</div> | ||
</div> | ||
</div> | ||
<Image | ||
className="mx-auto w-full max-w-lg md:order-first md:col-span-2" | ||
src={changeGif} | ||
|
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
className="m-0 p-0"