Fix duplicate download buttons

This commit is contained in:
Kamran Ahmed
2025-07-04 13:17:06 +01:00
parent 2142409fb4
commit c45c872de6
2 changed files with 3 additions and 3 deletions
@@ -4,7 +4,7 @@ import { REDIRECT_PAGE_AFTER_AUTH } from '../../lib/auth';
function easeInElement(el: Element) {
el.classList.add('opacity-0', 'transition-opacity', 'duration-300');
el.classList.remove('hidden');
el.classList.remove('hidden', 'hidden!');
setTimeout(() => {
el.classList.remove('opacity-0');
});
+2 -2
View File
@@ -49,7 +49,7 @@ const isBestPracticeReady = !isUpcoming;
<button
data-guest-required
data-popup="login-popup"
class="inline-flex hidden items-center justify-center rounded-md bg-yellow-400 px-3 py-1.5 text-xs font-medium hover:bg-yellow-500 sm:text-sm"
class="inline-flex hidden! items-center justify-center rounded-md bg-yellow-400 px-3 py-1.5 text-xs font-medium hover:bg-yellow-500 sm:text-sm"
aria-label="Download Roadmap"
>
<Icon icon="download" />
@@ -62,7 +62,7 @@ const isBestPracticeReady = !isUpcoming;
isBestPracticeReady && (
<a
data-auth-required
class="inline-flex hidden items-center justify-center rounded-md bg-yellow-400 px-3 py-1.5 text-xs font-medium hover:bg-yellow-500 sm:text-sm"
class="inline-flex hidden! items-center justify-center rounded-md bg-yellow-400 px-3 py-1.5 text-xs font-medium hover:bg-yellow-500 sm:text-sm"
aria-label="Download Roadmap"
target="_blank"
href={`/pdfs/best-practices/${bestPracticeId}.pdf`}