fix(ui): smooth icon hover transition on certificate download
This commit is contained in:
@@ -208,7 +208,7 @@ export function CertificatesBlock({ badge, title, description, certificates = de
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={`mt-auto inline-flex items-center text-sm font-bold uppercase tracking-wider transition-all ${
|
<div className={`mt-auto inline-flex items-center gap-2 text-sm font-bold uppercase tracking-wider transition-all duration-300 ${
|
||||||
cert.pdfUrl ? 'group-hover:gap-3' : ''
|
cert.pdfUrl ? 'group-hover:gap-3' : ''
|
||||||
} ${
|
} ${
|
||||||
isIso ? 'text-primary-light' : 'text-primary'
|
isIso ? 'text-primary-light' : 'text-primary'
|
||||||
@@ -216,7 +216,7 @@ export function CertificatesBlock({ badge, title, description, certificates = de
|
|||||||
{cert.pdfUrl ? (
|
{cert.pdfUrl ? (
|
||||||
<>
|
<>
|
||||||
<span>Download PDF</span>
|
<span>Download PDF</span>
|
||||||
<Download size={16} className="ml-2 group-hover:translate-y-0.5 transition-transform" />
|
<Download size={16} className="group-hover:translate-y-0.5 transition-transform" />
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<span className="text-neutral-400">Nachweis liegt vor</span>
|
<span className="text-neutral-400">Nachweis liegt vor</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user