Skip to content

Commit be3e1da

Browse files
committed
[src/app/navbar/navbar.component.html] Improve link text ; enable clicking anywhere in nav bar to go to link ; [src/app/navbar/navbar.component.ts] Add URL goer helper func
1 parent 8d1bc5f commit be3e1da

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/app/navbar/navbar.component.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ <h1>
1313
</h1>
1414
</nav>
1515
<nav class="flex-direction-row"
16-
style="background: rgb(66, 158, 157); color: whitesmoke; line-height: unset !important;">
16+
style="background: rgb(66, 158, 157); color: whitesmoke; line-height: unset !important;"
17+
(click)="openUrl('https://rewriteInC.io', '_blank')">
1718
New: <a href="https://rewriteInC.io" target="_blank" style="line-height: unset !important;">&num;rewriteInC.io</a>
18-
released for
19-
C code synchronisation; OpenAPI &harr; C SDK; and C &rarr; &lbrace;every lang wrapper&rbrace;
19+
released for: C source-code synchronisation; OpenAPI &harr; C SDK; and C SDK &rarr; &lbrace;every lang wrapper&rbrace;
2020
</nav>
21-
<nav class="flex-direction-row" style="background: steelblue; color: whitesmoke; line-height: unset !important;">
21+
<nav class="flex-direction-row" style="background: steelblue; color: whitesmoke; line-height: unset !important;"
22+
(click)="openUrl('https://verMan.io', '_blank')">
2223
New: <a href="https://verMan.io" target="_blank" style="line-height: unset !important;">verMan.io</a> released for
23-
1-click deploys: any &lbrace;ML,database,server&rbrace;
24-
any &lbrace;cloud,VM,docker,machine&rbrace; from/to any OS
24+
1-click deploys: any &lbrace;ML,database,server&rbrace; any &lbrace;cloud,VM,docker,machine&rbrace; from/to any OS
2525
</nav>
2626
<ng-content></ng-content>
2727
</section>

src/app/navbar/navbar.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ import { Component } from '@angular/core';
88
standalone: false
99
})
1010
export class NavbarComponent {
11+
openUrl(url: string, target: string) {
12+
window.open(url, target)
13+
}
1114
}

0 commit comments

Comments
 (0)