Skip to content
This repository was archived by the owner on Jan 10, 2026. It is now read-only.

Commit 0c1a0a8

Browse files
committed
feat: add a redirect to astro's apps button
1 parent a18fd97 commit 0c1a0a8

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

public/i18n/el.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"articles": "ΑΡΘΡΑ",
66
"news": "ΝΕΑ",
77
"openPositions": "ΑΝΟΙΧΤΕΣ ΘΕΣΕΙΣ",
8+
"applications": "ΕΦΑΡΜΟΓΕΣ",
89
"contact": "ΕΠΙΚΟΙΝΩΝΙΑ"
910
}

public/i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"articles": "ARTICLES",
66
"news": "NEWS",
77
"openPositions": "OPEN POSITIONS",
8+
"applications": "APPLICATIONS",
89
"contact": "CONTACT"
910
}

src/app/app.component.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export class AppComponent {
2828
{ name: 'articles', target: 'articles' },
2929
{ name: 'news', target: 'news' },
3030
{ name: 'openPositions', target: 'open-positions' },
31+
{ name: 'applications', target: 'https://astro-beam-auth.github.io/apps/' },
3132
{ name: 'contact', target: 'contact' },
3233
]
3334

@@ -53,6 +54,13 @@ export class AppComponent {
5354
for (let node of toolbarLinks) {
5455
node.classList.remove('toolbar-link-selected')
5556
}
57+
58+
// Check if target is an external URL
59+
if (target.startsWith('http')) {
60+
window.open(target, '_blank');
61+
return;
62+
}
63+
5664
document.getElementById('toolbar-link-' + target)!.classList.add('toolbar-link-selected')
5765
this.router.navigateByUrl('/' + target)
5866

0 commit comments

Comments
 (0)