Skip to content

Commit

Permalink
improve cta
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jun 5, 2024
1 parent dabb9d9 commit e06eb56
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions landing/src/components/Cta.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,18 @@
</script>

<div class="flex gap-3 flex-col lg:flex-row">
{#if asset?.platform.toLowerCase() === 'macos'}
{#if isMobile}
<button on:mousedown={ctaClick} class="btn btn-primary">
{t('download')}
</button>
{:else}
<button on:mousedown={ctaClick} class="btn btn-primary hidden lg:flex">
<MacIcon />
{t('download-for')}{asset?.platform}
</button>
{/if}
<!-- mobile cta open modal -->
{#if isMobile}
<button on:mousedown={ctaClick} class="btn btn-primary">
{t('download')}
</button>
<!-- macOS cta -->
{:else if asset?.platform.toLowerCase() === 'macos'}
<button on:mousedown={ctaClick} class="btn btn-primary hidden lg:flex">
<MacIcon />
{t('download-for')}{asset?.platform}
</button>
<!-- linux / windows -->
{:else}
<a href={asset?.url} class="btn btn-primary hidden md:flex">
{#if asset?.platform.toLowerCase() === 'linux'}
Expand All @@ -89,6 +90,7 @@
{t('download-for')}{asset?.platform}
</a>
{/if}

<a class="btn" href="https://github.com/thewh1teagle/vibe" target="_blank">
<GithubIcon width="18" height="18" />
{t('star-on-github')}
Expand Down

0 comments on commit e06eb56

Please sign in to comment.