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

Commit

Permalink
Merge branch 'main' into feat/recieve-hit-count
Browse files Browse the repository at this point in the history
  • Loading branch information
claustra01 authored Aug 15, 2024
2 parents 213b15e + 8b5b814 commit 7db9a04
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"ignorePaths": ["node_modules/**", "*.svg"],
"version": "0.2",
"language": "en",
"words": ["NATSUMATSURI", "yatai", "Dela", "Yuji", "Syuku", "zustand", "wadaiko", "qrcode"]
"words": ["NATSUMATSURI", "yatai", "Dela", "Yuji", "Syuku", "zustand", "wadaiko", "qrcode","nobori","natsu","matsuri"]
}
61 changes: 61 additions & 0 deletions src/components/Gallery/index.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
h1{
font-size: 40px;
}

.title{
position: absolute;
top: 0;
left: 0;
z-index: 1;
padding: 16px;
margin: 0;
}
.nobori img{
position: absolute;
bottom: 0;
left: -240px;
height: 80vh;
aspect-ratio: 1 / 1;
z-index: -1;
}

.light img{
position: absolute;
top: 0;
left: 0px;
height: 80vh;
aspect-ratio: 1 / 1;
z-index: -1;
}

.container {
display: flex;
align-items: flex-end;
position: absolute;
bottom: 16px;
left: 4vw;
z-index: 1;
}

.logo img {
height: 16vh;
aspect-ratio: 1 / 1;
margin-right: 2vw;
}

.shop {
color: var(--white);
font-size: 4vw;
padding: 16px;
margin: 0;
}

.light-right img{
position: absolute;
top: 0;
right: 0px;
height: 80vh;
aspect-ratio: 1 / 1;
z-index: -1;
transform: scale(-1, 1);
}
32 changes: 32 additions & 0 deletions src/components/Gallery/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import styles from "./index.module.css";

function Gallery() {
return (
<div>
{/* biome-ignore lint/a11y/useMediaCaption: 夏祭りの音を再生します。 */}
<audio
src="/sound/natsu_matsuri.mp3"
autoPlay
loop
aria-label="夏祭りの音"
/>
<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 Gallery;
1 change: 1 addition & 0 deletions src/pages/yatai/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.canvas {
width: 100%;
height: 100%;
background-color: transparent;
}

.target {
Expand Down
2 changes: 2 additions & 0 deletions src/pages/yatai/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { randFloat } from "three/src/math/MathUtils.js";
import { useSocketReceiver } from "../../hooks/useSocketReceiver";
import { useSocketSender } from "../../hooks/useSocketSender";
import { message_type } from "../../type/schema";
import Gallery from "../../components/Gallery";
import {
type ActionSchema,
MessageType,
Expand Down Expand Up @@ -206,6 +207,7 @@ function Yatai() {
<div className={styles.container}>
<YataiStage />
<TargetOverlay />
<Gallery />
</div>
);
}
Expand Down

0 comments on commit 7db9a04

Please sign in to comment.