Skip to content

Commit 60a96ce

Browse files
committed
font link
1 parent ce05796 commit 60a96ce

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/components/AnimatedTitleVariableMorphing.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,15 @@ export default function AnimatedTitleVariableMorphing() {
466466

467467
{/* Indicateur de police et axes */}
468468
{isLoaded && (
469-
<div className="text-center mb-4">
469+
<div className="relative text-center my-4 z-20">
470470
<p className="text-xs text-gray-400 dark:text-gray-500 font-mono">
471-
{morphState.isInCooldown ? currentFont.name : `${previousFont.name}${currentFont.name}`}
471+
{morphState.isInCooldown ? (
472+
<a href={`https://fonts.google.com/specimen/${currentFont.name}/tester`} target="_blank" rel="noopener noreferrer">
473+
{currentFont.name}
474+
</a>
475+
) : (
476+
`${previousFont.name}${currentFont.name}`
477+
)}
472478
<br />
473479
<span className="text-xs">
474480
({morphState.currentIndex}/{randomizedFonts.length})

0 commit comments

Comments
 (0)