Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijsgroen committed Sep 12, 2024
1 parent 465273c commit 1135556
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<head>
<meta charset="UTF-8" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
/>
<link href="/dist/main.css" rel="stylesheet" />
<title>block-sorting + TS</title>
</head>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Block.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.shape {
text-shadow: 0px 0px 0px #888, 1px 1px 2px #000;
text-shadow: 0px 0px 0px #aaa, 1px 1px 2px #000;
color: transparent;
opacity: 40%;
opacity: 60%;
}

.texture {
Expand Down
4 changes: 3 additions & 1 deletion src/components/PlayButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export const PlayButton: React.FC<Props> = ({
}) => (
<button
onClick={onClick}
className="inline-block w-[10rem] h-12 bg-orange-500 rounded-3xl shadow-lg font-bold pt-3"
className={`inline-block w-[10rem] h-12 ${
special ? "bg-purple-500" : "bg-orange-500"
} rounded-3xl shadow-lg font-bold pt-3`}
>
<span
className={`block ${(hard || special) == false ? "-translate-y-1" : ""}`}
Expand Down
2 changes: 1 addition & 1 deletion src/game/levelSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const getHardSettings = (levelNr: number): LevelSettings => {
export const getSpecialSettings = (levelNr: number): LevelSettings => {
const amountColors = levelNr === 0 ? 2 : getSetting(levelNr, 3, 7, 4, 4);

const specialIndex = Math.floor((levelNr - 6) / 10) % 4;
const specialIndex = Math.floor(levelNr / 10) % 4;

const templates: LevelSettings[] = [
{
Expand Down
4 changes: 2 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default {
},
keyframes: {
place: {
"0%": { transform: "translateY(-1rem)" },
"80%": { transform: "translateY(0.1rem)" },
"0%": { transform: "translateY(-2rem)" },
"80%": { transform: "translateY(0.2rem)" },
"100%": { transform: "translateY(0)" },
},
wobble: {
Expand Down

0 comments on commit 1135556

Please sign in to comment.