Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Add: audioの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Sea10wood committed Aug 15, 2024
1 parent cbb5b24 commit 453389e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
46 changes: 24 additions & 22 deletions src/components/garary/index.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
import styles from "./index.module.css"
import styles from "./index.module.css";

function Garally() {
return (
<div>
<h1 className={styles.title}>VIRTUAL_NATSUMATSURI</h1>
<div className={styles.nobori}>
<img src="/2D_material/nobori.webp" alt="夏祭り_のぼり" />
</div>
<div className={styles.light}>
<img src="/2D_material/red_small_lite.webp" alt="提灯" />
</div>
<div className={styles.container}>
<div className={styles.logo}>
<img src="/logo.webp" alt="logo" />
</div>
<p className={styles.shop}>VIRTUAL_NATSUMATSURI</p>
</div>
<div className={styles["light-right"]}>
<img src="/2D_material/red_small_lite.webp" alt="提灯" />
</div>
</div>
)
return (
<div>
{/* biome-ignore lint/a11y/useMediaCaption: <explanation> */}
<audio src="/sound/natsu_matsuri.mp3" autoPlay loop />
<h1 className={styles.title}>VIRTUAL_NATSUMATSURI</h1>
<div className={styles.nobori}>
<img src="/2D_material/nobori.webp" alt="夏祭り_のぼり" />
</div>
<div className={styles.light}>
<img src="/2D_material/red_small_lite.webp" alt="提灯" />
</div>
<div className={styles.container}>
<div className={styles.logo}>
<img src="/logo.webp" alt="logo" />
</div>
<p className={styles.shop}>VIRTUAL_NATSUMATSURI</p>
</div>
<div className={styles["light-right"]}>
<img src="/2D_material/red_small_lite.webp" alt="提灯" />
</div>
</div>
);
}
export default Garally;
export default Garally;
4 changes: 2 additions & 2 deletions src/pages/yatai/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import type {
Object3DEventMap,
} from "three";
import { randFloat } from "three/src/math/MathUtils.js";
import Garally from "../../components/garary";
import { useSocketRefStore } from "../../store";
import {
type ActionSchema,
MessageType,
type Target,
} from "../../type/shooting";
import styles from "./index.module.css";
import Garally from "../../components/garary";

const YataiStage = memo(() => {
// 土台
Expand Down Expand Up @@ -217,7 +217,7 @@ function Yatai() {
<div className={styles.container}>
<YataiStage />
<TargetOverlay />
<Garally/>
<Garally />
</div>
);
}
Expand Down

0 comments on commit 453389e

Please sign in to comment.