-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6af0194
commit a6aacf0
Showing
32 changed files
with
2,109 additions
and
112 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
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 |
---|---|---|
|
@@ -6,7 +6,6 @@ yarn-debug.log* | |
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
ui | ||
node_modules | ||
dist | ||
dist-ssr | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"namespace": "common", | ||
"strings": { | ||
"footerAboutAlertHub":"About Alert Hub", | ||
"footerAboutAlertHubDesc":"The aim of IFRC Alert Hub is to provide timely and effective emergency alerts to communities worldwide, empowering them to protect their lives and livelihoods.", | ||
"footerFindOutMore":"Find out more", | ||
"footerHelpfulLinks":"Helpful links", | ||
"footerOpenSourceCode":"Open Source Code", | ||
"footerApiDocumentation":"API Documentation", | ||
"footerOtherResources":"Other Resources", | ||
"footerContactUs":"Contact Us", | ||
"footerIFRC":"© IFRC {year} v{appVersion}", | ||
"globalFindOut": "Find Out More", | ||
"globalHelpfulLinks": "Helpful links" | ||
} | ||
} |
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,132 @@ | ||
import { Link } from 'react-router-dom'; | ||
import { | ||
Heading, | ||
PageContainer, | ||
} from '@ifrc-go/ui'; | ||
import { useTranslation } from '@ifrc-go/ui/hooks'; | ||
import { resolveToComponent } from '@ifrc-go/ui/utils'; | ||
import { _cs } from '@togglecorp/fujs'; | ||
|
||
import { | ||
appCommitHash, | ||
appVersion, | ||
} from '#config'; | ||
|
||
import i18n from './i18n.json'; | ||
import styles from './styles.module.css'; | ||
|
||
const date = new Date(); | ||
const year = date.getFullYear(); | ||
|
||
interface Props { | ||
className?: string; | ||
} | ||
|
||
function GlobalFooter(props: Props) { | ||
const { | ||
className, | ||
} = props; | ||
|
||
const strings = useTranslation(i18n); | ||
const copyrightText = resolveToComponent( | ||
strings.footerIFRC, | ||
{ | ||
year, | ||
appVersion: ( | ||
<span title={appCommitHash}> | ||
{appVersion} | ||
</span> | ||
), | ||
}, | ||
); | ||
|
||
return ( | ||
<PageContainer | ||
className={_cs(styles.footer, className)} | ||
contentClassName={styles.content} | ||
containerAs="footer" | ||
> | ||
<div className={styles.section}> | ||
<Heading> | ||
{strings.footerAboutAlertHub} | ||
</Heading> | ||
<div className={styles.description}> | ||
{strings.footerAboutAlertHubDesc} | ||
</div> | ||
<div className={styles.copyright}> | ||
{copyrightText} | ||
</div> | ||
</div> | ||
<div className={styles.section}> | ||
<Heading> | ||
{strings.globalFindOut} | ||
</Heading> | ||
<div className={styles.subSection}> | ||
<Link | ||
className={styles.footerLink} | ||
to="https://ifrc.org" | ||
target="_blank" | ||
> | ||
ifrc.org | ||
</Link> | ||
<Link | ||
className={styles.footerLink} | ||
to="https://rcrcsims.org" | ||
target="_blank" | ||
> | ||
rcrcsims.org | ||
</Link> | ||
<Link | ||
className={styles.footerLink} | ||
to="https://data.ifrc.org" | ||
target="_blank" | ||
> | ||
data.ifrc.org | ||
</Link> | ||
</div> | ||
</div> | ||
<div className={styles.section}> | ||
<Heading> | ||
{strings.globalHelpfulLinks} | ||
</Heading> | ||
<div className={styles.subSection}> | ||
<Link | ||
className={styles.footerLink} | ||
to="https://github.com/IFRCGo/alert-hub-web-app" | ||
target="_blank" | ||
> | ||
{strings.footerOpenSourceCode} | ||
</Link> | ||
<Link | ||
className={styles.footerLink} | ||
to="https://github.com/IFRC-Alert-Hub/Alert-Hub-Alert-Manager#api-documentation" | ||
target="_blank" | ||
> | ||
{strings.footerApiDocumentation} | ||
</Link> | ||
{/* // FIXME: Add Resource route */} | ||
<Link | ||
className={styles.footerLink} | ||
to="/" | ||
target="_blank" | ||
> | ||
{strings.footerOtherResources} | ||
</Link> | ||
</div> | ||
</div> | ||
<div className={styles.section}> | ||
<Heading> | ||
{strings.footerContactUs} | ||
</Heading> | ||
<Link | ||
className={styles.contactButton} | ||
to="mailto:[email protected]" | ||
> | ||
[email protected] | ||
</Link> | ||
</div> | ||
</PageContainer> | ||
); | ||
} | ||
|
||
export default GlobalFooter; |
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,53 @@ | ||
.footer { | ||
background-color: var(--go-ui-color-primary-gray); | ||
color: var(--go-ui-color-white); | ||
|
||
.content { | ||
display: flex; | ||
gap: var(--go-ui-spacing-2xl); | ||
flex-wrap: wrap; | ||
|
||
.section { | ||
display: flex; | ||
flex-basis: 12rem; | ||
flex-direction: column; | ||
flex-grow: 1; | ||
gap: var(--go-ui-spacing-lg); | ||
|
||
.sub-section { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--go-ui-spacing-sm); | ||
|
||
.footer-link { | ||
text-decoration: none; | ||
color: var(--go-ui-color-white); | ||
font-weight: var(--go-ui-font-weight-medium); | ||
} | ||
|
||
.footer-link:hover { | ||
text-decoration: underline; | ||
color: var(--go-ui-color-red-hover); | ||
} | ||
} | ||
|
||
.contact-button { | ||
border-radius: var(--go-ui-border-radius-2xl); | ||
background-color: var(--go-ui-color-primary-red); | ||
padding: var(--go-ui-spacing-2xs) var(--go-ui-spacing-xl); | ||
width: fit-content; | ||
text-decoration: none; | ||
color: var(--go-ui-color-white); | ||
font-weight: var(--go-ui-font-weight-medium); | ||
} | ||
|
||
.contact-button:hover { | ||
text-decoration: underline; | ||
} | ||
} | ||
} | ||
|
||
@media print { | ||
display: none; | ||
} | ||
} |
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.