(spotify) change button and access it event on iOS

This commit is contained in:
2020-07-23 21:46:18 +02:00
parent 7dc2afe538
commit 62902126cf
4 changed files with 26 additions and 5 deletions

3
src/assets/spotify.svg Executable file
View File

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1333.33 1333.3" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd">
<path d="M666.66 0C298.48 0 0 298.47 0 666.65c0 368.19 298.48 666.65 666.66 666.65 368.22 0 666.67-298.45 666.67-666.65C1333.33 298.49 1034.88.03 666.65.03l.01-.04zm305.73 961.51c-11.94 19.58-37.57 25.8-57.16 13.77-156.52-95.61-353.57-117.26-585.63-64.24-22.36 5.09-44.65-8.92-49.75-31.29-5.12-22.37 8.84-44.66 31.26-49.75 253.95-58.02 471.78-33.04 647.51 74.35 19.59 12.02 25.8 37.57 13.77 57.16zm81.6-181.52c-15.05 24.45-47.05 32.17-71.49 17.13-179.2-110.15-452.35-142.05-664.31-77.7-27.49 8.3-56.52-7.19-64.86-34.63-8.28-27.49 7.22-56.46 34.66-64.82 242.11-73.46 543.1-37.88 748.89 88.58 24.44 15.05 32.16 47.05 17.12 71.46V780zm7.01-189.02c-214.87-127.62-569.36-139.35-774.5-77.09-32.94 9.99-67.78-8.6-77.76-41.55-9.98-32.96 8.6-67.77 41.56-77.78 235.49-71.49 626.96-57.68 874.34 89.18 29.69 17.59 39.41 55.85 21.81 85.44-17.52 29.63-55.89 39.4-85.42 21.8h-.03z" fill="#1ed760" fill-rule="nonzero"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,5 +1,5 @@
<template>
<div class="zone-music plume" v-if="isMusicAvailable">
<div class="zone-music plume">
<div class="pm-field">
<label for="use-music" data-pm-holder>
<span
@@ -28,7 +28,7 @@
/>
<ChilledMusic
class="chilled-music"
v-else-if="hasMusic"
v-else-if="isMusicAvailable && hasMusic"
:play="play"
@play="onPlay"
@pause="onPause"
@@ -37,7 +37,10 @@
</label>
</div>
<p v-if="!hasSpotify">
connect with <a href="#" @click.prevent="setHasSpotify(true)">Spotify</a>
<button href="#" @click.prevent="setHasSpotify(true)">
{{ $t('music.useSpotify') }}
<img class="spotify" src="@/assets/spotify.svg" alt="Spotify" />
</button>
</p>
</div>
</template>
@@ -138,6 +141,19 @@ label[data-pm-holder] {
p {
font-family: $serif-font-family;
}
button {
font-family: $serif-font-family;
font-weight: bold;
font-size: 18px;
padding: 0.5rem;
}
.spotify {
display: inline-block;
width: 20px;
vertical-align: middle;
}
</style>
<i18n>

View File

@@ -10,6 +10,7 @@
}
},
"music": {
"loading": "loading..."
"loading": "loading...",
"useSpotify": "For the best experience, use"
}
}

View File

@@ -10,6 +10,7 @@
}
},
"music": {
"loading": "loading..."
"loading": "loading...",
"useSpotify": "Ayez une meilleure expérience avec"
}
}