Skip to content

Commit 754a814

Browse files
Merge pull request #246 from mapswipe/fix/update-uptime-logo-placement
Fix/update uptime logo placement
2 parents 2b92c15 + e1cb6ea commit 754a814

11 files changed

Lines changed: 35 additions & 7 deletions

File tree

public/img/uptime.png

-16.1 KB
Loading

public/locales/cs/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"osm-wiki": "OSM Wiki",
1616
"email": "E-mail",
1717
"copyright": "Copyright © {{year}} MapSwipe",
18+
"uptime-pretext": "",
1819
"privacy": "Soukromí",
1920
"mapswipe-logo": "Mapswipe Logo",
2021
"didnot-find-language": "Přidat chybějící jazyk",

public/locales/de/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"osm-wiki": "OSM Wiki",
1616
"email": "Email",
1717
"copyright": "Copyright © {{year}} MapSwipe",
18+
"uptime-pretext": "",
1819
"privacy": "Datenschutz",
1920
"mapswipe-logo": "Mapswipe Logo",
2021
"didnot-find-language": "Fehlende Sprache hinzufügen",

public/locales/en/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"osm-wiki": "OSM Wiki",
1616
"email": "Email",
1717
"copyright": "Copyright © {{year}} MapSwipe",
18+
"uptime-pretext": "System status monitored by",
1819
"privacy": "Privacy",
1920
"mapswipe-logo": "Mapswipe Logo",
2021
"didnot-find-language": "Add missing language",

public/locales/hu/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"osm-wiki": "OSM Wiki",
1616
"email": "E-mail",
1717
"copyright": "Copyright © {{year}} MapSwipe",
18+
"uptime-pretext": "",
1819
"privacy": "Adatvédelem",
1920
"mapswipe-logo": "Mapswipe logo",
2021
"didnot-find-language": "Hiányzó nyelv hozzáadása",

public/locales/ne/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"osm-wiki": "OSM Wiki",
1616
"email": "इमेल",
1717
"copyright": "प्रतिलिपि अधिकार © {{year}} MapSwipe",
18+
"uptime-pretext": "",
1819
"privacy": "गोपनीयता",
1920
"mapswipe-logo": "Mapswipe लोगो",
2021
"didnot-find-language": "छुटेको भाषा थप्नुहोस्",

public/locales/pt/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"osm-wiki": "Wiki OSM",
1616
"email": "Email",
1717
"copyright": "Direitos de autor © {{year}} MapSwipe",
18+
"uptime-pretext": "",
1819
"privacy": "Privacidade",
1920
"mapswipe-logo": "Logótipo Mapswipe",
2021
"didnot-find-language": "Adicionar idioma em falta",

src/components/Footer/index.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
} from 'react-icons/io5';
1515

1616
import Heading from 'components/Heading';
17+
import ImageWrapper from 'components/ImageWrapper';
1718

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

@@ -143,6 +144,19 @@ function Footer(props: Props) {
143144
<div className={styles.leftContainer}>
144145
{t('copyright', { year: currentYear })}
145146
</div>
147+
<div className={styles.midContainer}>
148+
{t('uptime-pretext')}
149+
<Link
150+
href="https://uptimerobot.com/"
151+
target="_blank"
152+
>
153+
<ImageWrapper
154+
className={styles.partnerLogo}
155+
src="/img/uptime.png"
156+
alt="Uptime Robot"
157+
/>
158+
</Link>
159+
</div>
146160
<div className={styles.rightContainer}>
147161
<Link
148162
href="/[locale]/privacy"

src/components/Footer/styles.module.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@
6060
padding: var(--spacing-medium) 0;
6161
}
6262

63+
.midContainer {
64+
display: flex;
65+
align-items: flex-end;
66+
67+
.partnerLogo {
68+
/* NOTE: Margin bottom because logo is text and line height is not
69+
* consistent */
70+
margin-bottom: 2px;
71+
width: 7rem;
72+
height: 1rem;
73+
}
74+
}
75+
6376
.rightContainer {
6477
display: flex;
6578
padding: var(--spacing-medium) 0;

src/pages/[locale]/index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ const partners = [
7272
imageSrc: '/img/tc.png',
7373
link: 'https://togglecorp.com',
7474
},
75-
{
76-
altText: 'Uptime Robot',
77-
imageSrc: '/img/uptime.png',
78-
link: 'https://uptimerobot.com/',
79-
},
8075
];
8176

8277
interface Props extends SSRConfig {

0 commit comments

Comments
 (0)