diff --git a/src/components/Room/Room.js b/src/components/Room/Room.js index 7a5142f..7882351 100644 --- a/src/components/Room/Room.js +++ b/src/components/Room/Room.js @@ -1,3 +1,5 @@ +import React, { useState } from 'react' +import Puzzle1 from '../Puzzle1/PuzzleOne' import './Room.css' import blueBackground from '../../assets/room/blue-bg.png' import clock from '../../assets/room/clock.png' @@ -13,17 +15,30 @@ import deskComp from '../../assets/room/desk-comp.png' import bike from '../../assets/room/bike-front.png' export default function Room() { + const [showPuzzle1, setShowPuzzle1] = useState(false); + + const handleDeskCompClick = () => { + setShowPuzzle1(true); + }; + + const handleClosePuzzle1 = () => { + setShowPuzzle1(false); + }; + return (
- - - - - - - - + + + + + + + + + {showPuzzle1 && ( + + )}
- ) + ); } \ No newline at end of file