Skip to content

Commit

Permalink
feat: add youtube link and move status
Browse files Browse the repository at this point in the history
closes #445

add youtube link and remove blog link from footer
move status link from footer to main nav
  • Loading branch information
dni committed Feb 12, 2024
1 parent 04fca42 commit bb13159
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 22 deletions.
5 changes: 0 additions & 5 deletions src/assets/betterstack.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/substack.svg

This file was deleted.

10 changes: 10 additions & 0 deletions src/assets/youtube.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 6 additions & 15 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import betterstack from "../assets/betterstack.svg";
import discord from "../assets/discord.svg";
import github from "../assets/github.svg";
import nostr from "../assets/nostr.svg";
import substack from "../assets/substack.svg";
import twitter from "../assets/twitter.svg";
import youtube from "../assets/youtube.svg";
import {
blogUrl,
discordUrl,
githubUrl,
nostrUrl,
repoUrl,
statusUrl,
twitterUrl,
youtubeUrl,
} from "../config";
import { useGlobalContext } from "../context/Global";
import "../style/footer.scss";
Expand Down Expand Up @@ -40,13 +38,6 @@ const Footer = () => {
href={githubUrl}>
<img src={github} alt="Github Logo" />
</a>
<a
title="Substack"
class="substack"
target="_blank"
href={blogUrl}>
<img src={substack} alt="Substack Logo" />
</a>
<a
title="Discord"
class="discord"
Expand All @@ -65,11 +56,11 @@ const Footer = () => {
<img src={nostr} alt="Nostr Logo" />
</a>
<a
title="Boltz API Status"
class="betterstack"
title="Youtube"
class="youtube"
target="_blank"
href={statusUrl}>
<img src={betterstack} alt="Better Stack Logo" />
href={youtubeUrl}>
<img src={youtube} alt="Youtube Logo" />
</a>
</div>
<p>{t("footer")}</p>
Expand Down
7 changes: 6 additions & 1 deletion src/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { For, Show, createSignal } from "solid-js";

import logo from "../assets/boltz.svg";
import Warnings from "../components/Warnings";
import { blogUrl, discordUrl, docsUrl, torUrl } from "../config";
import { blogUrl, discordUrl, docsUrl, statusUrl, torUrl } from "../config";
import { useGlobalContext } from "../context/Global";
import locales from "../i18n/i18n";
import "../style/nav.scss";
Expand Down Expand Up @@ -62,6 +62,11 @@ const Nav = ({ network }) => {
<A href="/history" onClick={() => setHamburger(false)}>
{t("history")}
</A>
<Show when={statusUrl}>
<a class="external" target="_blank" href={statusUrl}>
{t("status")}
</a>
</Show>
<Show when={blogUrl}>
<a class="external" target="_blank" href={blogUrl}>
{t("blog")}
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 @@ -12,3 +12,4 @@ export const blogUrl = "https://blog.boltz.exchange";
export const nostrUrl =
"https://snort.social/p/npub1psm37hke2pmxzdzraqe3cjmqs28dv77da74pdx8mtn5a0vegtlas9q8970";
export const statusUrl = "https://status.boltz.exchange";
export const youtubeUrl = "https://www.youtube.com/@boltzhq";

0 comments on commit bb13159

Please sign in to comment.