-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feat] ๋น๋์ค / ์ค๋์ค ํ ์คํธ ๊ธฐ๋ฅ ์ถ๊ฐ
- Loading branch information
Showing
12 changed files
with
70 additions
and
67 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions
8
packages/frontend/src/components/gamePage/rightSection/SettingSection.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
packages/frontend/src/components/lobbyPage/SettingSection.tsx
This file was deleted.
Oops, something went wrong.
21 changes: 15 additions & 6 deletions
21
packages/frontend/src/components/lobbyPage/VideoAudioTestButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
import Button from '@/components/common/Button'; | ||
import VideoAudioTestModal from '@/components/lobbyPage/VideoAudioTestModal'; | ||
import { useState } from 'react'; | ||
|
||
export default function VideoAudioTestButton() { | ||
function handleClick() {} | ||
const [isModalOpen, setIsModalOpen] = useState(false); | ||
const title = '๋น๋์ค ๋ฐ ์ค๋์ค ํ ์คํธ'; | ||
function handleClick() { | ||
setIsModalOpen(true); | ||
} | ||
return ( | ||
<Button | ||
className="w-full h-20 text-xl font-semibold text-black bg-white hover:bg-gray-300" | ||
onClick={handleClick} | ||
buttonText="๋น๋์ค ๋ฐ ์ค๋์ค ํ ์คํธ" | ||
/> | ||
<> | ||
<Button | ||
className="w-full h-20 text-xl font-semibold text-black bg-white hover:bg-gray-300" | ||
onClick={handleClick} | ||
buttonText={title} | ||
/> | ||
{isModalOpen && <VideoAudioTestModal title={title} onClose={() => setIsModalOpen(false)} />} | ||
</> | ||
); | ||
} |
31 changes: 31 additions & 0 deletions
31
packages/frontend/src/components/lobbyPage/VideoAudioTestModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import VideoStream from '@/components/gamePage/stream/VideoStream'; | ||
import { useLocalStreamStore } from '@/states/store/localStreamStore'; | ||
import CameraSettingButton from '@/components/gamePage/stream/CameraSettingButton'; | ||
import MikeSettingButton from '@/components/gamePage/stream/MikeSettingButton'; | ||
|
||
interface IVideoAudioTestModalProps { | ||
onClose: () => void; | ||
title: string; | ||
} | ||
|
||
export default function VideoAudioTestModal({ onClose, title }: IVideoAudioTestModalProps) { | ||
const localStream = useLocalStreamStore((state) => state.localStream); | ||
return ( | ||
<div className="fixed inset-0 z-50 flex flex-col items-center justify-center bg-black bg-opacity-50"> | ||
<div className="min-w-[600px] max-w-lg p-8 bg-white shadow-lg rounded-2xl flex flex-col items-center gap-8"> | ||
<h2 className="mb-4 text-xl font-semibold text-center text-gray-900">{title}</h2> | ||
<VideoStream userName="์นด๋ฉ๋ผ ํ ์คํธ" stream={localStream} /> | ||
<div className="flex gap-4"> | ||
<CameraSettingButton iconColor="text-black" /> | ||
<MikeSettingButton iconColor="text-black" /> | ||
</div> | ||
<button | ||
onClick={onClose} | ||
className="w-32 py-2 text-black border border-black rounded-lg hover:bg-gray-100" | ||
> | ||
๋ซ๊ธฐ | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters