feat: chip sound effects

This commit is contained in:
2026-04-15 14:37:42 -04:00
Unverified
parent 9c25f1464c
commit 1f7a482e75
10 changed files with 53 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import "./globals.css";
import Celebration from "@/components/Celebration";
import Nav from "@/components/Nav";
import { ConnectionProvider } from "@/lib/connection";
import { CHIP_DROP_SOUND_PATHS } from "@/lib/sfx";
export const metadata: Metadata = {
title: "Connect4 Moderator",
@@ -16,6 +17,17 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<head>
{CHIP_DROP_SOUND_PATHS.map((path) => (
<link
key={path}
rel="preload"
href={path}
as="audio"
type="audio/ogg"
/>
))}
</head>
<body className="min-h-screen bg-gray-950 text-gray-100">
<ConnectionProvider>
<Celebration />