Skip to content

Commit 950bc9b

Browse files
committed
feat: 添加选择题颜色说明的说明文本和样式
1 parent db9cef1 commit 950bc9b

File tree

1 file changed

+19
-0
lines changed
  • app/(root)/backstage/judge/[answerId]

1 file changed

+19
-0
lines changed

app/(root)/backstage/judge/[answerId]/page.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,25 @@ export default function JudgeSinglePage({ params }: { params: { answerId: number
147147
<Center>
148148
<Title>阅卷系统</Title>
149149
</Center>
150+
<Center>
151+
<Stack gap="xs">
152+
<Text size="sm" c="dimmed">选择题颜色说明:</Text>
153+
<Group gap="md" justify="center">
154+
<Group gap={5}>
155+
<div style={{ width: 16, height: 16, backgroundColor: 'rgba(255, 0, 0, 0.3)', border: '1px solid rgba(255, 0, 0, 0.5)' }} />
156+
<Text size="sm">用户选择但错误</Text>
157+
</Group>
158+
<Group gap={5}>
159+
<div style={{ width: 16, height: 16, backgroundColor: 'rgba(0, 0, 255, 0.3)', border: '1px solid rgba(0, 0, 255, 0.5)' }} />
160+
<Text size="sm">用户选择且正确</Text>
161+
</Group>
162+
<Group gap={5}>
163+
<div style={{ width: 16, height: 16, backgroundColor: 'rgba(0, 255, 0, 0.3)', border: '1px solid rgba(0, 255, 0, 0.5)' }} />
164+
<Text size="sm">用户未选择但正确</Text>
165+
</Group>
166+
</Group>
167+
</Stack>
168+
</Center>
150169
<Center>
151170
<Alert
152171
variant="light"

0 commit comments

Comments
 (0)