chore: use color in twitter icon (no fire)

This commit is contained in:
Guido García 2021-03-20 14:40:18 +01:00
parent 19434652de
commit 380c1544c2
4 changed files with 24 additions and 18 deletions

View File

@ -1,6 +1,7 @@
# #websegura
Una iniciativa de [PucelaBits](https://pucelabits.org/). Analizamos y mostramos [seguridad HTTPS de sitios web públicos](https://websegura.pucelabits.org), como medida para visualizar aquellos que pueden suponer un riesgo para sus usuarios.
Analizamos y mostramos [seguridad HTTPS de sitios web públicos](https://websegura.pucelabits.org), como medida para visualizar aquellos que pueden suponer un riesgo para sus usuarios.
Una iniciativa de [PucelaBits](https://pucelabits.org/).
## Participa
@ -36,13 +37,13 @@ El framework que usamos es [Eleventy](https://www.11ty.dev/). Necesitarás `git`
sudo apt get install git nodejs
```
Si quieres ejecutar el script para hacer el análiais de las webs, también necesitarás `jq` y `curl`.
Si quieres ejecutar el script para hacer el análisis de las webs, también necesitarás `jq` y `curl`.
```sh
sudo apt get install jq curl
```
Clona el repo
Clona el repositorio:
```sh
git clone git@github.com:PucelaBits/websegura.git

View File

@ -31,14 +31,9 @@
https://websegura.pucelabits.org'| urlEncode }}{{ path }}{{ '?pk_campaign=HazseloSaber&pk_source=twitter
#websegura /vía @PucelaBits' | urlEncode }}" target="_blank" rel="noopener" aria-label="Twitter">
<span class="icon brands fa-twitter">
<span class="icon brands fa-twitter" {% if web.twitter_mentions > 0 %}data-popularity="high" title="Sitio destacado. Súmate a quienes ya han tuiteado"{% endif %}>
<span>Tuitear</span>
</a>
{% if web.twitter_mentions > 0 %}
<span title="Sitio destacado. Súmate a quienes ya han tuiteado">🔥</span>
{% elif web.twitter_mentions > 3 %}
<span title="Súmate a las {{ web.twitter_mentions }} personas que ya han tuiteado">🔥🔥</span>
{% endif %}
{% endif %}
</td>
</tr>

View File

@ -300,3 +300,7 @@ img[src*="#thumbnail"] {
margin: 0 0.5em 1em;
}
}
.icon[data-popularity="high"] {
color: firebrick;
}

View File

@ -12,24 +12,30 @@ permalink: "w/{{ r }}/"
{% set url = r | replace("!", ".") %}
{% from "details.njk" import details %}
<!--
TODO iterate over all.json instead of using provincias/comunidades/global
that only contain a reduced set of fields (e.g. twitter_mentions is not included),
limiting the info that can be shown in the details page.
-->
{% for name, provincia in provincias %}
{% for w in provincia.webs %}
{% if w.url == url %}
{{ details(w, result, history, page.url, "p", name, provincia) }}
{% for web in provincia.webs %}
{% if web.url == url %}
{{ details(web, result, history, page.url, "p", name, provincia) }}
{% endif %}
{% endfor %}
{% endfor %}
{% for name, comunidad in comunidades %}
{% for w in comunidad.webs %}
{% if w.url == url %}
{{ details(w, result, history, page.url, "c", name, comunidad) }}
{% for web in comunidad.webs %}
{% if web.url == url %}
{{ details(web, result, history, page.url, "c", name, comunidad) }}
{% endif %}
{% endfor %}
{% endfor %}
{% for w in general.webs %}
{% if w.url == url %}
{{ details(w, result, history, page.url) }}
{% for web in general.webs %}
{% if web.url == url %}
{{ details(web, result, history, page.url) }}
{% endif %}
{% endfor %}