-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[S03P31A503-114] feature/FE/singing : Add basic singing mode design &…
… function
- Loading branch information
1 parent
3e672ba
commit ea6da61
Showing
9 changed files
with
216 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
node_modules | ||
/dist | ||
|
||
secrets.json | ||
|
||
# local env files | ||
.env.local | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
URL: '', | ||
YOUTUBE_URL: "https://www.googleapis.com/youtube/v3/search", | ||
ROUTES: { | ||
} | ||
} |
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
84 changes: 84 additions & 0 deletions
84
frontend/src/components/meetingpage/multipanel/SingingPanel.vue
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,84 @@ | ||
<template> | ||
<div class="d-flex flex-column justify-content-between p-2 px-5 w-100"> | ||
<h3>노래방</h3> | ||
<div class="song-screen" v-if="selectedSong"> | ||
<div class="embed-responsive embed-responsive-16by9"> | ||
<iframe | ||
class="embed-responsive-item" | ||
:src="`https://www.youtube.com/embed/${selectedSong.id.videoId}?autoplay=1`" | ||
frameborder="0" | ||
allow="autoplay; encrypted-media" | ||
></iframe> | ||
</div> | ||
</div> | ||
<div class="song-select" v-else> | ||
<v-text-field | ||
v-model="songKeyword" | ||
label="노래를 검색하세요 :)" | ||
color="#BDBDBD" | ||
dark | ||
@keyup.enter="searchSong(songKeyword)" | ||
></v-text-field> | ||
<div class="row"> | ||
<div | ||
class="my-1" | ||
:class="{'col-6' : isGumyoung(song), 'col-0' : !isGumyoung(song) }" | ||
v-for="song in songs" | ||
:key="song.etag" | ||
v-show="isGumyoung(song)" | ||
> | ||
<img | ||
class="song-thumbnail" | ||
:src="song.snippet.thumbnails.medium.url" | ||
:alt="song.snippet.title" | ||
@click="selectSong(song)" | ||
> | ||
<!-- <p>{{ song.snippet.title }}</p> --> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</template> | ||
|
||
<script> | ||
import { mapActions, mapState } from 'vuex' | ||
export default { | ||
name: 'SingingPanel', | ||
data() { | ||
return { | ||
songKeyword: null | ||
} | ||
}, | ||
computed: { | ||
...mapState('meetingStore', ['selectedSong', 'songs']) | ||
}, | ||
methods: { | ||
...mapActions('meetingStore', ['searchSong', 'selectSong', 'closeSingingPanel']), | ||
isGumyoung(song) { | ||
if (song.snippet.channelTitle === '금영 노래방 공식 유튜브 채널') { | ||
return true | ||
} else { | ||
return false | ||
} | ||
} | ||
}, | ||
beforeDestroy() { | ||
this.closeSingingPanel() | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
* { | ||
color: white; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.song-thumbnail { | ||
max-width: 150px; | ||
max-height: 84px; | ||
cursor: pointer; | ||
} | ||
</style> |
2 changes: 1 addition & 1 deletion
2
frontend/src/components/meetingpage/multipanel/SnapShotPanel.vue
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
Oops, something went wrong.