Skip to content

Commit 97e355d

Browse files
committed
refactor: streamline Hero component code and improve readability
1 parent ef17c8b commit 97e355d

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

website/src/components/hero/index.tsx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,22 @@ export function Hero() {
143143
{/* Left Column: Text and Buttons */}
144144
<div>
145145
{/* Main Heading */}
146-
<h2
147-
className={`text-2xl text-left mb-2 text-main-emerald font-bold transition-all duration-1000 ${
148-
isVisible
149-
? "opacity-100 translate-y-0"
150-
: "opacity-0 translate-y-4"
151-
}`}
146+
<Link
147+
href="https://github.com/voltagent/voltagent"
148+
target="_blank"
149+
rel="noopener noreferrer"
150+
className="no-underline hover:no-underline"
152151
>
153-
Open Source
154-
</h2>
152+
<h2
153+
className={`text-2xl text-left mb-2 text-main-emerald font-bold transition-all duration-1000 ${
154+
isVisible
155+
? "opacity-100 translate-y-0"
156+
: "opacity-0 translate-y-4"
157+
}`}
158+
>
159+
Open Source
160+
</h2>
161+
</Link>
155162

156163
<h1
157164
className={`text-4xl sm:text-5xl text-neutral-100 md:text-6xl font-bold text-left mb-6 transition-all duration-1000 ${

0 commit comments

Comments
 (0)