Skip to content
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
Binary file modified public/img/uptime.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/locales/cs/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"osm-wiki": "OSM Wiki",
"email": "E-mail",
"copyright": "Copyright © {{year}} MapSwipe",
"uptime-pretext": "",
"privacy": "Soukromí",
"mapswipe-logo": "Mapswipe Logo",
"didnot-find-language": "Přidat chybějící jazyk",
Expand Down
1 change: 1 addition & 0 deletions public/locales/de/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"osm-wiki": "OSM Wiki",
"email": "Email",
"copyright": "Copyright © {{year}} MapSwipe",
"uptime-pretext": "",
"privacy": "Datenschutz",
"mapswipe-logo": "Mapswipe Logo",
"didnot-find-language": "Fehlende Sprache hinzufügen",
Expand Down
1 change: 1 addition & 0 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"osm-wiki": "OSM Wiki",
"email": "Email",
"copyright": "Copyright © {{year}} MapSwipe",
"uptime-pretext": "System status monitored by",
"privacy": "Privacy",
"mapswipe-logo": "Mapswipe Logo",
"didnot-find-language": "Add missing language",
Expand Down
1 change: 1 addition & 0 deletions public/locales/hu/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"osm-wiki": "OSM Wiki",
"email": "E-mail",
"copyright": "Copyright © {{year}} MapSwipe",
"uptime-pretext": "",
"privacy": "Adatvédelem",
"mapswipe-logo": "Mapswipe logo",
"didnot-find-language": "Hiányzó nyelv hozzáadása",
Expand Down
1 change: 1 addition & 0 deletions public/locales/ne/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"osm-wiki": "OSM Wiki",
"email": "इमेल",
"copyright": "प्रतिलिपि अधिकार © {{year}} MapSwipe",
"uptime-pretext": "",
"privacy": "गोपनीयता",
"mapswipe-logo": "Mapswipe लोगो",
"didnot-find-language": "छुटेको भाषा थप्नुहोस्",
Expand Down
1 change: 1 addition & 0 deletions public/locales/pt/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"osm-wiki": "Wiki OSM",
"email": "Email",
"copyright": "Direitos de autor © {{year}} MapSwipe",
"uptime-pretext": "",
"privacy": "Privacidade",
"mapswipe-logo": "Logótipo Mapswipe",
"didnot-find-language": "Adicionar idioma em falta",
Expand Down
14 changes: 14 additions & 0 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
} from 'react-icons/io5';

import Heading from 'components/Heading';
import ImageWrapper from 'components/ImageWrapper';

import styles from './styles.module.css';

Expand Down Expand Up @@ -143,6 +144,19 @@ function Footer(props: Props) {
<div className={styles.leftContainer}>
{t('copyright', { year: currentYear })}
</div>
<div className={styles.midContainer}>
{t('uptime-pretext')}
<Link
href="https://uptimerobot.com/"
target="_blank"
>
<ImageWrapper
className={styles.partnerLogo}
src="/img/uptime.png"
alt="Uptime Robot"
/>
</Link>
</div>
<div className={styles.rightContainer}>
<Link
href="/[locale]/privacy"
Expand Down
13 changes: 13 additions & 0 deletions src/components/Footer/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@
padding: var(--spacing-medium) 0;
}

.midContainer {
display: flex;
align-items: flex-end;

.partnerLogo {
/* NOTE: Margin bottom because logo is text and line height is not
* consistent */
margin-bottom: 2px;
width: 7rem;
height: 1rem;
}
}

.rightContainer {
display: flex;
padding: var(--spacing-medium) 0;
Expand Down
5 changes: 0 additions & 5 deletions src/pages/[locale]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ const partners = [
imageSrc: '/img/tc.png',
link: 'https://togglecorp.com',
},
{
altText: 'Uptime Robot',
imageSrc: '/img/uptime.png',
link: 'https://uptimerobot.com/',
},
];

interface Props extends SSRConfig {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/[locale]/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@
gap: var(--spacing-mega-large);

.partnerLogo {
width: 10rem;
height: 5rem;
width: 8rem;
height: 4rem;
}
}
}
Expand Down
Loading