yt-audio-player

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 452cae78d1d8371933640056cd6fe4bdb5b29672
parent 5fc204339f46146ad0989df8b716eac795ad7f79
Author: minerva-jupiter <ryouturn@gmail.com>
Date:   Thu, 20 Mar 2025 23:48:16 +0900

change favicon & add play icon

Diffstat:
Mbun.lock | 3+++
Mindex.html | 2+-
Mpackage.json | 1+
Apublic/favicon.svg | 35+++++++++++++++++++++++++++++++++++
Dpublic/vite.svg | 2--
Msrc/App.vue | 4+++-
Msrc/components/AlbumList.vue | 2+-
Msrc/components/ArtistsList.vue | 2+-
Asrc/components/PlayUI.vue | 8++++++++
Msrc/components/SongList.vue | 10+++++++++-
10 files changed, 62 insertions(+), 7 deletions(-)

diff --git a/bun.lock b/bun.lock @@ -6,6 +6,7 @@ "dependencies": { "@types/node": "^22.13.10", "bootstrap": "^5.3.3", + "bootstrap-icons": "^1.11.3", "sass": "^1.86.0", "sass-embedded": "^1.86.0", "vue": "3.5.13", @@ -195,6 +196,8 @@ "bootstrap": ["bootstrap@5.3.3", "", { "peerDependencies": { "@popperjs/core": "^2.11.8" } }, "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg=="], + "bootstrap-icons": ["bootstrap-icons@1.11.3", "", {}, "sha512-+3lpHrCw/it2/7lBL15VR0HEumaBss0+f/Lb6ZvHISn1mlK83jjFpooTLsMWbIjJMDjDjOExMsTxnXSIT4k4ww=="], + "brace-expansion": ["brace-expansion@2.0.1", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="], "braces": ["braces@3.0.3", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="], diff --git a/index.html b/index.html @@ -2,7 +2,7 @@ <html lang="en" data-bs-theme="dark"> <head> <meta charset="UTF-8" /> - <link rel="icon" type="image/svg+xml" href="/vite.svg" /> + <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>yt-audio-player</title> </head> diff --git a/package.json b/package.json @@ -11,6 +11,7 @@ "dependencies": { "@types/node": "^22.13.10", "bootstrap": "^5.3.3", + "bootstrap-icons": "^1.11.3", "sass": "^1.86.0", "sass-embedded": "^1.86.0", "vue": "3.5.13", diff --git a/public/favicon.svg b/public/favicon.svg @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + width="512" + height="512" + viewBox="0 0 512 512" + version="1.1" + id="svg1" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"> + <defs + id="defs1" /> + <g + id="layer1"> + <rect + style="fill:#000000;stroke-width:5" + id="rect1" + width="512" + height="512" + x="0" + y="0" /> + <text + xml:space="preserve" + style="font-weight:900;font-size:466.667px;font-family:'Noto Sans JP';-inkscape-font-specification:'Noto Sans JP Heavy';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#ff0031;fill-opacity:1;stroke-width:5.03355" + x="103.73334" + y="-85" + id="text1" + transform="rotate(90)"><tspan + id="tspan1" + x="103.73334" + y="-85" + style="font-size:466.667px;stroke-width:5.03355">A</tspan></text> + </g> +</svg> diff --git a/public/vite.svg b/public/vite.svg @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>- \ No newline at end of file diff --git a/src/App.vue b/src/App.vue @@ -1,5 +1,6 @@ <script setup lang="ts"> -import { RouterView } from 'vue-router' +import { RouterView } from 'vue-router'; +import PlayUI from './components/PlayUI.vue'; </script> <template> @@ -23,6 +24,7 @@ import { RouterView } from 'vue-router' <div class="container"> <RouterView/> </div> + <PlayUI/> </div> </template> diff --git a/src/components/AlbumList.vue b/src/components/AlbumList.vue @@ -3,7 +3,7 @@ import albums from '../assets/albums.json'; </script> <template> - <h1>AlbumList: {{ albums[$route.params.artist_id].AlbumArtist }}</h1> + <h2>AlbumList: {{ albums[$route.params.artist_id].AlbumArtist }}</h2> <div class="card m-3" style="width: 18rem;" v-for="(Albums, index) in albums[$route.params.artist_id].Albums" @click="() => $router.push(`/artist/${$route.params.artist_id}/album/${index}`)"> <img class="card-img-top" :src=Albums.items[0].snippet.thumbnails.medium.url alt="Album Cover" /> <div class="card-body"> diff --git a/src/components/ArtistsList.vue b/src/components/ArtistsList.vue @@ -3,7 +3,7 @@ import albums from '../assets/albums.json'; </script> <template> - <h1>ArtistList</h1> + <h2>ArtistList</h2> <div class="card m-3" style="width: 18rem;" v-for="(artists, index) in albums" @click="() => $router.push(`/artist/${index}`)"> <div class="card-body"> <h5 class="card-title">{{ artists.AlbumArtist }}</h5> diff --git a/src/components/PlayUI.vue b/src/components/PlayUI.vue @@ -0,0 +1,7 @@ +<template> + <div class="fixed-bottom"> + <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16"> + <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393"/> + </svg> + </div> +</template>+ \ No newline at end of file diff --git a/src/components/SongList.vue b/src/components/SongList.vue @@ -1,7 +1,15 @@ <script setup lang="ts"> import albums from '../assets/albums.json'; +albums[0].Albums[0].items[0].snippet.title </script> <template> - <h1>{{ albums[$route.params.artist_id].Albums[$route.params.album_id].AlbumTitle }}</h1> + <h2>{{ albums[$route.params.artist_id].Albums[$route.params.album_id].AlbumTitle }}</h2> + <div> + <ul class="list-group"> + <li v-for="(song, index) in albums[$route.params.artist_id].Albums[$route.params.album_id].items" class="list-group-item"> + {{ song.snippet.title }} + </li> + </ul> + </div> </template> \ No newline at end of file