|
5 | 5 | {% block title %}補充資料{% endblock %} |
6 | 6 |
|
7 | 7 | {% 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> |
15 | 11 |
|
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"> |
17 | 13 | {% for schema in schemas %} |
18 | 14 | <div class="col"> |
19 | 15 | <div class="app-complementary__schema__card card"> |
|
41 | 37 | {% endfor %} |
42 | 38 | </div> |
43 | 39 | </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> |
44 | 80 | </main> |
45 | 81 | {% endblock %} |
0 commit comments