From 5199dac5b14af31e73eab80c60a1151034dc0e0f Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 30 Oct 2023 08:56:09 +0100 Subject: [PATCH] progress on internal fancy view --- frontend/src/components/fancyView.vue | 87 ++++++++++++++++++++++++--- frontend/src/components/player.vue | 2 +- 2 files changed, 79 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/fancyView.vue b/frontend/src/components/fancyView.vue index 608de2e..112f8a3 100644 --- a/frontend/src/components/fancyView.vue +++ b/frontend/src/components/fancyView.vue @@ -3,13 +3,34 @@ music_note -
-
-
{{ playbackPosBeautified }}
-
{{ durationBeautified }}
+
+
+

{{ song.title }}

+

{{ song.artist }}

+
+
+ skip_previous + replay_10 + play_arrow + pause + forward_10 + skip_next +
+
+ +
+
{{ playbackPosBeautified }}
+
{{ durationBeautified }}
+
+
+
+ shuffle + shuffle_on + repeat + repeat_one_on + repeat_on
-
@@ -30,6 +51,7 @@ justify-content: center; align-items: center; position: fixed; + flex-direction: column; z-index: 20; height: 100vh; width: 100vw; @@ -38,10 +60,57 @@ background-color: var( --background-color ); } + .controls-wrapper { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + } + + .slider-wrapper { + position: relative; + margin-top: 40px; + width: 40vh; + margin-bottom: 20px + } + .fancy-view-song-art { height: 40vh; width: auto; - margin-bottom: 5%; + margin-bottom: 20px; + } + + .controls { + width: 50vw; + display: flex; + justify-content: center; + align-items: center; + } + + .control-icon { + cursor: pointer; + font-size: 3vh; + user-select: none; + } + + .play-pause { + font-size: 5vh; + } + + .playback-pos-info { + display: flex; + flex-direction: row; + width: 98%; + margin-left: 1%; + position: absolute; + bottom: 17px; + left: 0; + } + + .shuffle-repeat-wrapper { + display: flex; + justify-content: center; + align-items: center; } @@ -49,8 +118,8 @@ import SliderView from './sliderView.vue'; export default { methods: { - control ( instruction, value ) { - + control ( instruction ) { + this.$emit( 'control', instruction ); }, setPos ( pos ) { this.$emit( 'posUpdate', pos ); diff --git a/frontend/src/components/player.vue b/frontend/src/components/player.vue index eb7515b..8c6de14 100644 --- a/frontend/src/components/player.vue +++ b/frontend/src/components/player.vue @@ -42,7 +42,7 @@
-