Skip to content

Commit

Permalink
fix: replace rest of anchor tags to external URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Aug 29, 2024
1 parent 8502b86 commit a8784f8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/src/lib/components/DecorativeSplitView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import gbLogoSvg from '$lib/assets/gb-logo.svg?raw';
import { User } from '$lib/stores/user';
import { getContextStore } from '$lib/utils/context';
import { openExternalUrl } from '$lib/utils/url';
import Icon from '@gitbutler/ui/Icon.svelte';
import { type Snippet } from 'svelte';
import { openExternalUrl } from '$lib/utils/url';
interface Props {
showLinks?: boolean;
Expand Down
17 changes: 8 additions & 9 deletions apps/desktop/src/lib/settings/Sidebar.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import SupportersBanner from './SupportersBanner.svelte';
import { openExternalUrl } from '$lib/utils/url';
import Button from '@gitbutler/ui/Button.svelte';
import Icon from '@gitbutler/ui/Icon.svelte';
import { goto } from '$app/navigation';
Expand Down Expand Up @@ -109,23 +110,21 @@

<section class="profile-sidebar__bottom">
<div class="social-banners">
<a
<button
class="social-banner"
href="mailto:[email protected]?subject=Feedback or question!"
target="_blank"
on:click={async () =>
await openExternalUrl('mailto:[email protected]?subject=Feedback or question!')}
>
<span class="text-14 text-bold">Contact us</span>
<Icon name="mail" />
</a>
<a
</button>
<button
class="social-banner"
href="https://discord.gg/MmFkmaJ42D"
target="_blank"
rel="noreferrer"
on:click={async () => await openExternalUrl('https://discord.gg/MmFkmaJ42D')}
>
<span class="text-14 text-bold">Join our Discord</span>
<Icon name="discord" />
</a>
</button>
</div>

<SupportersBanner />
Expand Down
11 changes: 9 additions & 2 deletions apps/desktop/src/lib/settings/SupportersBanner.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<a class="banner" href="https://docs.gitbutler.com/community/supporters" target="_blank">
<script lang="ts">
import { openExternalUrl } from '$lib/utils/url';
</script>

<button
class="banner"
on:click={async () => await openExternalUrl('https://docs.gitbutler.com/community/supporters')}
>
<div class="benner-content">
<h4 class="benner-label text-14 text-bold">Thank you to all GitButler early supporters</h4>
<i class="benner-arrow-wrap">
Expand All @@ -18,7 +25,7 @@
</i>
</div>
<img class="banner-img" src="/images/banners/support.svg" alt="" />
</a>
</button>

<style>
.banner {
Expand Down

0 comments on commit a8784f8

Please sign in to comment.