Skip to content

Commit

Permalink
feat: change default colours to purple and orange
Browse files Browse the repository at this point in the history
change default number of tries to 7
  • Loading branch information
roedoejet committed Mar 6, 2024
1 parent b7c4a9d commit 2c6c587
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 22 deletions.
40 changes: 25 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/components/grid/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const Cell = ({ value, status }: Props) => {
'bg-white border-slate-200': !status,
'border-black': value && !status,
'bg-slate-400 text-white border-slate-400': status === 'absent',
'bg-green-500 text-white border-green-500': status === 'correct',
'bg-yellow-500 text-white border-yellow-500': status === 'present',
'bg-purple-500 text-white border-purple-500': status === 'correct',
'bg-orange-500 text-white border-orange-500': status === 'present',
'cell-animation': !!value,
}
)
Expand Down
4 changes: 2 additions & 2 deletions src/components/keyboard/Key.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export const Key = ({
{
'bg-slate-200 hover:bg-slate-300 active:bg-slate-400': !status,
'bg-slate-400 text-white': status === 'absent',
'bg-green-500 hover:bg-green-600 active:bg-green-700 text-white':
'bg-purple-500 hover:bg-purple-600 active:bg-purple-700 text-white':
status === 'correct',
'bg-yellow-500 hover:bg-yellow-600 active:bg-yellow-700 text-white':
'bg-orange-500 hover:bg-orange-600 active:bg-orange-700 text-white':
status === 'present',
}
)
Expand Down
4 changes: 2 additions & 2 deletions src/components/mini-grid/MiniCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const MiniCell = ({ status, letter }: Props) => {
'w-10 h-10 border-solid border-2 border-slate-200 flex items-center justify-center mx-0.5 text-lg font-bold rounded',
{
'bg-white': status === 'absent',
'bg-green-500': status === 'correct',
'bg-yellow-500': status === 'present',
'bg-purple-500': status === 'correct',
'bg-orange-500': status === 'present',
}
)

Expand Down
2 changes: 1 addition & 1 deletion src/constants/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const CONFIG = {
tries: 6, // This changes how many tries you get to finish the game
tries: 7, // This changes how many tries you get to finish the game
language: 'YourLanguageHere', // This changes the display name for your language
wordLength: 5, // This sets how long each word is based on how many characters (as defined in orthography.ts) are in each word
author: 'YourNameHere', // Put your name here so people know who made this game!
Expand Down

0 comments on commit 2c6c587

Please sign in to comment.