Skip to content

Commit 6482119

Browse files
committed
feat: add GitHub link to header for improved navigation
1 parent 25195c1 commit 6482119

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

projects/pioneer-charts-docs/src/app/layout/header/header.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,14 @@
1313
</button>
1414
<button type="button" matButton routerLink="/docs/guides/introduction">Documentation</button>
1515
<button type="button" matButton routerLink="/charts">Charts</button>
16+
<a matButton href="https://github.com/PioneerCode/pioneer-charts" target="_blank" class="ms-auto">
17+
<div class="github-icon">
18+
<svg viewBox="0 0 20 20" aria-hidden="true" class="docs-github-logo">
19+
<path
20+
d="M10 0C4.477 0 0 4.477 0 10c0 4.42 2.87 8.17 6.84 9.5.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34-.46-1.16-1.11-1.47-1.11-1.47-.91-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.87 1.52 2.34 1.07 2.91.83.09-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.92 0-1.11.38-2 1.03-2.71-.1-.25-.45-1.29.1-2.64 0 0 .84-.27 2.75 1.02.79-.22 1.65-.33 2.5-.33.85 0 1.71.11 2.5.33 1.91-1.29 2.75-1.02 2.75-1.02.55 1.35.2 2.39.1 2.64.65.71 1.03 1.6 1.03 2.71 0 3.82-2.34 4.66-4.57 4.91.36.31.69.92.69 1.85V19c0 .27.16.59.67.5C17.14 18.16 20 14.42 20 10A10 10 0 0 0 10 0z"
21+
fill="currentColor" fill-rule="evenodd"></path>
22+
</svg>
23+
</div>
24+
GitHub
25+
</a>
1626
</mat-toolbar>

projects/pioneer-charts-docs/src/app/layout/header/header.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,13 @@
99

1010
.logo-polygon {
1111
fill: #fff;
12+
}
13+
14+
.github-icon {
15+
position: relative;
16+
top: 2px;
17+
width: 24px;
18+
height: 18px;
19+
display: inline-block;
20+
margin-right: 6px;
1221
}

0 commit comments

Comments
 (0)