Skip to content

Commit

Permalink
SolidStudies - Added interface
Browse files Browse the repository at this point in the history
  • Loading branch information
hanschrome committed Mar 26, 2023
1 parent 0b48557 commit 3e64888
Showing 1 changed file with 5 additions and 2 deletions.
@@ -1,7 +1,7 @@
<div class="container" *ngIf="course && lectures">
<h5>Curso: {{ course.title }}</h5>
<h5>{{ course.title }}</h5>
<p>Duración: {{ Math.ceil(course.duration/3600) }} horas</p>
<h6>Lección {{ currentLectureIndex + 1 }} de {{ lectures.length }}: <b>{{ lectures[currentLectureIndex]?.skill }}</b></h6>
<h6>Lección {{ currentLectureIndex + 1 }} de {{ lectures.length }}</h6>
<div class="video-container">
<div class="progress">
<div class="determinate" [style.width]="(currentLectureIndex/lectures.length * 100+10) + '%'"></div>
Expand All @@ -13,6 +13,9 @@ <h6>Lección {{ currentLectureIndex + 1 }} de {{ lectures.length }}: <b>{{ lectu
allowfullscreen
></iframe>
</div>
<div>
<b>{{ lectures[currentLectureIndex]?.skill }}</b>
</div>
<div class="lecture-navigation">
<button title="Vídeo anterior" class="btn" (click)="goToPreviousLecture()" [disabled]="currentLectureIndex === 0">&larr;</button>
<button title="Siguiente vídeo" class="btn" (click)="goToNextLecture()" [disabled]="currentLectureIndex === lectures.length - 1 || lectures[currentLectureIndex].status === 0">&rarr;</button>
Expand Down

0 comments on commit 3e64888

Please sign in to comment.