Skip to content

Commit 47db35f

Browse files
committed
Use external viglet.com links in Navbar
Replace internal Get Started Link with external anchor to https://viglet.com in both mobile menu and desktop CTA, opening in a new tab with rel="noopener noreferrer" for safety. Add an inline SVG external-link icon and corresponding .nav-external-icon CSS for spacing and vertical alignment. Changes touch src/theme/Navbar/index.tsx and src/css/custom.css.
1 parent 307679d commit 47db35f

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

src/css/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,12 @@ a {
499499
color: #F97316;
500500
}
501501

502+
.nav-external-icon {
503+
display: inline-block;
504+
margin-left: 4px;
505+
vertical-align: middle;
506+
}
507+
502508
/* ── Mobile responsive ── */
503509
@media (max-width: 768px) {
504510
.nav-products,

src/theme/Navbar/index.tsx

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,19 @@ function MobileMenu({ isOpen, onClose }: { isOpen: boolean; onClose: () => void
165165
);
166166
})}
167167
<hr className="nav-mobile-hr" />
168-
<Link
169-
to="/#products"
168+
<a
169+
href="https://viglet.com"
170+
target="_blank"
171+
rel="noopener noreferrer"
170172
className="nav-mobile-cta"
171173
onClick={onClose}
172174
>
173-
Get Started
174-
</Link>
175+
viglet.com
176+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" className="nav-external-icon">
177+
<path d="M3.5 1.5H10.5V8.5" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
178+
<path d="M10.5 1.5L1.5 10.5" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
179+
</svg>
180+
</a>
175181
</div>
176182
</div>
177183
);
@@ -207,9 +213,13 @@ export default function Navbar(): JSX.Element {
207213
<div className="nav-right">
208214
<ColorModeToggle value={colorMode} onChange={setColorMode} />
209215
<Button variant="default" size="sm" asChild>
210-
<Link to="/#products">
211-
Get Started
212-
</Link>
216+
<a href="https://viglet.com" target="_blank" rel="noopener noreferrer">
217+
viglet.com
218+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" className="nav-external-icon">
219+
<path d="M3.5 1.5H10.5V8.5" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
220+
<path d="M10.5 1.5L1.5 10.5" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
221+
</svg>
222+
</a>
213223
</Button>
214224
</div>
215225

0 commit comments

Comments
 (0)