Skip to content

Commit

Permalink
fix: update Safari download link and enhance download card UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeraa committed Dec 23, 2024
1 parent bfd32a1 commit ab62c95
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/layouts/skipAds.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
chrome:
"https://chrome.google.com/webstore/detail/premid/agjnjboanicjcpenljmaaigopkgdnihi",
firefox: "https://dl.premid.app/PreMiD.xpi",
safari: "https://github.com/PreMiD/Extension-Safari"
safari: "https://testflight.apple.com/join/HwTAFdBj"
}
};
},
Expand Down
52 changes: 26 additions & 26 deletions src/pages/downloads.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,15 @@
<span>Firefox</span>
</div>

<div class="download-card download-card--disabled">
<div
:class="{ 'current-platform': browser.key == 'safari' }"
class="download-card"
@click="open('safari', 'Extension')"
>
<i class="fa-safari fab"></i>
<span>Safari</span>
<div class="coming-soon">
{{ $t("downloads.notice.browsers.comingSoon") }}
<div class="beta-tag">
{{ $t("downloads.notice.browsers.beta") }}
</div>
</div>
</div>
Expand Down Expand Up @@ -750,10 +754,16 @@
min-width: 120px;
cursor: pointer;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
&:hover {
background: rgba(114, 137, 218, 0.15);
transform: translateY(-2px);
.beta-tag {
transform: none;
}
}
&.current-platform {
Expand All @@ -772,29 +782,19 @@
color: #7289da;
}
&--disabled {
opacity: 0.5;
cursor: not-allowed;
position: relative;
overflow: hidden;
&:hover {
background: rgba(114, 137, 218, 0.1);
transform: none;
}
.coming-soon {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(114, 137, 218, 0.3);
color: white;
font-size: 0.8rem;
padding: 0.2rem;
text-align: center;
font-weight: 500;
}
.beta-tag {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(255, 171, 0, 0.3);
color: #ffab00;
font-size: 0.8rem;
padding: 0.2rem;
text-align: center;
font-weight: 500;
transition: transform 0.2s ease;
transform: translateY(0);
}
}
}
Expand Down

0 comments on commit ab62c95

Please sign in to comment.