diff --git a/components/playlists/PlaylistBox.vue b/components/playlists/PlaylistBox.vue index 07360f2..cd9923e 100644 --- a/components/playlists/PlaylistBox.vue +++ b/components/playlists/PlaylistBox.vue @@ -15,7 +15,7 @@ @@ -29,7 +29,7 @@ - {{ props.name }} + {{ props.name }} @@ -59,7 +59,7 @@ .scrolling-text { display: inline-block; - animation: scrollText 10s linear infinite; /* Adjust speed with '10s' */ + animation: scrollText 5s linear infinite; /* Adjust speed with '10s' */ white-space: nowrap; } diff --git a/components/playlists/PlaylistView.vue b/components/playlists/PlaylistView.vue index 2a64d3e..5bc991e 100644 --- a/components/playlists/PlaylistView.vue +++ b/components/playlists/PlaylistView.vue @@ -13,10 +13,10 @@ onMounted(async () => { async function getProfileInformation() { $fetch('http://localhost:3000/api/v1/playlist') - .then((data) => { - playlists.value = [...data] - console.log(playlists.value[1]) - }); + .then((data) => { + playlists.value = [...data] + console.log(playlists.value[1]) + }); } // Computed Classes @@ -33,25 +33,41 @@ const containerClasses = computed(() => { : 'flex gap-1 md:gap-3 mt-6 md:mt-9' );*/ +function addPlaylist() { + const newFriend = { + friend_username: "sfsdf", + } + playlists.value.push(newFriend) +} + - - - - Genre - - - - - - + + + + Genre + + + + + + + + + + + Add Playlist + + - + + diff --git a/layouts/FooterView.vue b/layouts/FooterView.vue index 6381c9d..18f46f4 100644 --- a/layouts/FooterView.vue +++ b/layouts/FooterView.vue @@ -7,7 +7,7 @@ - +
{{ props.name }}
Genre