-
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
130 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions
60
apps/taiga-lumbermill/src/dashboards/iot/components/music/music.component.html
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<div | ||
tuiAppearance="whiteblock" | ||
tuiCardLarge="normal" | ||
class="card" | ||
> | ||
<header tuiHeader> | ||
<h2 | ||
tuiTitle | ||
[style.text-align]="'center'" | ||
> | ||
Music | ||
</h2> | ||
</header> | ||
<div class="info"> | ||
<img | ||
src="/music_1.jpg" | ||
class="logo" | ||
/> | ||
<h2 class="tui-space_top-4 tui-space_bottom-2">Believer</h2> | ||
<p | ||
class="tui-space_top-0 tui-space_bottom-0" | ||
[style.color]="'var(--tui-text-primary)'" | ||
> | ||
Imagine Dragons | ||
</p> | ||
</div> | ||
<div> | ||
<input | ||
size="m" | ||
tuiSlider | ||
type="range" | ||
value="60" | ||
[formControl]="play" | ||
/> | ||
<div class="numbers"> | ||
<p class="tui-space_top-0 tui-space_bottom-0">00:013</p> | ||
<p class="tui-space_top-0 tui-space_bottom-0">00:52</p> | ||
</div> | ||
</div> | ||
<div class="buttons"> | ||
<tui-icon icon="@tui.shuffle" /> | ||
<tui-icon icon="@tui.skip-back" /> | ||
<tui-icon icon="@tui.circle-play" /> | ||
<tui-icon icon="@tui.skip-forward" /> | ||
<tui-icon icon="@tui.repeat" /> | ||
</div> | ||
<hr /> | ||
<div class="volume"> | ||
<tui-icon icon="@tui.volume-1" /> | ||
<input | ||
size="m" | ||
tuiSlider | ||
type="range" | ||
value="60" | ||
[formControl]="volume" | ||
[style.color]="'var(--tui-status-info)'" | ||
/> | ||
<tui-icon icon="@tui.volume-2" /> | ||
</div> | ||
</div> |
29 changes: 29 additions & 0 deletions
29
apps/taiga-lumbermill/src/dashboards/iot/components/music/music.component.less
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.numbers { | ||
display: flex; | ||
justify-content: space-between; | ||
color: var(--tui-text-primary); | ||
} | ||
|
||
.buttons { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-around; | ||
} | ||
|
||
.volume { | ||
display: flex; | ||
align-items: center; | ||
gap: 0.5rem; | ||
} | ||
|
||
.info { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.logo { | ||
border-radius: 0.5rem; | ||
width: 9rem; | ||
height: 9rem; | ||
} |
33 changes: 33 additions & 0 deletions
33
apps/taiga-lumbermill/src/dashboards/iot/components/music/music.component.ts
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import {CommonModule} from '@angular/common'; | ||
import {ChangeDetectionStrategy, Component} from '@angular/core'; | ||
import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms'; | ||
import {TuiAppearance, TuiIcon, TuiTitle} from '@taiga-ui/core'; | ||
import {TuiHeader} from '@taiga-ui/experimental'; | ||
import {TuiSliderComponent} from '@taiga-ui/kit'; | ||
import {TuiCardLarge} from '@taiga-ui/layout'; | ||
|
||
// import {MusicService} from './music.service'; | ||
|
||
@Component({ | ||
standalone: true, | ||
selector: 'lmb-music', | ||
imports: [ | ||
CommonModule, | ||
TuiAppearance, | ||
TuiCardLarge, | ||
TuiTitle, | ||
TuiHeader, | ||
TuiSliderComponent, | ||
FormsModule, | ||
ReactiveFormsModule, | ||
TuiIcon, | ||
], | ||
templateUrl: './music.component.html', | ||
styleUrl: './music.component.less', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class MusicComponent { | ||
protected value = 4; | ||
protected play = new FormControl(60); | ||
protected volume = new FormControl(0); | ||
} |
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