added navigation to the github repository for the skill
parent
1f1fddd54c
commit
eb7b75e9ba
|
@ -12,10 +12,14 @@
|
|||
</div>
|
||||
<div class="skill-detail-header-right">
|
||||
<button mat-button>INSTALL</button>
|
||||
<div class="mat-body-1">
|
||||
<button
|
||||
mat-flat-button
|
||||
class="github-button"
|
||||
(click)="navigateToGithubRepo(skill.repository_url)"
|
||||
>
|
||||
<fa-icon [icon]="githubIcon"></fa-icon>
|
||||
GitHub Repository
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -34,7 +38,7 @@
|
|||
<div class="mat-body-1">{{skill.description}}</div>
|
||||
</div>
|
||||
<div class="skill-detail-section">
|
||||
<div class="mat-subheading-1">AUTHOR</div>
|
||||
<div class="mat-subheading-1">AUTHOR(S)</div>
|
||||
<div class="mat-body-1">{{skill.author}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
@import '../../../stylesheets/global';
|
||||
|
||||
.skill-detail {
|
||||
height: 800px;
|
||||
max-width: 1000px;
|
||||
.skill-detail-header {
|
||||
background-color: $mycroft-blue-grey;
|
||||
|
@ -11,7 +10,7 @@
|
|||
padding: 30px;
|
||||
.skill-detail-header-left {
|
||||
color: $mycroft-secondary;
|
||||
width: 75%;
|
||||
width: 70%;
|
||||
h1 {
|
||||
font-family: 'Roboto Mono', monospace;
|
||||
margin-bottom: 15px;
|
||||
|
@ -23,17 +22,17 @@
|
|||
}
|
||||
}
|
||||
.skill-detail-header-right {
|
||||
width: 25%;
|
||||
width: 30%;
|
||||
button {
|
||||
@include action-button;
|
||||
margin-top: 5px;
|
||||
width: 135px;
|
||||
width: 160px;
|
||||
}
|
||||
.mat-body-1 {
|
||||
.github-button {
|
||||
background-color: $mycroft-blue-grey;
|
||||
color: $mycroft-dark-grey;
|
||||
padding-top: 10px;
|
||||
fa-icon {
|
||||
margin-right: 5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -42,13 +41,12 @@
|
|||
background-color: $mycroft-white;
|
||||
border-bottom-left-radius: 10px;
|
||||
border-bottom-right-radius: 10px;
|
||||
height: 600px;
|
||||
padding: 30px;
|
||||
.mat-subheading-1 {
|
||||
color: $mycroft-dark-grey
|
||||
}
|
||||
.skill-detail-body-left {
|
||||
width: 75%;
|
||||
width: 70%;
|
||||
button {
|
||||
@include skill-trigger-button;
|
||||
@include ellipsis-overflow;
|
||||
|
@ -56,7 +54,7 @@
|
|||
}
|
||||
}
|
||||
.skill-detail-body-right {
|
||||
width: 25%;
|
||||
width: 30%;
|
||||
img {
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
|
|
@ -31,6 +31,9 @@ export class SkillDetailComponent implements OnInit {
|
|||
);
|
||||
}
|
||||
|
||||
navigateToGithubRepo(githubRepoUrl) {
|
||||
window.open(githubRepoUrl);
|
||||
}
|
||||
// returnToSummary() {
|
||||
// this.router.navigate(['/skills']);
|
||||
// }
|
||||
|
|
Loading…
Reference in New Issue