diff --git a/src/app/page/layout.tsx b/src/app/page/layout.tsx deleted file mode 100644 index 2b861e1..0000000 --- a/src/app/page/layout.tsx +++ /dev/null @@ -1,11 +0,0 @@ -export default function RootLayout({ - children, - }: { - children: React.ReactNode - }) { - return ( - - {children} - - ) - } \ No newline at end of file diff --git a/src/app/page/page.tsx b/src/app/page/page.tsx deleted file mode 100644 index bf19839..0000000 --- a/src/app/page/page.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { getSongs } from "../../lib/useSongs"; - -export default async function Annotations() { - - const data = await getSongs() - - return ( -
- {data.map((song) => ( -

{song.name}

- ))} -
- ); -} diff --git a/src/app/song/page.tsx b/src/app/song/page.tsx deleted file mode 100644 index 08e2ec2..0000000 --- a/src/app/song/page.tsx +++ /dev/null @@ -1,47 +0,0 @@ -'use client'; - -import React, { useState, useEffect } from 'react'; -import AudioPlayer from '../../components/AudioPlayer'; -import { getSong } from "../../lib/useSongs"; -import { Song } from "../../types"; - -export default function SongPage() { - - const [data, setData] = useState({} as Song); - const [error, setError] = useState(null); - - useEffect(() => { - const getData = async () => { - try { - const songData = await getSong(); - setData(songData); - } catch (error) { - } - }; - - getData(); - }, []); - - //const test = document.getElementById("test") as HTMLAudioElement; - - /*const play = () => { - test?.play(); - } - - const pause = () => { - test?.pause(); - } - - function Duration(){ - return

{test?.duration}

; - }*/ - - return ( -
- {data.name} - {data.adress} - -
- ); - } - \ No newline at end of file