-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
236 additions
and
183 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,49 @@ | ||
import { useRecoilState, useRecoilValue } from "recoil"; | ||
import soundOnIcon from "../assets/sound-on.svg" | ||
import soundOffIcon from "../assets/sound-off.svg" | ||
import { isSoundOnRecoil } from "./settings/is-sound-on-recoil"; | ||
|
||
export const MusicSwitchBtn = () => { | ||
|
||
const [isSound, setIsSound] = useRecoilState(isSoundOnRecoil); | ||
|
||
return ( | ||
<button | ||
style={{ | ||
fontSize: "1rem", | ||
boxSizing: "border-box", | ||
borderRadius: "1.5vmax", | ||
border: "0.3vmax solid #E4E4E4", | ||
background: "linear-gradient(180deg, #2587E2 0%, #1A4C69 100%)", | ||
padding: "0.5vmax", | ||
width: "fit-content", | ||
position: "fixed", | ||
right: "2vmax", | ||
top: "2vmax", | ||
}} | ||
onClick={ | ||
() => setIsSound(!isSound) | ||
} | ||
> | ||
<div style={{ | ||
boxSizing: "border-box", | ||
background: "linear-gradient(90deg, #49B5F7 0%, #2578CF 100%)", | ||
borderRadius: "1vmax", | ||
padding: "0.4vmax", | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
}} > | ||
<img | ||
src={isSound ? soundOffIcon : soundOnIcon} | ||
alt="icon" | ||
style={{ | ||
display: "block", | ||
width: "4.5vmax", | ||
|
||
}} | ||
/> | ||
</div> | ||
</button> | ||
); | ||
}; |
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,45 @@ | ||
import randomIcon from "../assets/random-level.svg" | ||
|
||
export const NextLvl = () => { | ||
|
||
return ( | ||
<button | ||
style={{ | ||
fontSize: "1rem", | ||
boxSizing: "border-box", | ||
borderRadius: "1.5vmax", | ||
border: "0.3vmax solid #E4E4E4", | ||
background: "linear-gradient(180deg, #2587E2 0%, #1A4C69 100%)", | ||
padding: "0.5vmax", | ||
width: "fit-content", | ||
height: "fit-content", | ||
position: "fixed", | ||
inset: "50%", | ||
|
||
}} | ||
onClick={() => location.reload()} | ||
|
||
> | ||
<div style={{ | ||
boxSizing: "border-box", | ||
background: "linear-gradient(90deg, #49B5F7 0%, #2578CF 100%)", | ||
borderRadius: "1vmax", | ||
padding: "0.4vmax", | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
|
||
}} > | ||
<img | ||
src={randomIcon} | ||
alt="icon" | ||
style={{ | ||
display: "block", | ||
width: "4.5vmax", | ||
|
||
}} | ||
/> | ||
</div> | ||
</button> | ||
); | ||
}; |
Oops, something went wrong.