Skip to content

Commit d1921b0

Browse files
committed
adds github links to roadmap page
1 parent 2bac895 commit d1921b0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/app/roadmap/roadmap.component.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ng-template #projectTpl let-project>
22
<section
3-
class="group rounded-lg shadow-lg bg-secondary/20 dark:text-white py-8 px-4 pt-2">
3+
class="group rounded-lg shadow-lg bg-secondary/20 dark:text-white py-2 px-4">
44
<h2>{{ project.title }}</h2>
55
<p>{{ project.shortDescription }}</p>
66
<div class="flex flex-row relative items-center px-1">
@@ -16,6 +16,13 @@ <h2>{{ project.title }}</h2>
1616
<div
1717
class="rounded-full w-8 h-8 bg-transparent ring-2 shadow-lg ring-black dark:ring-white overflow-hidden"></div>
1818
</div>
19+
<p class="flex flex-row justify-end text-sm mb-0 mt-4">
20+
<a
21+
target="_blank"
22+
[href]="'https://github.com/orgs/ecsact-dev/projects/' + project.id"
23+
><span class="i24">open_in_new</span> View GitHub Project</a
24+
>
25+
</p>
1926
</section>
2027
</ng-template>
2128

src/app/roadmap/roadmap.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component, ChangeDetectionStrategy} from '@angular/core';
22
import {BehaviorSubject, from, Observable} from 'rxjs';
33

44
export interface IRoadmapProject {
5-
title: string;
5+
id: number;
6+
title: string | null;
67
shortDescription: string;
78
readme: string;
89
}
@@ -20,6 +21,7 @@ export class RoadmapComponent {
2021
// TODO(zaucy): Fetch from GitHub
2122
this.projects$ = new BehaviorSubject([
2223
{
24+
id: 4,
2325
title: 'Async API',
2426
shortDescription: 'TODO: Fetch description from GitHub',
2527
readme: '',

0 commit comments

Comments
 (0)