-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stats phases code organization styling webmanifest and favicons
- Loading branch information
1 parent
fbaf5be
commit b2829a7
Showing
38 changed files
with
484 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Scratch Bonanza | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
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 @@ | ||
github: michaelkolesidis |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Scratch Bonanza Security Policy | ||
|
||
## Reporting a Vulnerability | ||
|
||
In case of finding a vulnerabiity, please open an issue. If the vulnerability is related any of the libraries/frameworks used, please contact the respective authors as well. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "Scratch Bonanza", | ||
"short_name": "Scratch Bonanza", | ||
"description": "An online scratchcard game. Do you feel lucky?", | ||
"icons": [ | ||
{ | ||
"src": "/icons/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/icons/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"start_url": "index.html", | ||
"display": "standalone", | ||
"theme_color": "#cf0032", | ||
"background_color": "#cf0032" | ||
} |
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.
File renamed without changes.
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,2 @@ | ||
User-agent: * | ||
Disallow: |
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.
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,14 @@ | ||
import "./style.css"; | ||
import useGame from "../../stores/useGame"; | ||
|
||
const HelpButton = () => { | ||
const { setModal } = useGame(); | ||
|
||
const handleHelp = () => { | ||
setModal(true); | ||
}; | ||
|
||
return <div onClick={handleHelp} className="help-button" />; | ||
}; | ||
|
||
export default HelpButton; |
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,9 @@ | ||
.help-button { | ||
position: absolute; | ||
top: 10px; | ||
right: 10px; | ||
background-image: url("/assets/help.svg"); | ||
height: min(40px, 10vw); | ||
width: min(40px, 10vw); | ||
cursor: pointer; | ||
} |
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,22 @@ | ||
import "./style.css"; | ||
|
||
const MainButton = ({ | ||
handleClick, | ||
text, | ||
disabled, | ||
}: { | ||
handleClick: () => void; | ||
text: string; | ||
disabled?: boolean; | ||
}) => { | ||
return ( | ||
<div | ||
onClick={handleClick} | ||
className={`button-main ${disabled && "disabled-button"}`} | ||
> | ||
{text} | ||
</div> | ||
); | ||
}; | ||
|
||
export default MainButton; |
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,60 @@ | ||
.button-main { | ||
width: min(220px, 45vw); | ||
background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.13)), | ||
radial-gradient( | ||
90% 7% at 50% 8%, | ||
rgba(255, 255, 255, 0.47) 25%, | ||
rgba(255, 255, 255, 0) 50% | ||
), | ||
#debb50; | ||
border: 0; | ||
border-radius: 0.375em; | ||
box-shadow: 0.2em 0.2em 0.5em rgba(0, 0, 0, 0.47), | ||
0 -0.1em 0 0.1em rgba(0, 0, 0, 0.27), | ||
0 0.1em 0 0.1em rgba(255, 255, 255, 0.27), -0.2em 0 0.2em #d3a928 inset, | ||
0 0.2em 0.2em rgba(255, 255, 255, 0.27) inset, | ||
0.2em 0 0.2em rgba(255, 255, 255, 0.27) inset, 0 -0.2em 0.2em #d3a928 inset; | ||
cursor: pointer; | ||
margin: 1em auto 0 auto; | ||
padding: 0.5em 1em; | ||
font-size: min(7vw, 40px); | ||
font-weight: 600; | ||
color: #ffffff; | ||
text-align: center; | ||
text-shadow: 0 0 0.3em rgb(0, 0, 0); | ||
letter-spacing: 0.1em; | ||
cursor: pointer; | ||
} | ||
|
||
.button-main, | ||
.button-main span { | ||
display: block; | ||
transition-duration: 0.1s; | ||
transition-timing-function: linear; | ||
} | ||
|
||
.button-main:focus, | ||
.button-main span:focus { | ||
outline: none; | ||
} | ||
|
||
.button-main span { | ||
transition-property: transform; | ||
will-change: transform; | ||
} | ||
|
||
.button-main:active { | ||
box-shadow: 0 0 0 rgba(0, 0, 0, 0.47), 0 -0.1em 0 0.1em rgba(0, 0, 0, 0.27), | ||
0 0.1em 0 0.1em rgba(255, 255, 255, 0.27), -0.2em 0 0.2em #deb53b inset, | ||
0 0.2em 0.2em rgba(0, 0, 0, 0.27) inset, | ||
0.2em 0 0.2em rgba(0, 0, 0, 0.27) inset, 0 -0.2em 0.2em #e1b739 inset; | ||
} | ||
|
||
.button-main:active span { | ||
transform: scale(0.95); | ||
} | ||
|
||
.button-main:focus { | ||
color: #decc97; | ||
text-shadow: 0 0 0.2em rgba(126, 126, 126, 0.47); | ||
} |
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
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
Oops, something went wrong.
b2829a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
scratch-bonanza – ./
scratch-bonanza.vercel.app
scratch-bonanza-git-main-michaelkolesidis.vercel.app
scratch-bonanza-michaelkolesidis.vercel.app