-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
44 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
<div appButton class="track"> | ||
@if(!isLoading()){ | ||
<div class="song-info"> | ||
<img [alt]="track()?.name" class="track-img" width="90" height="90" [ngSrc]="track()?.album?.images?.[1]?.url ?? ''"> | ||
<div class="album-artist"> | ||
<h2 class="name">{{track()?.name}}</h2> | ||
<span class="album-name"> | ||
{{track()?.album?.name}} | ||
</span> | ||
<div class="track-artist"> | ||
@for(artist of track()?.artists; track artist.id){ | ||
<span class="artist">{{artist.name}}</span> | ||
} | ||
</div> | ||
<button appButton class="track"> | ||
@if(!isLoading()){ | ||
<div class="song-info"> | ||
<img [alt]="track()?.name" class="track-img" width="90" height="90" | ||
[ngSrc]="track()?.album?.images?.[1]?.url ?? ''"> | ||
<div class="album-artist"> | ||
<h2 class="name">{{track()?.name}}</h2> | ||
<span class="album-name"> | ||
{{track()?.album?.name}} | ||
</span> | ||
<div class="track-artist"> | ||
@for(artist of track()?.artists; track artist.id){ | ||
<span class="artist">{{artist.name}}</span> | ||
} | ||
</div> | ||
</div> | ||
<span class="time">{{track()?.duration_ms ?? 0 | duration}} | ||
</span> | ||
} | ||
@if(isLoading()){ | ||
<div class="song-info"> | ||
</div> | ||
<span class="time">{{track()?.duration_ms ?? 0 | duration}} | ||
</span> | ||
} | ||
@if(isLoading()){ | ||
<div class="song-info"> | ||
<ngx-skeleton-loader animation="progress-dark" count="1" | ||
[theme]="{ height: '90px', width: '90px', 'background-color': '#2c2f31' }"></ngx-skeleton-loader> | ||
<div class="album-artist"> | ||
<ngx-skeleton-loader animation="progress-dark" count="1" | ||
[theme]="{ height: '90px', width: '90px', 'background-color': '#2c2f31' }"></ngx-skeleton-loader> | ||
<div class="album-artist"> | ||
<ngx-skeleton-loader animation="progress-dark" count="1" | ||
[theme]="{ height: '32px', width: '160px', 'background-color': '#2c2f31' }"></ngx-skeleton-loader> | ||
<ngx-skeleton-loader class="artist-skeleton" animation="progress-dark" count="2" | ||
[theme]="{ height: '16px', width: '150px', 'background-color': '#2c2f31' }"></ngx-skeleton-loader> | ||
</div> | ||
[theme]="{ height: '32px', width: '160px', 'background-color': '#2c2f31' }"></ngx-skeleton-loader> | ||
<ngx-skeleton-loader class="artist-skeleton" animation="progress-dark" count="2" | ||
[theme]="{ height: '16px', width: '150px', 'background-color': '#2c2f31' }"></ngx-skeleton-loader> | ||
</div> | ||
<span class="time"> | ||
<ngx-skeleton-loader animation="progress-dark" count="1" | ||
[theme]="{ height: '16px', width: '30px', 'background-color': '#2c2f31' }"></ngx-skeleton-loader> | ||
</span> | ||
} | ||
</div> | ||
</div> | ||
<span class="time"> | ||
<ngx-skeleton-loader animation="progress-dark" count="1" | ||
[theme]="{ height: '16px', width: '30px', 'background-color': '#2c2f31' }"></ngx-skeleton-loader> | ||
</span> | ||
} | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters