Skip to content

Commit

Permalink
Done
Browse files Browse the repository at this point in the history
  • Loading branch information
yuga-cb committed Oct 4, 2024
1 parent 6497ac5 commit 48298d2
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default function Page() {

const { data: resolvedAddress, isError, isLoading, error: resolutionError } = useEnsAddress({
name: ensName,
// Basename resolver
universalResolverAddress: BASE_RESOLVER_ADDRESS
});

Expand Down Expand Up @@ -207,7 +206,7 @@ export default function Page() {
<div className="flex flex-col w-[600px] max-w-full items-center justify-center rounded-xl p-6">
<div className="w-full mb-6">
<h3 className="text-xl font-semibold mb-3">Record with Microphone</h3>
<div className="flex gap-4">
<div className="flex gap-4 items-center">
<button
className={`${isRecording ? 'bg-gray-400 cursor-not-allowed' : 'bg-[#4f46e5] hover:bg-[#4338ca]'} text-white px-6 py-2 rounded-lg font-bold`}
onClick={startRecording}
Expand All @@ -222,14 +221,14 @@ export default function Page() {
>
Stop Recording
</button>
</div>
</div>

<div className="w-full mb-6">
<h3 className="text-xl font-semibold mb-3">Record System Audio (e.g. Zoom Call)</h3>
<div className="flex gap-4">
<button className="bg-[#4f46e5] hover:bg-[#4338ca] text-white px-6 py-2 rounded-lg font-bold">Start Recording</button>
<button className="bg-gray-400 text-white px-6 py-2 rounded-lg cursor-not-allowed font-bold" disabled>Stop Recording</button>
{isRecording && (
<div className="flex items-center">
<div className="animate-pulse flex space-x-4">
<div className="rounded-full bg-red-400 h-3 w-3"></div>
</div>
<span className="ml-2">Recording...</span>
</div>
)}
</div>
</div>

Expand Down Expand Up @@ -272,4 +271,4 @@ export default function Page() {
<Footer />
</div>
);
}
}

0 comments on commit 48298d2

Please sign in to comment.