Skip to content

Commit 184a0fd

Browse files
committed
18.5
[webutils] - new img conversor/resizer webutil [backup] - adjust line spacing (fixes SEO issues) [GTI] - tweaks and style adjustments [index] - remove for loops from macros [epiCalendar] - add own image to tutorial to improve performance - minor changes [general] - minor tweaks to css
1 parent 9046b25 commit 184a0fd

12 files changed

Lines changed: 207 additions & 40 deletions

File tree

.eleventy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ module.exports = function (eleventyConfig) {
6868

6969
eleventyConfig.addShortcode("questions", function(json) {
7070
let blocks = ['socrative', 'backup'];
71-
let template = '<h3>preguntas.</h3> <ul>';
71+
let template = `<div id="block-selection"> <h3>preguntas.</h3> <ul>`;
7272
blocks.forEach(b => {
73-
template += `<li><code>${b}</code>: ${json[b]['info']}</li>`
73+
template += `<li><code>${b}</code>: ${json[b]['info']}</li>`;
7474
});
7575
template += '<li><code>todas</code>: todas las preguntas</li></ul>';
7676

7777
blocks.forEach((b) => {
7878
template += `<span class="button select-block" id="${b}">${b}</span>`
7979
});
8080

81-
template += `<span class="button select-block" id="all">todas</span>`;
82-
template += `<hr> <div id="questions">`;
81+
template += '<span class="button select-block" id="all">todas</span>';
82+
template += '</div> <hr> <div id="questions">';
8383

8484
blocks.forEach((block) => {
8585
let questions = json[block]['questions'];

assets/media/jsessionid.png

90.8 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content/collections/projects/epicalendar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buttons: [
1414
]
1515
---
1616

17-
## JSESSION tutorial
17+
## cómo extraer tu JSESSIONID
1818
1. Inicia sesión en el [SIES](https://sies.uniovi.es/serviciosacademicos/) con tu cuenta.
1919
2. Abre las herramientas de desarrollador de tu navegador (F12).
2020
3. Ve a la pestaña de almacenamiento:
@@ -24,4 +24,4 @@ buttons: [
2424
- En caso de haber varias, copia el valor de la cookie que tenga `path: /serviciosacademicos`.
2525
5. Pega el valor en el campo de texto de la página de epiCalendar.
2626

27-
<img src="https://github.com/Bimo99B9/autoUniCalendar/blob/main/assets/cookies.jpg?raw=true" width="1000em" alt="JSESSIONID cookie"/>
27+
<img src="/assets/media/jsessionid.png" width="85%" alt="imagen de cómo extrar la cookie JSESSIONID de tu navegador"/>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"tags": "projects",
2+
"tags": "project",
33
"permalink": false,
44
"layout": "project.njk"
55
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{% addScript 'img' %}
2+
{% addStyle 'webutils' %}
3+
4+
<span class="info">convert </span>
5+
<input type="file" id="img-input" accept="image/png, image/jpeg, image/svg+xml, image/webp, image/ico, image/bmp" />
6+
<span class="info"> to </span>
7+
<select id="img-format">
8+
<option value="png">png</option>
9+
<option value="jpeg">jpg</option>
10+
<option value="webp">webp</option>
11+
<option value="ico">ico</option>
12+
<option value="bmp">bmp</option>
13+
</select>
14+
<span id="img-formatInfo" class="warning hidden" title="not supported by all browsers & platforms">⚠️</span>
15+
<br>
16+
<table id="img-options" class="disabled">
17+
<caption>options</caption>
18+
<thead hidden>
19+
<tr>
20+
<th>option</th>
21+
<th>value</th>
22+
</tr>
23+
</thead>
24+
<tr id="quality">
25+
<td class="info">quality</td>
26+
<td>
27+
<input type="range" min="0" max="100" value="100" step="10" id="qualitySlider" disabled />
28+
<span id="qualityValue">loseless</span>
29+
</td>
30+
</tr>
31+
<tr id="width">
32+
<td class="info">width</td>
33+
<td><input type="number" min="0" max="5000" value="0" id="widthInput" disabled /> px</td>
34+
</tr>
35+
<tr id="height">
36+
<td class="info">height</td>
37+
<td><input type="number" min="0" max="5000" value="0" id="heightInput" disabled /> px</td>
38+
</tr>
39+
<tr id="keepRatioRow">
40+
<td><label for="keepRatio" class="info">keep ratio</label></td>
41+
<td><input type="checkbox" id="keepRatio" checked disabled /></td>
42+
</tr>
43+
</table>
44+
<br>
45+
<span class="button disabled" id="img-convert">convert</span>
46+
<hr>
47+
<a class="button hidden" id="img-download"><img src="/assets/icons/button/download.svg" class="icon invert" alt=""> download</a> <br>
48+
<span class="info" id="img-filename"></span><br>
49+
<img id="img-canvas" alt="converted image" hidden />

src/index.njk

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,32 @@ js: index
3131
{% import "src/static/macros.njk" as macros %}
3232

3333
<section id="project-section" class="section">
34-
<h1>projects.</h1>
35-
{{ macros.renderProjects(collections.projects) }}
34+
<table id="projects">
35+
<caption><h1>projects.</h1></caption>
36+
<thead hidden>
37+
<tr>
38+
<th>Project</th>
39+
<th>Links</th>
40+
<th>Description</th>
41+
<th>Icons</th>
42+
{# <th>Image</th> #}
43+
</tr>
44+
</thead>
45+
<tbody>
46+
{% for project in collections.project %}
47+
{{ macros.renderProject(project) }}
48+
{% endfor %}
49+
</tbody>
50+
</table>
3651
</section>
3752

3853
<section id="about-section" class="section">
3954
<div id="experience-container">
4055
<h1>experience.</h1>
4156
<div id="experience" class="carded">
42-
{{ macros.renderExperiences(collections.experience) }}
57+
{% for experience in collections.experience %}
58+
{{ macros.renderExperience(experience) }}
59+
{% endfor %}
4360
</div>
4461
</div>
4562
<br>

src/static/css/app/backup.sass

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
@use '../base'
22

33
h2, h3
4-
margin-top: 3em
4+
margin-top: 2em
55

66
#subjects
77
font-size: 1.1em
8+
line-height: 1.75em
89

9-
a
10+
a // subjects
1011
font-weight: bold
1112
font-size: 1.2em
12-
i, em
13+
14+
i, em // comments, notes
1315
font-size: 0.8em
14-
ul li ul li a
16+
17+
ul li ul li a // subjects' projects
1518
font-size: 1em
1619
font-weight: normal
1720

src/static/css/app/webutils.sass

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,13 @@ body
2929
#encoded, #decoded
3030
width: 100%
3131
height: 100%
32+
33+
.info
34+
font-style: italic
35+
36+
table td:nth-child(2) input
37+
width: 60px
38+
39+
#img-canvas
40+
width: 50%
41+
height: auto

src/static/css/global.sass

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,6 @@ quote
168168

169169
.hidden
170170
display: none
171+
172+
ul, ol
173+
line-height: 1.35em

0 commit comments

Comments
 (0)