Skip to content

Commit

Permalink
New CNY decorations (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltoder authored Jan 29, 2025
1 parent b8e56d9 commit 5b19ef2
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 7 deletions.
Binary file added src/assets/cny_big_snake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/cny_lanterns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/cny_lion.png
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
Binary file removed src/assets/snakes-dark.jpg
Binary file not shown.
Binary file removed src/assets/snakes-light.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import ColorChoiceDialog from "./ColorChoiceDialog";
import BoardLayoutDialog from "./BoardLayoutDialog";
import KeyboardLayoutDialog from "./KeyboardLayoutDialog";
import AccountOptionsDialog from "./AccountOptionsDialog";
import snakeImage from "../assets/snake.png";
import snakeImage from "../assets/cny_snake.png";

function Navbar({
themeType,
Expand Down
27 changes: 21 additions & 6 deletions src/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { createTheme } from "@material-ui/core/styles";
import { grey } from "@material-ui/core/colors";
import { indigo } from "@material-ui/core/colors";
import { red } from "@material-ui/core/colors";
import snakesLightImage from "./assets/snakes-light.jpg";
import snakesDarkImage from "./assets/snakes-dark.jpg";
import lanternsImage from "./assets/cny_lanterns.png";
import lionImage from "./assets/cny_lion.png";
import snakeImage from "./assets/cny_big_snake.png";

export const darkTheme = createTheme({
palette: {
Expand Down Expand Up @@ -68,9 +69,16 @@ export const darkTheme = createTheme({
MuiCssBaseline: {
"@global": {
body: {
backgroundImage: `url("${snakesDarkImage}")`,
backgroundImage: `
url("${lanternsImage}"),
url("${lionImage}"),
url("${snakeImage}"),
radial-gradient(circle at top right, rgba(112,22,22,1) 0%, rgba(22,22,22,1) 80%)
`,
backgroundPosition: "top right, bottom right, bottom left, 0 0",
backgroundSize: "min(50%, 25em), 30%, 80%, auto",
backgroundRepeat: "no-repeat",
backgroundAttachment: "fixed",
backgroundPosition: "130px -30px",
},
},
},
Expand Down Expand Up @@ -127,9 +135,16 @@ export const lightTheme = createTheme({
MuiCssBaseline: {
"@global": {
body: {
backgroundImage: `url("${snakesLightImage}")`,
backgroundImage: `
url("${lanternsImage}"),
url("${lionImage}"),
url("${snakeImage}"),
radial-gradient(circle at top right, rgba(250, 250, 250, 1) 0%, rgba(250, 210, 210, 1) 80%)
`,
backgroundPosition: "top right, bottom right, bottom left, 0 0",
backgroundSize: "min(50%, 25em), 30%, 80%, auto",
backgroundRepeat: "no-repeat",
backgroundAttachment: "fixed",
backgroundPosition: "130px -30px",
},
},
},
Expand Down

0 comments on commit 5b19ef2

Please sign in to comment.