Skip to content

feat: add hover effects to download buttons for improved UX #2691

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/DownloadButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
type="primary"
size="large"
style="height: 3.2em"
class="transition duration-200 hover:opacity-90 hover:shadow-lg hover:-translate-y-0.5"
>
<template #icon>
<n-icon v-if="showIcon">
Expand Down
18 changes: 9 additions & 9 deletions components/LandingPageDownload.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,28 @@
<div class="text-center pt-8 text-sm">
<span v-if="isWindows()">
<t-nuxtlink
class="text-primary-500"
class="text-primary-500 hover:underlin"
href="/download/win_zip"
>Windows Portable</t-nuxtlink
>
<br />
Also available for
<t-nuxtlink
class="text-primary-500"
class="text-primary-500 hover:underlin"
href="https://github.com/JabRef/jabref/releases/latest"
>mac OS X and Linux</t-nuxtlink
>
<br />
</span>
<span v-if="isMac()">
<t-nuxtlink
class="text-primary-500"
class="text-primary-500 hover:underline"
href="/download/mac_arm64_dmg"
>Apple Silicon Portable (.dmg)</t-nuxtlink
>
or
<t-nuxtlink
class="text-primary-500"
class="text-primary-500 hover:underline"
href="/download/mac_x86_64_dmg"
>macOS Intel Portable (.dmg)</t-nuxtlink
>
Expand All @@ -82,37 +82,37 @@
<br />
Also available for
<t-nuxtlink
class="text-primary-500"
class="text-primary-500 hover:underline"
href="https://github.com/JabRef/jabref/releases/latest"
>Windows and Linux</t-nuxtlink
>
<br />
</span>
<span v-if="isLinux()">
<t-nuxtlink
class="text-primary-500"
class="text-primary-500 hover:underline"
href="/download/linux_tar_gz"
>Linux Portable</t-nuxtlink
>
<br />
Also available for
<t-nuxtlink
class="text-primary-500"
class="text-primary-500 hover:underline"
href="https://github.com/JabRef/jabref/releases/latest"
>
mac OS X and Windows
</t-nuxtlink>
<br />
</span>
<a
class="text-primary-500"
class="text-primary-500 hover:underline"
href="https://github.com/JabRef/jabref/blob/main/CHANGELOG.md"
>
Change Log
</a>
and
<a
class="text-primary-500"
class="text-primary-500 hover:underline"
href="https://builds.jabref.org/main/"
>Development Builds</a
>
Expand Down
8 changes: 4 additions & 4 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,27 +77,27 @@
<ClientOnly>
<a
v-if="isWindows()"
class="text-2xl"
class="text-2xl hover:underline"
href="/download/win_msi"
>Download for Windows</a
>
<a
v-if="isLinux()"
class="text-2xl"
class="text-2xl hover:underline"
href="/download/linux_deb"
>Download for Linux (Ubuntu, Debian)</a
>
<a
v-if="isMac()"
class="text-2xl"
href="/download/mac_arm64_pkg"
href="/download/mac_arm64_pkg hover:underline"
>Download for macOS (Apple Silicon)</a
>
</ClientOnly>
</n-button>
<div class="text-center pt-4 text-sm">
<a
class="text-primary-500 text-sm"
class="text-primary-500 text-sm hover:underline"
href="/#download"
>Or see all download options</a
>
Expand Down
Loading