Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 07230f8

Browse files
committed
feat(complementary): Add Point Rules in plain Chinese
1 parent de1549b commit 07230f8

File tree

1 file changed

+44
-8
lines changed

1 file changed

+44
-8
lines changed

templates/complementary/index.html.twig

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@
55
{% block title %}補充資料{% endblock %}
66

77
{% block app %}
8-
<main class="app-complementary">
9-
<section class="app-complementary__header mb-5">
10-
<h2>補充資料</h2>
11-
</section>
12-
13-
<section class="app-complementary__schema mb-5">
14-
<h3 class="mb-3">Schema SQLs</h3>
8+
<main class="app-complementary row row-cols-1 row-cols-md-2">
9+
<section class="app-complementary__schema mb-5 col">
10+
<h2 class="mb-3">Schema SQLs</h2>
1511

16-
<div class="row row-cols-md-2 row-cols-lg-3 row-cols-xl-4 g-4">
12+
<div class="row row-cols-1 row-cols-xl-2 g-4">
1713
{% for schema in schemas %}
1814
<div class="col">
1915
<div class="app-complementary__schema__card card">
@@ -41,5 +37,45 @@
4137
{% endfor %}
4238
</div>
4339
</section>
40+
41+
<section class="app-complementary__scoring_rules mb-5 col">
42+
<h2 class="mb-3">計分規則</h2>
43+
44+
<ul>
45+
<li>每個人有 {{ constant('\\App\\Service\\PointCalculationService::base') }} 基本分。</li>
46+
<li>
47+
解一題根據難度會加分,注意重複解題分數不會累計。
48+
<ul>
49+
<li>簡單題:{{ constant('\\App\\Service\\PointCalculationService::solutionEventEasyPoint') }} 分</li>
50+
<li>中等題:{{ constant('\\App\\Service\\PointCalculationService::solutionEventMediumPoint') }} 分</li>
51+
<li>困難題:{{ constant('\\App\\Service\\PointCalculationService::solutionEventHardPoint') }} 分</li>
52+
</ul>
53+
</li>
54+
<li>
55+
如果是第一個解出題目的人,會再加 {{ constant('\\App\\Service\\PointCalculationService::firstSolverPoint') }} 分。
56+
</li>
57+
<li>
58+
打開解答影片根據題型會扣分。注意同題目的解答影片不會重複扣分。
59+
<ul>
60+
<li>簡單題:{{ constant('\\App\\Service\\PointCalculationService::solutionVideoEventEasyPoint') }} 分</li>
61+
<li>中等題:{{ constant('\\App\\Service\\PointCalculationService::solutionVideoEventMediumPoint') }} 分</li>
62+
<li>困難題:{{ constant('\\App\\Service\\PointCalculationService::solutionVideoEventHardPoint') }} 分</li>
63+
</ul>
64+
</li>
65+
<li>
66+
打開提示會扣 {{ constant('\\App\\Service\\PointCalculationService::hintOpenEventPoint') }} 分。重複打開提示會重複扣分。
67+
</li>
68+
<li>
69+
如果當周做題未達 {{ constant('\\App\\Service\\PointCalculationService::weeklyMinSolvedQuestionPoint') }}
70+
題,少的每題扣 {{ constant('\\App\\Service\\PointCalculationService::weeklyPerQuestionXpPoint') }} 分。
71+
</li>
72+
</ul>
73+
74+
<p>
75+
相關計分原始碼可以參考
76+
<a href="https://github.com/database-playground/app-sf/blob/master/src/Service/PointCalculationService.php"
77+
>GitHub 的對應程式碼</a
78+
>。</p>
79+
</section>
4480
</main>
4581
{% endblock %}

0 commit comments

Comments
 (0)