|
4 | 4 | {% block title %}學習概況{% endblock %} |
5 | 5 |
|
6 | 6 | {% block app %} |
7 | | - <section class="hello-text mb-5"> |
| 7 | +<main class="app-overview-dashboard"> |
| 8 | + <section class="app-overview-dashboard__hello-text"> |
8 | 9 | <h2 class="display-4">哈囉,{{ app.user.name }} 👋</h2> |
9 | 10 | <p class="lead">這些是你最近的表現 ↓</p> |
10 | 11 | </section> |
11 | 12 |
|
12 | | - <section class="week-overview mb-5"> |
| 13 | + <section class="app-overview-dashboard__weekly-metrics"> |
13 | 14 | <h3 class="mb-3">每週學習概況</h3> |
14 | 15 |
|
15 | | - <div class="week-overview__main row gutter-2"> |
16 | | - <div class="col-4"> |
| 16 | + <div class="row gutter-2"> |
| 17 | + <div class="col-6"> |
17 | 18 | <div class="week-overview__cards vstack gap-1"> |
18 | 19 | <turbo-frame id="solved_questions" src="{{ path('app_overview_cards_solved_questions') }}"></turbo-frame> |
19 | 20 | <turbo-frame id="points" src="{{ path('app_overview_cards_points') }}"></turbo-frame> |
20 | 21 | <turbo-frame id="level" src="{{ path('app_overview_cards_level') }}"></turbo-frame> |
21 | 22 | </div> |
22 | 23 | </div> |
23 | | - <div class="col-8"> |
24 | | - <p>WIP: Chart</p> |
| 24 | + <div class="col-6"> |
| 25 | + <turbo-frame id="events_daily_chart" src="{{ path('app_overview_cards_events_daily_chart') }}"></turbo-frame> |
25 | 26 | </div> |
26 | 27 | </div> |
27 | 28 | </section> |
28 | 29 |
|
29 | | - <section class="historic-statistics mb-5"> |
| 30 | + <section class="app-overview-dashboard__historic-statistics"> |
30 | 31 | <h3 class="mb-3">學習歷程</h3> |
31 | 32 |
|
32 | 33 | <div class="historic-statistics__main row gutter-2"> |
33 | | - <div class="col-4"> |
| 34 | + <div class="col-6"> |
34 | 35 | <div class="historic-statistics__cards vstack gap-1"> |
35 | 36 | <turbo-frame id="solved_questions" src="{{ path('app_overview_cards_solved_questions') }}"></turbo-frame> |
36 | 37 | <turbo-frame id="events_count" src="{{ path('app_overview_cards_events_count') }}"></turbo-frame> |
37 | 38 | <turbo-frame id="questions_count" src="{{ path('app_overview_cards_questions_count') }}"></turbo-frame> |
38 | 39 | </div> |
39 | 40 | </div> |
40 | | - <div class="col-4"> |
| 41 | + <div class="col-6"> |
41 | 42 | <turbo-frame id="events_history" src="{{ path('app_overview_cards_events_history') }}"></turbo-frame> |
42 | 43 | </div> |
43 | | - <div class="col-4"> |
44 | | - <turbo-frame id="events_daily_chart" src="{{ path('app_overview_cards_events_daily_chart') }}"></turbo-frame> |
45 | | - </div> |
46 | 44 | </div> |
47 | 45 | </section> |
| 46 | + |
| 47 | + <section class="app-overview-dashboard__leaderboard"> |
| 48 | + <h3 class="mb-3">週排行榜</h3> |
| 49 | + |
| 50 | + </section> |
| 51 | +</main> |
48 | 52 | {% endblock %} |
0 commit comments