fix(certificates): update links and hide unavailable actions
This commit is contained in:
@@ -47,19 +47,20 @@ export const MilestonesSection: React.FC = () => {
|
||||
|
||||
<p className={styles.description}>{item.description}</p>
|
||||
|
||||
{/* View Certificate Link */}
|
||||
<div className={styles.actionRow}>
|
||||
<a
|
||||
href={item.link && item.link !== '#' ? item.link : item.image}
|
||||
className={styles.viewCertLink}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
aria-label={`View ${item.title} certificate`}
|
||||
>
|
||||
<span>View certificate</span>
|
||||
<ExternalLink size={20} strokeWidth={2.25} aria-hidden="true" />
|
||||
</a>
|
||||
</div>
|
||||
{item.link && (
|
||||
<div className={styles.actionRow}>
|
||||
<a
|
||||
href={item.link}
|
||||
className={styles.viewCertLink}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
aria-label={`View ${item.title} certificate`}
|
||||
>
|
||||
<span>View certificate</span>
|
||||
<ExternalLink size={20} strokeWidth={2.25} aria-hidden="true" />
|
||||
</a>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user