From 5ff2d9c8d23a0a7ce146700fbbef7c9a1b951255 Mon Sep 17 00:00:00 2001 From: sigmasternchen Date: Sun, 26 Jan 2025 21:17:01 +0100 Subject: [PATCH] add header and description block --- Makefile | 7 ++++++- public/index.html | 6 ++++++ public/style.css | 8 +++++++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1c0ab01..993fd3d 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,8 @@ -deploy: +build: npm run build + +deploy: build + echo "put public/*\nbye" | sshpass -p "${MAIN_FTP_PASSWORD}" sftp ${MAIN_FTP_USER}@${MAIN_FTP_HOST} + +deploy-init: build echo "put -r public/*\nbye" | sshpass -p "${MAIN_FTP_PASSWORD}" sftp ${MAIN_FTP_USER}@${MAIN_FTP_HOST} diff --git a/public/index.html b/public/index.html index fec076e..cbf7de4 100644 --- a/public/index.html +++ b/public/index.html @@ -7,6 +7,12 @@ +

88x31 SameGame

+
+ Select groups of 3 or more adjoining blocks of the same type to remove them. + The blocks above will then fall down. Bigger groups result in more points. + The game ends when there are no more groups of 3 or more blocks exist on the board. +
diff --git a/public/style.css b/public/style.css index f69c074..eddf6d4 100644 --- a/public/style.css +++ b/public/style.css @@ -10,12 +10,18 @@ font-family: sans-serif; } +.description { + width: calc(var(--size-x) * var(--tile-width) + var(--padding) * (var(--size-x) + 1)); + margin-bottom: 10px; +} + .meta-info { margin-top: 30px; } .game-info { - font-size: 40px; + margin: 10px 0 10px 0; + font-size: 20px; } .gameover {