Skip to content

Commit

Permalink
17.1: custom buttons, changes in backup, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miermontoto committed Nov 16, 2023
1 parent 3c4bc8a commit d42a7e3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions src/content/collections/projects/backup.md
Expand Up @@ -23,8 +23,8 @@ el repositorio general se actualiza de manera automática todos los días, los r
### Backup Carrera
el repositorio es una especie de continuación al conocido "Backup", que contiene mucha información y exámenes de otros años recopilados por ex-estudaintes de la carrera.

- [backup original (onedrive UO)](https://unioviedo-my.sharepoint.com/:f:/g/personal/uo257355_uniovi_es/EjUyVaf6mAhMh1TqxDFey8kB-CKEk7KP6CqwkYylcYdRQg?e=xbMQHT) (se necesita cuenta de uniovi)
- [backup carrera (gdrive mirror)](https://drive.google.com/drive/folders/1z8Sc4v4nRte7a7H5TaDDtwROzoN4_Cu3?usp=share_link)
- [Backup Carrera (original)](https://unioviedo-my.sharepoint.com/:f:/g/personal/uo257355_uniovi_esEjUyVaf6mAhMh1TqxDFey8kB-CKEk7KP6CqwkYylcYdRQg?e=xbMQHT) *se necesita cuenta de uniovi*
- [Backup Carrera (mirror, google drive)](https://drive.google.com/drive/folders/1z8Sc4v4nRte7a7H5TaDDtwROzoN4_Cu3?usp=share_link)

## Descarga
para descargar un repositorio, se puede clonar de forma individual o descargar en formato zip desde GitHub.
Expand Down Expand Up @@ -89,12 +89,14 @@ para descargar todos los repositorios, usar el siguiente comando en una terminal

## y4t1
- [Gestión de Tecnologías de la Información](https://github.com/miermontoto/GTI)
- ["gti quiz", colección de preguntas de examen del segundo parcial](https://mier.info/gti/)
- [Ingeniería de Servicios](https://github.com/miermontoto/Servicios)
- [Inteligencia de Negocio](https://github.com/miermontoto/Negocio)
- [Seguridad](https://github.com/miermontoto/Servicios)
- [Tecnologías Web](https://github.com/miermontoto/Web)
- <span class="unavailable">["tew-lab-jee", prácticas de laboratorio](https://github.com/miermontoto/tew-2324-4-UO283319-lab-jee)</span>
- <span class="unavailable">"2324-tew1-41", trabajo en grupo</span>
- <span class="unavailable">"2324-tew1-41", primer trabajo en grupo</span>
- <span class="unavailable">"2324-tew2-41", segundo trabajo en grupo</span>

</div>

Expand Down
4 changes: 3 additions & 1 deletion src/content/collections/projects/gti.njk
Expand Up @@ -6,6 +6,9 @@ permalink: /gti/
demo: /gti/
source: https://github.com/search?q=repo%3Amiermontoto%2Fmiermontoto+gti.&type=code
download: /content/collections/projects/gti.data.json
buttons: ['<a class="button download" href="/content/collections/projects/gti.data.json"><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"/></svg> download json</a>',
'<span class="button" id="reset"><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M48.5 224H40c-13.3 0-24-10.7-24-24V72c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2L98.6 96.6c87.6-86.5 228.7-86.2 315.8 1c87.5 87.5 87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3c-62.2-62.2-162.7-62.5-225.3-1L185 183c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8H48.5z"/></svg> reset</span>'
]
---

{% addStyle 'gti' %}
Expand All @@ -17,7 +20,6 @@ download: /content/collections/projects/gti.data.json
<span id="scored"><span id="score">0</span>%</span>
<noscript class=".error">ERROR: JavaScript is NEEDED for the quiz to work!</noscript>
</div>
<span class="button" id="reset">reset</span>
<div id="options">
<input type="checkbox" id="shuffle-questions" checked>
<label for="shuffle">shuffle questions</label>
Expand Down
2 changes: 1 addition & 1 deletion src/static/css/global.sass
Expand Up @@ -44,7 +44,7 @@ a, a:visited

code
color: base.$white
background-color: base.$secondary
background-color: base.$dark
padding: 0 5px
border-radius: 5px

Expand Down
8 changes: 5 additions & 3 deletions src/templates/project.njk
Expand Up @@ -3,14 +3,16 @@ layout: base.njk
css: project
---

<a href="/" id="back">< go back</a>
<a href="{{ back or "/" }}" id="back">< go back</a>
{% if source %}
<span id="sep"> | </span>
<a href="{{ source }}" id="source">source code ></a>
{% endif %}
<h1>{{ title }}</h1>
{% if download %}
<a class="button" id="download" href="{{ download }}"><i class="fa-solid fa-download"></i>download</a>
{% if buttons %}
{% for button in buttons %}
{{ button | safe }}
{% endfor %}
{% endif %}
<hr>
{% if content %}
Expand Down

0 comments on commit d42a7e3

Please sign in to comment.