From c3d0dee806a2f2924c56963c9d447cdcf58c82fb Mon Sep 17 00:00:00 2001 From: haopengzhan Date: Sun, 1 Mar 2026 00:48:52 -0800 Subject: [PATCH] feat: add Number Connect game with ABC spatial optimization and auto-pagination --- cmd/toolbox/web/tools/learn_number.html | 163 ++++++++++++--------- pkg/learnnumber/data/font.ttf | Bin 0 -> 773236 bytes pkg/learnnumber/data/icons.go | 3 + pkg/learnnumber/logic/writing.go | 179 ++++++++++++++++++++++++ pkg/learnnumber/tool.go | 15 ++ 5 files changed, 293 insertions(+), 67 deletions(-) create mode 100644 pkg/learnnumber/data/font.ttf create mode 100644 pkg/learnnumber/logic/writing.go diff --git a/cmd/toolbox/web/tools/learn_number.html b/cmd/toolbox/web/tools/learn_number.html index f61026a..cce8054 100644 --- a/cmd/toolbox/web/tools/learn_number.html +++ b/cmd/toolbox/web/tools/learn_number.html @@ -2,59 +2,75 @@
-
数图形练习
+
数图形练习
+
数字连连看
-
-
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
- -
- -
- -
- -
+ +
+
+
+ +
- - +
+
+ + + + + - @@ -67,14 +83,22 @@ } .apple-input:focus, .apple-select:focus { border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,0.15); } .icon-thumbnail { - width: 64px; height: 64px; background: white; border-radius: 12px; border: 1px solid #e5e5e7; - display: flex; align-items: center; justify-content: center; padding: 8px; + width: 52px; height: 52px; background: white; border-radius: 10px; border: 1px solid #e5e5e7; + display: flex; align-items: center; justify-content: center; padding: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); transition: all 0.2s ease; } - .icon-thumbnail:hover { transform: translateY(-3px); border-color: #0071e3; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }