From 9d1102c1b3ed43cf1011c02646fa609771b674e9 Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Tue, 26 Mar 2024 13:34:25 +0800 Subject: [PATCH] feat: add component (AudioPlayer) --- public/img/audio-player/next.svg | 4 ++ public/img/audio-player/pause.svg | 4 ++ public/img/audio-player/random.svg | 4 ++ public/img/audio-player/scale.svg | 4 ++ src/app/layout.tsx | 12 ++-- src/app/music/page.tsx | 0 src/app/page.tsx | 23 +------- src/components/AudioPlayer/Player.tsx | 75 ++++++++++++++++++++++++ src/components/AudioPlayer/PlayerBar.tsx | 38 ++++++++++++ src/components/Music/Full.tsx | 0 src/components/index.ts | 4 ++ 11 files changed, 141 insertions(+), 27 deletions(-) create mode 100644 public/img/audio-player/next.svg create mode 100644 public/img/audio-player/pause.svg create mode 100644 public/img/audio-player/random.svg create mode 100644 public/img/audio-player/scale.svg create mode 100644 src/app/music/page.tsx create mode 100644 src/components/AudioPlayer/Player.tsx create mode 100644 src/components/AudioPlayer/PlayerBar.tsx create mode 100644 src/components/Music/Full.tsx diff --git a/public/img/audio-player/next.svg b/public/img/audio-player/next.svg new file mode 100644 index 0000000..84b4d94 --- /dev/null +++ b/public/img/audio-player/next.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/img/audio-player/pause.svg b/public/img/audio-player/pause.svg new file mode 100644 index 0000000..443d1c7 --- /dev/null +++ b/public/img/audio-player/pause.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/img/audio-player/random.svg b/public/img/audio-player/random.svg new file mode 100644 index 0000000..7ded78b --- /dev/null +++ b/public/img/audio-player/random.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/img/audio-player/scale.svg b/public/img/audio-player/scale.svg new file mode 100644 index 0000000..69ebc75 --- /dev/null +++ b/public/img/audio-player/scale.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0c4ffb4..a3af28f 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,7 +1,6 @@ -import { Header, Footer } from '@/components'; +import { Header, Footer, PlayerBar } from '@/components'; import type { Metadata, Viewport } from 'next'; - import './globals.css'; export const metadata: Metadata = { @@ -21,9 +20,12 @@ export const viewport: Viewport = { export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) { return ( -
- {children} -