Skip to content

Commit eb47df7

Browse files
committed
cursos ordenados
1 parent 0d40f3b commit eb47df7

File tree

2 files changed

+19
-32
lines changed

2 files changed

+19
-32
lines changed

src/pages/ayudantias/index.astro

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,32 @@
11
---
22
import CardsLayout from "~/layouts/Cards.astro";
3-
43
---
54

65
<CardsLayout class="flex-col flex" title="Ayudantías">
76
<Fragment slot="header">
87
<h2 class="font-title text-xl">Información sobre ayudantías</h2>
98
<p>
10-
Recuerda que todas las postulaciones se realizan vía SIDING. <br class="hidden md:block">
11-
Para más información sobre periodos, cursos y requisitos, únete a
9+
Recuerda que todas las postulaciones se realizan vía SIDING. <br class="hidden md:block" />
10+
Para más información sobre periodos, cursos y requisitos, únete a
1211
<!-- in another tab -->
1312
<a class="text-blue-600 hover:underline" target="_blank" rel="noopener noreferrer" href="https://t.me/DCC_UC"
1413
>DCCAcademic</a
1514
>!
1615
</p>
1716
</Fragment>
18-
<section class="flex flex-col gap-6 mx-auto max-w-2xl p-4">
19-
<articule class="flex flex-col rounded bg-white py-6 px-4">
20-
<h2 class="font-bold text-xl text-stone-900 px-2">Introducción a la programación</h2>
21-
<details class="border-2 border-stone-500 my-3 rounded">
22-
<summary
23-
class="px-4 py-2 cursor-pointer bg-stone-100 hover:bg-stone-200 transition-all text-stone-800 list-none flex items-center"
24-
>
25-
<span class="flex-grow">Ver el mensaje</span>
26-
<svg class="fill-stone-800 w-4 h-4 -mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
27-
><path d="M12.95 10.707l.707-.707L8 4.343 6.586 5.757 10.828 10l-4.242 4.243L8 15.657l4.95-4.95z" /></svg
28-
>
29-
</summary>
30-
<div class="prose prose-p:my-2 leading-tight p-2">
31-
Mensaje
32-
</div>
33-
</details>
34-
<div class="flex flex-col gap-1">
35-
<a
36-
href="https://iic1103.ing.puc.cl/"
37-
target="_blank"
38-
rel="noopener noreferrer"
39-
class="text-stone-800 hover:bg-stone-50 border-stone-800 border-2 font-bold py-0.5 px-4 text-center rounded"
40-
>
41-
Más información
42-
</a>
43-
</div>
44-
</articule>
45-
</section>
17+
<section class="flex flex-col gap-6 mx-auto max-w-xl p-4">
18+
<articule class="flex flex-col rounded bg-white py-6 px-4">
19+
<h2 class="font-bold text-xl text-stone-900 px-2">Introducción a la programación</h2>
20+
<div class="flex flex-col gap-1 pt-4">
21+
<a
22+
href="https://iic1103.ing.puc.cl/"
23+
target="_blank"
24+
rel="noopener noreferrer"
25+
class="text-stone-800 hover:bg-stone-50 border-stone-800 border-2 font-bold py-0.5 px-4 text-center rounded"
26+
>
27+
Ir al sitio
28+
</a>
29+
</div>
30+
</articule>
31+
</section>
4632
</CardsLayout>

src/pages/cursos/Cursos.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
async function getCourses() {
1414
_finally = false;
1515
try {
16-
const res = await pb.collection("courses").getFullList<Course>();
16+
const res: Course[] = await pb.collection("courses").getFullList<Course>();
1717
if (res) {
18+
res.sort((a, b) => a.code.localeCompare(b.code));
1819
return res;
1920
} else {
2021
console.log(res);

0 commit comments

Comments
 (0)