Skip to content

Commit

Permalink
feat: moved audiplayer to its own page and updated URL to actual audio
Browse files Browse the repository at this point in the history
  • Loading branch information
gracebw7 committed Feb 11, 2025
1 parent de4caf2 commit 5fa05fb
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverActions: true,
optimizePackageImports: ["@chakra-ui/react"],
},
images: {
Expand Down
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@shelf/jest-mongodb": "^4.3.2",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@types/howler": "^2.2.12",
"@types/jest": "^29.5.14",
"@types/node": "^20",
"@types/react": "^18",
Expand Down
17 changes: 17 additions & 0 deletions src/app/audioplayer/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"use client";
import { useState, useRef } from "react";
import Navbar from "@/components/Navbar";
import AudioPlayer from "@/components/AudioPlayer";

export default function Page() {
return (
<main>
<Navbar />
<h1 className="text-3xl font-bold underline">Hello world!</h1> {/* sample audio formatting */}
<AudioPlayer
audioURL="https://og83eubqb6o3yptf.public.blob.vercel-storage.com/Bill_Deneen_Kathleen_Final-KDIk27mD6mgRGoXc2MyH7NLrmvXFAR.wav"
name="Test Audio"
/>
</main>
);
}
5 changes: 0 additions & 5 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import Navbar from "@/components/Navbar";
import AudioPlayer from "@/components/AudioPlayer";

export default function Home() {
return (
<main>
<Navbar />
<h1 className="text-3xl font-bold underline">Hello world!</h1> {/* sample audio formatting */}
<AudioPlayer audioURL="https://www.example.com/sample-audio.mp3" name="Sample Audio" />
</main>
);
s;
}

0 comments on commit 5fa05fb

Please sign in to comment.