Skip to content

Commit

Permalink
feat: add email to footer (#502)
Browse files Browse the repository at this point in the history
* feat: add email to footer

closes #501

* add envelope
  • Loading branch information
dni authored Mar 12, 2024
1 parent 19ccdbc commit 4225a41
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/assets/envelope.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import discord from "../assets/discord.svg";
import envelope from "../assets/envelope.svg";
import github from "../assets/github.svg";
import nostr from "../assets/nostr.svg";
import twitter from "../assets/twitter.svg";
Expand All @@ -7,6 +8,7 @@ import {
blogUrl,
brandingUrl,
discordUrl,
email,
githubUrl,
nostrUrl,
repoUrl,
Expand Down Expand Up @@ -65,6 +67,13 @@ const Footer = () => {
href={youtubeUrl}>
<img src={youtube} alt="Youtube Logo" />
</a>
<a
title={t("email")}
class="email"
target="_blank"
href={"mailto:" + email}>
<img src={envelope} alt={t("email")} />
</a>
</div>
<p class="footer-nav">
<a target="_blank" href={blogUrl}>
Expand Down
1 change: 1 addition & 0 deletions src/configs/templates/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ export const statusUrl = "https://status.boltz.exchange";
export const youtubeUrl = "https://www.youtube.com/@boltzhq";
export const brandingUrl = "https://github.com/BoltzExchange/logo";
export const testnetUrl = "https://testnet.boltz.exchange";
export const email = "hi@bol.tz";
4 changes: 4 additions & 0 deletions src/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ const dict = {
swap_in_progress: "This swap is still in progress.",
paste_invalid:
"Clipboard contains invalid characters or maximum amount is exceeded",
email: "Email",
},
de: {
language: "Deutsch",
Expand Down Expand Up @@ -355,6 +356,7 @@ const dict = {
swap_in_progress: "Dieser Swap ist noch nicht abgeschlossen.",
paste_invalid:
"Zwischenablage enthält ungültige Zeichen oder der maximale Betrag wurde überschritten",
email: "Email",
},
es: {
language: "Español",
Expand Down Expand Up @@ -538,6 +540,7 @@ const dict = {
swap_in_progress: "Este intercambio aún está en curso.",
paste_invalid:
"El portapapeles contiene caracteres no válidos o se ha excedido el importe máximo",
email: "Email",
},
zh: {
language: "中文",
Expand Down Expand Up @@ -703,6 +706,7 @@ const dict = {
open_swap: "打开交换",
swap_in_progress: "此交换仍在进行中。",
paste_invalid: "剪贴板包含无效字符或超出最大金额",
email: "邮箱",
},
};

Expand Down

0 comments on commit 4225a41

Please sign in to comment.