Commit a90c6ca87d8381d000a752eb72c4b80cf3f9fb40

Authored by Miguel Barão
1 parent 5316b7d1
Exists in master and in 1 other branch dev

Finished removing font-awesome

New learn topic in demo/math
aprendizations/templates/courses.html
@@ -12,9 +12,6 @@ @@ -12,9 +12,6 @@
12 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script> 12 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
13 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"> 13 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
14 14
15 - <!-- font-awesome -->  
16 - <!-- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet"> -->  
17 -  
18 <link rel="stylesheet" href="{{static_url('css/maintopics.css')}}"> 15 <link rel="stylesheet" href="{{static_url('css/maintopics.css')}}">
19 <link rel="stylesheet" href="{{static_url('css/sticky-footer-navbar.css')}}"> 16 <link rel="stylesheet" href="{{static_url('css/sticky-footer-navbar.css')}}">
20 <!-- Scripts --> 17 <!-- Scripts -->
@@ -44,9 +41,7 @@ @@ -44,9 +41,7 @@
44 <ul class="navbar-nav ms-auto"> 41 <ul class="navbar-nav ms-auto">
45 <li class="nav-item dropdown"> 42 <li class="nav-item dropdown">
46 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> 43 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
47 - <i class="bi bi-person-circle"></i>  
48 - <!-- <i class="fas fa-user-graduate" aria-hidden="true"></i> -->  
49 - &nbsp; 44 + <i class="bi bi-person-circle"></i>&nbsp;
50 <span id="name">{{ escape(name) }}</span> 45 <span id="name">{{ escape(name) }}</span>
51 <span class="caret"></span> 46 <span class="caret"></span>
52 </a> 47 </a>
aprendizations/templates/maintopics-table.html
@@ -16,9 +16,6 @@ @@ -16,9 +16,6 @@
16 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script> 16 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
17 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"> 17 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
18 18
19 - <!-- font-awesome -->  
20 - <!-- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet"> -->  
21 -  
22 <link rel="stylesheet" href="{{static_url('css/maintopics.css')}}"> 19 <link rel="stylesheet" href="{{static_url('css/maintopics.css')}}">
23 <script defer src="{{static_url('js/maintopics.js')}}"></script> 20 <script defer src="{{static_url('js/maintopics.js')}}"></script>
24 21
@@ -42,7 +39,6 @@ @@ -42,7 +39,6 @@
42 <ul class="navbar-nav ms-auto"> 39 <ul class="navbar-nav ms-auto">
43 <li class="nav-item dropdown"> 40 <li class="nav-item dropdown">
44 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> 41 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
45 - <!-- <i class="fas fa-user-graduate" aria-hidden="true"></i> -->  
46 <i class="bi bi-person-circle"></i> 42 <i class="bi bi-person-circle"></i>
47 &nbsp; 43 &nbsp;
48 <span id="name">{{ escape(name) }}</span> 44 <span id="name">{{ escape(name) }}</span>
@@ -109,34 +105,22 @@ @@ -109,34 +105,22 @@
109 <tr> 105 <tr>
110 <th scope="row" class="text-muted text-center"> 106 <th scope="row" class="text-muted text-center">
111 {% if t['type']=='chapter' %} 107 {% if t['type']=='chapter' %}
112 - <!-- <i class="fas fa-flag"></i> -->  
113 - <i class="bi bi-flag-fill"></i> 108 + <i class="bi bi-flag-fill"></i>&nbsp;
114 {% elif t['type']=='learn' %} 109 {% elif t['type']=='learn' %}
115 - <!-- <i class="fas fa-book"></i>&nbsp; -->  
116 - <!-- <i class="bi bi-book-fill"></i>&nbsp; -->  
117 - <h5>  
118 <i class="bi bi-book"></i>&nbsp; 110 <i class="bi bi-book"></i>&nbsp;
119 - </h5>  
120 -  
121 {% else %} 111 {% else %}
122 - <i class="fas fa-pencil-alt"></i>&nbsp;  
123 - <i class="bi bi-pencil-fill"></i>&nbsp;  
124 <i class="bi bi-pencil"></i>&nbsp; 112 <i class="bi bi-pencil"></i>&nbsp;
125 {% end %} 113 {% end %}
126 </th> 114 </th>
127 <td> 115 <td>
128 <div class="text-muted"> 116 <div class="text-muted">
129 {% if t['ref'] not in course['goals'] %} 117 {% if t['ref'] not in course['goals'] %}
130 - <!-- <i class="fas fa-puzzle-piece"></i> -->  
131 - <i class="bi bi-puzzle-fill"></i> 118 + <i class="bi bi-puzzle-fill"></i>&nbsp;
132 {% end %} 119 {% end %}
133 -  
134 -  
135 {{ t['name'] }} 120 {{ t['name'] }}
136 </div> 121 </div>
137 </td> 122 </td>
138 <td class="text-center"> 123 <td class="text-center">
139 - <!-- <i class="fas fa-lock text-muted"></i> -->  
140 <i class="bi bi-lock-fill text-muted"></i> 124 <i class="bi bi-lock-fill text-muted"></i>
141 </td> 125 </td>
142 </tr> 126 </tr>
@@ -147,46 +131,49 @@ @@ -147,46 +131,49 @@
147 <th scope="row" class="text-primary text-center"> 131 <th scope="row" class="text-primary text-center">
148 {% if t['type']=='chapter' %} 132 {% if t['type']=='chapter' %}
149 <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Fim do capítulo"> 133 <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Fim do capítulo">
150 - <!-- <i class="fas fa-flag-checkered"></i>&nbsp; -->  
151 - <i class="bi bi-flag-fill"></i>&nbsp; 134 + <h5>
  135 + <i class="bi bi-flag-fill"></i>&nbsp;
  136 + </h5>
152 </span> 137 </span>
153 {% elif t['type']=='learn' %} 138 {% elif t['type']=='learn' %}
154 <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Texto com matéria"> 139 <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Texto com matéria">
155 - <!-- <i class="fas fa-book"></i>&nbsp; -->  
156 - <!-- <i class="bi bi-book-fill"></i>&nbsp; -->  
157 - <i class="bi bi-book"></i>&nbsp; 140 + <h5>
  141 + <i class="bi bi-book"></i>&nbsp;
  142 + </h5>
158 </span> 143 </span>
159 {% else %} 144 {% else %}
160 <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Exercícios"> 145 <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Exercícios">
161 - <!-- <i class="fas fa-pencil-alt"></i>&nbsp; -->  
162 - <!-- <i class="bi bi-pencil-fill"></i>&nbsp; -->  
163 - <i class="bi bi-pencil"></i>&nbsp; 146 + <h5>
  147 + <i class="bi bi-pencil"></i>&nbsp;
  148 + </h5>
164 </span> 149 </span>
165 {% end %} 150 {% end %}
166 </th> 151 </th>
167 <td class="text-primary"> 152 <td class="text-primary">
168 {% if t['ref'] not in course['goals'] %} 153 {% if t['ref'] not in course['goals'] %}
169 <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Pré-requisito para este curso"> 154 <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Pré-requisito para este curso">
170 - <!-- <i class="fas fa-puzzle-piece"></i> -->  
171 - <i class="bi bi-puzzle-fill"></i> 155 + <h5>
  156 + <i class="bi bi-puzzle-fill"></i>
  157 + </h5>
172 </span> 158 </span>
173 {% end %} 159 {% end %}
174 -  
175 {{ t['name'] }} 160 {{ t['name'] }}
176 </td> 161 </td>
177 162
178 <td class="text-center"> 163 <td class="text-center">
179 {% if t['level'] < 0.01 %} 164 {% if t['level'] < 0.01 %}
180 - <!-- <i class="fas fa-lock-open text-success"></i> -->  
181 - <i class="bi bi-unlock-fill text-success"></i>  
182 - 165 + <h5>
  166 + <i class="bi bi-unlock-fill text-success"></i>
  167 + </h5>
183 {% elif t['type']=='chapter' %} 168 {% elif t['type']=='chapter' %}
184 - <!-- <h5><i class="fas fa-award text-warning"></i></h5> -->  
185 - <i class="bi bi-award-fill"></i>  
186 - 169 + <h5>
  170 + <i class="bi bi-award-fill"></i>
  171 + </h5>
187 {% else %} 172 {% else %}
188 <span class="text-nowrap text-warning" data-toggle="tooltip" data-placement="bottom" title="{{round(t['level']*5, 3)}}"> 173 <span class="text-nowrap text-warning" data-toggle="tooltip" data-placement="bottom" title="{{round(t['level']*5, 3)}}">
189 - {{ int(t['level']*5+0.25)*'<i class="bi bi-star-fill"></i>' }}{% if int(t['level']*5+0.25) < 5 %}{{'<i class="bi bi-star-half"></i>' if 0.25 <= t['level']*5-int(t['level']*5) < 0.75 else '<i class="bi bi-star"></i>'}}{% end %}{{ (4-int(t['level']*5+0.25))*'<i class="bi bi-star"></i>' }} 174 + <h5>
  175 + {{ int(t['level']*5+0.25)*'<i class="bi bi-star-fill"></i>' }}{% if int(t['level']*5+0.25) < 5 %}{{'<i class="bi bi-star-half"></i>' if 0.25 <= t['level']*5-int(t['level']*5) < 0.75 else '<i class="bi bi-star"></i>'}}{% end %}{{ (4-int(t['level']*5+0.25))*'<i class="bi bi-star"></i>' }}
  176 + </h5>
190 </span> 177 </span>
191 {% end %} <!-- if --> 178 {% end %} <!-- if -->
192 </td> 179 </td>
aprendizations/templates/rankings.html
@@ -12,9 +12,6 @@ @@ -12,9 +12,6 @@
12 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script> 12 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
13 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"> 13 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
14 14
15 - <!-- font-awesome -->  
16 - <!-- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet"> -->  
17 -  
18 <link rel="stylesheet" href="{{static_url('css/maintopics.css')}}"> 15 <link rel="stylesheet" href="{{static_url('css/maintopics.css')}}">
19 <script defer src="{{static_url('js/maintopics.js')}}"></script> 16 <script defer src="{{static_url('js/maintopics.js')}}"></script>
20 17
@@ -38,9 +35,7 @@ @@ -38,9 +35,7 @@
38 <ul class="navbar-nav ms-auto"> 35 <ul class="navbar-nav ms-auto">
39 <li class="nav-item dropdown"> 36 <li class="nav-item dropdown">
40 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> 37 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
41 - <!-- <i class="fas fa-user-graduate" aria-hidden="true"></i> -->  
42 - <i class="bi bi-person-circle"></i>  
43 - &nbsp; 38 + <i class="bi bi-person-circle"></i>&nbsp;
44 <span id="name">{{ escape(name) }}</span> 39 <span id="name">{{ escape(name) }}</span>
45 <span class="caret"></span> 40 <span class="caret"></span>
46 </a> 41 </a>
@@ -58,7 +53,6 @@ @@ -58,7 +53,6 @@
58 <h1 class="display-6">{{ course_title }}</h1> 53 <h1 class="display-6">{{ course_title }}</h1>
59 54
60 <table class="table table-sm table-hover"> 55 <table class="table table-sm table-hover">
61 - <!-- <col width="100"> -->  
62 <thead> 56 <thead>
63 <tr> 57 <tr>
64 <th scope="col" class="text-center">Posição</th> 58 <th scope="col" class="text-center">Posição</th>
@@ -71,12 +65,10 @@ @@ -71,12 +65,10 @@
71 <tr class="{{ 'table-secondary' if r[0] == uid else '' }}"> 65 <tr class="{{ 'table-secondary' if r[0] == uid else '' }}">
72 <td class="text-center"> <!-- rank --> 66 <td class="text-center"> <!-- rank -->
73 <strong> 67 <strong>
74 - <!-- {{ '<i class="fas fa-crown fa-lg text-warning"></i>' if i==0 else i+1 }} -->  
75 - <!-- {{ '<h3><i class="bi bi-mortarboard-fill text-warning"></i></h3>' if i==0 else i+1 }} -->  
76 {{ '<h3><i class="bi bi-trophy-fill text-warning"></i></h3>' if i==0 else i+1 }} 68 {{ '<h3><i class="bi bi-trophy-fill text-warning"></i></h3>' if i==0 else i+1 }}
77 </strong> 69 </strong>
78 </td> 70 </td>
79 - <td> <!-- student name --> 71 + <td> <!-- first and last name -->
80 {{ ' '.join(r[1].split()[n] for n in (0,-1)) }} 72 {{ ' '.join(r[1].split()[n] for n in (0,-1)) }}
81 </td> 73 </td>
82 <td> <!-- progress --> 74 <td> <!-- progress -->
aprendizations/templates/topic.html
@@ -14,9 +14,6 @@ @@ -14,9 +14,6 @@
14 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script> 14 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
15 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"> 15 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
16 16
17 - <!-- font-awesome -->  
18 - <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" /> -->  
19 -  
20 <!-- mathjax --> 17 <!-- mathjax -->
21 <script> 18 <script>
22 MathJax = { 19 MathJax = {
@@ -63,7 +60,7 @@ @@ -63,7 +60,7 @@
63 <ul class="navbar-nav"> 60 <ul class="navbar-nav">
64 <li class="nav-item"><a class="nav-link" href="/courses">Cursos</a></li> 61 <li class="nav-item"><a class="nav-link" href="/courses">Cursos</a></li>
65 <li class="nav-item"><a class="nav-link active" aria-current="page" href="/course/{{course_id}}">Tópicos</a></li> 62 <li class="nav-item"><a class="nav-link active" aria-current="page" href="/course/{{course_id}}">Tópicos</a></li>
66 - <!-- <li class="nav-item"><a class="nav-link disabled" href="#">Classificação</a></li> --> 63 + <li class="nav-item"><a class="nav-link disabled" href="#">Classificação</a></li>
67 </ul> 64 </ul>
68 <ul class="navbar-nav ms-auto"> 65 <ul class="navbar-nav ms-auto">
69 <li class="nav-item dropdown"> 66 <li class="nav-item dropdown">
demo/math/learn-prime-numbers/learn.yaml 0 → 100644
@@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
  1 +- type: radio
  2 + title: O que são números primos?
  3 + text: |
  4 + Um número $n \ge 2$ é primo se os únicos divisores forem $1$ e $n$.
  5 +
  6 + Por exemplo, o número $5$ é primo, pois $2,3,4$ não são divisores de $5$.
  7 +
  8 + ---
  9 +
  10 + O número $1$ é primo?
  11 + options:
  12 + - Não
  13 + - Sim
  14 + max_tries: 1
  15 + solution: |
  16 + O número $1$ não é primo. Apenas podem ser primos os números a partir do
  17 + $2$.