1
+ <template >
2
+ <div class =" sanya-loh__music-wrapper" >
3
+ <button v-if =" windowWidth < 1000" class =" sanya-loh__menu-wrapper" @click =" toggleMenu" >
4
+ <svg xmlns =" http://www.w3.org/2000/svg" x =" 0px" y =" 0px" width =" 40" height =" 40" viewBox =" 0 0 50 50" >
5
+ <path d =" M 0 7.5 L 0 12.5 L 50 12.5 L 50 7.5 Z M 0 22.5 L 0 27.5 L 50 27.5 L 50 22.5 Z M 0 37.5 L 0 42.5 L 50 42.5 L 50 37.5 Z" fill =" pink" ></path >
6
+ </svg >
7
+ </button >
8
+ <transition name =" bounce" >
9
+ <ul class =" sanya-loh__music-list" v-if =" windowWidth > 1000 || isMenuOpened" >
10
+ <li v-for =" item in musicOptions" :key =" item.id" class =" sanya-loh__music-item" @click =" chooseAudio(item)" >
11
+ <img class =" sanya-loh__music-img" :src =" item.img_src"
12
+ alt =" nigga-music" >
13
+ <p class =" sanya-loh__item-descr" >
14
+ {{ item.option_label }}
15
+ </p >
16
+ </li >
17
+ </ul >
18
+ </transition >
19
+ </div >
20
+ </template >
21
+ <script >
22
+ import gtaSound from " @/assets/gta san.mp3" ;
23
+ import blowjoberSound from " @/assets/sanya-loh.mp3" ;
24
+ import chinaSound from " @/assets/china sound.mp3" ;
25
+ import penisMusic from " @/assets/penis music.mp3" ;
26
+
27
+ export default {
28
+ name: " MusicOptions" ,
29
+ props: {
30
+ audio: {
31
+ type: Object ,
32
+ required: true ,
33
+ },
34
+ clicked: {
35
+ type: Boolean ,
36
+ default: false ,
37
+ },
38
+ },
39
+ data () {
40
+ return {
41
+ isMenuOpened: false ,
42
+ windowWidth: window .innerWidth ,
43
+ musicOptions: [
44
+ {
45
+ id: 1 ,
46
+ option_name: ' nigga_chan' ,
47
+ option_label: ' nigga chan' ,
48
+ img_src: require (' ../assets/sanya-loh__music-nigga-head-Photoroom.png-Photoroom.png' ),
49
+ audio_src: gtaSound,
50
+ },
51
+ {
52
+ id: 2 ,
53
+ option_name: ' china_credit_gimn' ,
54
+ option_label: ' china credit gimn' ,
55
+ img_src: require (' ../assets/sanya-loh__music-nigga-head-second.png' ),
56
+ audio_src: chinaSound,
57
+ },
58
+ {
59
+ id: 3 ,
60
+ option_name: ' penis_music' ,
61
+ option_label: ' penis music' ,
62
+ img_src: require (' ../assets/penis.png' ),
63
+ audio_src: penisMusic,
64
+ },
65
+ {
66
+ id: 4 ,
67
+ option_name: ' sanya_sosi' ,
68
+ option_label: ' sanya blowjober' ,
69
+ img_src: require (' ../assets/728757-200.png' ),
70
+ audio_src: blowjoberSound,
71
+ },
72
+ ]
73
+ }
74
+ },
75
+ methods: {
76
+ onResize () {
77
+ this .windowWidth = window .innerWidth ;
78
+ },
79
+ toggleMenu () {
80
+ this .isMenuOpened = ! this .isMenuOpened ;
81
+ },
82
+ chooseAudio (item ) {
83
+ this .$emit (' music-stop' );
84
+ this .$emit (' music-replace' , new Audio (item .audio_src ), item);
85
+ if (this .clicked ) {
86
+ this .$emit (' music-start' );
87
+ }
88
+ },
89
+ }
90
+ }
91
+ </script >
92
+
93
+ <style lang="scss" scoped>
94
+ .sanya-loh__music-wrapper {
95
+ display : grid ;
96
+ gap : 10px ;
97
+ width : 290px ;
98
+ height : 200px ;
99
+ background : linear-gradient (red , orange , yellow , green , blue , purple );
100
+ border-radius : 30px ;
101
+ box-shadow : 2px 2px 10px black ;
102
+ overflow : hidden ;
103
+ padding : 20px ;
104
+
105
+ .sanya-loh__menu-wrapper {
106
+ display : flex ;
107
+ align-items : center ;
108
+ justify-content : center ;
109
+ border-radius : 100% ;
110
+ background : brown ;
111
+ width : 60px ;
112
+ height : 60px ;
113
+ cursor : pointer ;
114
+ border : 2px solid pink ;
115
+ transition : .3s ;
116
+
117
+ & :hover {
118
+ border : 2px solid #ca6b7d ;
119
+ }
120
+ }
121
+ }
122
+
123
+
124
+ .sanya-loh__music-item {
125
+ display : flex ;
126
+ align-items : center ;
127
+ letter-spacing : 2px ;
128
+ cursor : pointer ;
129
+ }
130
+
131
+ .sanya-loh__item-descr {
132
+ font-size : 25px ;
133
+ font-family : " Sevillana" , cursive;
134
+ font-weight : 400 ;
135
+ font-style : normal ;
136
+ padding : 0 ;
137
+ margin : 0 ;
138
+ user-select : none ;
139
+ transition : .3s ;
140
+ color : white ;
141
+ }
142
+
143
+ .sanya-loh__music-item :hover .sanya-loh__music-img {
144
+ transform : rotate (9999deg );
145
+ }
146
+
147
+ .sanya-loh__music-img {
148
+ width : 60px ;
149
+ height : 60px ;
150
+ user-select : none ;
151
+ margin-right : 10px ;
152
+ transition : transform 5s ease-in-out ;
153
+ }
154
+
155
+
156
+ .sanya-loh__music-list {
157
+ margin : 0 ;
158
+ list-style : none ;
159
+ transition : .3s ;
160
+ height : 170px ;
161
+ overflow-y : auto ;
162
+ overflow-x : hidden ;
163
+ padding : 10px ;
164
+ }
165
+
166
+
167
+ .sanya-loh__item-descr :hover {
168
+ text-shadow : 2px 0 blue , -2px 0 blue , 0 2px blue , 0 -2px blue ,
169
+ 1px 1px blue , -1px -1px blue , 1px -1px blue , -1px 1px blue ;
170
+
171
+ color : red ;
172
+ }
173
+
174
+ .bounce-enter-active {
175
+ animation : bounce- in .5s ;
176
+ }
177
+ .bounce-leave-active {
178
+ animation : bounce- in .5s reverse ;
179
+ }
180
+ @keyframes bounce-in {
181
+ 0% {
182
+ transform : scale (0 );
183
+ }
184
+ 50% {
185
+ transform : scale (1.5 );
186
+ }
187
+ 100% {
188
+ transform : scale (1 );
189
+ }
190
+ }
191
+ </style >
0 commit comments