diff --git a/src/main/resources/templates/answer.html b/src/main/resources/templates/answer.html index bf54f96..dafefb0 100644 --- a/src/main/resources/templates/answer.html +++ b/src/main/resources/templates/answer.html @@ -166,6 +166,76 @@ outline: none; border-color: #f59e0b; } + /* 画板样式 */ + .drawing-board { + margin-left: 44px; + border: 2px solid #e0e0e0; + border-radius: 8px; + padding: 12px; + background: #f8f9fa; + } + .drawing-canvas { + width: 100%; + height: 300px; + border: 2px solid #ddd; + border-radius: 8px; + background: white; + cursor: crosshair; + touch-action: none; + } + .drawing-tools { + display: flex; + gap: 8px; + margin-top: 12px; + flex-wrap: wrap; + align-items: center; + } + .drawing-tools button { + padding: 8px 16px; + border: none; + border-radius: 6px; + cursor: pointer; + font-size: 14px; + transition: all 0.3s; + } + .btn-clear { + background: #ef4444; + color: white; + } + .btn-clear:hover { + background: #dc2626; + } + .btn-undo { + background: #9ca3af; + color: white; + } + .btn-undo:hover { + background: #6b7280; + } + .color-picker { + display: flex; + gap: 6px; + align-items: center; + } + .color-option { + width: 24px; + height: 24px; + border-radius: 50%; + cursor: pointer; + border: 3px solid transparent; + transition: border-color 0.2s; + } + .color-option.active { + border-color: #f59e0b; + } + .brush-size { + display: flex; + align-items: center; + gap: 8px; + } + .brush-size input[type="range"] { + width: 100px; + } .submit-section { text-align: center; padding: 30px; @@ -186,6 +256,22 @@ transform: translateY(-2px); box-shadow: 0 5px 20px rgba(245, 158, 11, 0.3); } + .btn-save { + background: #10b981; + color: white; + border: none; + padding: 10px 24px; + border-radius: 8px; + font-size: 14px; + font-weight: 600; + cursor: pointer; + transition: all 0.3s; + } + .btn-save:hover { + background: #059669; + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); + } .btn-submit:disabled { background: #ccc; cursor: not-allowed; @@ -261,6 +347,10 @@
简答题
0道
+
+
画图题
+
0道
+
总分
100分
@@ -270,6 +360,10 @@
+
+ + +
@@ -317,6 +411,36 @@ + +
+
+ 1 + 题目内容 + 10分 + 画图题 +
+
+ +
+
+ 颜色: +
+
+
+
+
+
+ 粗细: + + 3 +
+ + +
+ +
+
+
@@ -336,6 +460,334 @@