commit 6333d4a54bdcaeb7a29aec6c89fc869519953ee0 Author: giomba Date: Tue Dec 8 14:03:10 2020 +0100 first commit diff --git a/counters.js b/counters.js new file mode 100644 index 0000000000..c8d805e5d8 --- /dev/null +++ b/counters.js @@ -0,0 +1,82 @@ +const MONTHNAME = [ "gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre"]; +function counters() { + + fetch("https://golem.linux.it/wp/wp-json/wp/v2/posts") + .then(response => response.json()) + .then(json => { + let ul = document.getElementById("wp-latest-posts"); + for (let i = 0; i < 3; ++i) { + let post = json[i]; + let li = document.createElement("li"); + let a = document.createElement("a"); + a.href = post.link; + a.appendChild(document.createTextNode(post.title.rendered)); + li.appendChild(a); + li.appendChild(document.createElement("br")); + let datespan = document.createElement("span"); + datespan.style.fontSize = "smaller"; + let dateobj = new Date(post.date); + datespan.appendChild(document.createTextNode(dateobj.getDate() + " " + MONTHNAME[dateobj.getMonth()] + " " + dateobj.getFullYear())); + li.appendChild(datespan); + ul.appendChild(li); + } + }) + .catch(err => console.error(err)); + + fetch("https://golem.linux.it/wiki/api.php?action=query&list=recentchanges&rcprop=title&rclimit=50&format=json&origin=*") + .then(response => response.json()) + .then(json => { + let recentchanges = json.query.recentchanges; + let rcs = new Set(); + for (let i = 0; i < recentchanges.length; ++i) { + rcs.add(recentchanges[i].title); + } + let rca = Array.from(rcs); + + let ul = document.getElementById("mw-recent-changes"); + for (let i = 0; i < rca.length; ++i) { + let title = rca[i]; + let li = document.createElement("li"); + let a = document.createElement("a"); + a.href = "https://golem.linux.it/wiki/" + title; + a.appendChild(document.createTextNode(title)); + li.appendChild(a); + ul.appendChild(li); + if (i >= 4) break; + } + }) + .catch(function(error){console.log(error);}); + + + + fetch("https://golem.linux.it/wp/wp-json/wp/v2/posts") + .then(response => { + let articles = response.headers.get("X-WP-Total"); + + let p = document.getElementById("wordpress-articles"); + p.appendChild(document.createTextNode(articles + " articoli")); + }) + .catch(err => console.error(err)); + + fetch("https://golem.linux.it/wiki/api.php?action=query&meta=siteinfo&siprop=statistics&format=json&origin=*") + .then(response => response.json()) + .then(json => { + let pages = json.query.statistics.articles; + + let p = document.getElementById("mediawiki-pages"); + p.appendChild(document.createTextNode(pages + " pagine")); + + }) + .catch(err => console.error(err)); + + fetch("https://git.golem.linux.it/api/v1/repos/search") + .then(response => response.json()) + .then(response => { + let repos = response.data.length; + + let p = document.getElementById("gitea-repos"); + p.appendChild(document.createTextNode(repos + " repository")); + }) + .catch(err => console.error(err)); + +} \ No newline at end of file diff --git a/favicon.png b/favicon.png new file mode 100644 index 0000000000..95b49a9c0d Binary files /dev/null and b/favicon.png differ diff --git a/img/archive.svg b/img/archive.svg new file mode 100644 index 0000000000..b79eeeae22 --- /dev/null +++ b/img/archive.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/bird.svg b/img/bird.svg new file mode 100644 index 0000000000..b9c1e0e229 --- /dev/null +++ b/img/bird.svg @@ -0,0 +1,64 @@ + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/img/cena.jpeg b/img/cena.jpeg new file mode 100644 index 0000000000..c3ae574763 Binary files /dev/null and b/img/cena.jpeg differ diff --git a/img/elettronica.jpeg b/img/elettronica.jpeg new file mode 100644 index 0000000000..feeab7d9b9 Binary files /dev/null and b/img/elettronica.jpeg differ diff --git a/img/email.svg b/img/email.svg new file mode 100644 index 0000000000..b0845b4fd2 --- /dev/null +++ b/img/email.svg @@ -0,0 +1,98 @@ + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/file-sharing.svg b/img/file-sharing.svg new file mode 100644 index 0000000000..107fdb03c9 --- /dev/null +++ b/img/file-sharing.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/gadgets.jpeg b/img/gadgets.jpeg new file mode 100644 index 0000000000..1804f33e42 Binary files /dev/null and b/img/gadgets.jpeg differ diff --git a/img/git.png b/img/git.png new file mode 100644 index 0000000000..c190e8538b Binary files /dev/null and b/img/git.png differ diff --git a/img/ils.png b/img/ils.png new file mode 100644 index 0000000000..da529a340a Binary files /dev/null and b/img/ils.png differ diff --git a/img/murale.jpeg b/img/murale.jpeg new file mode 100644 index 0000000000..ccc2b00884 Binary files /dev/null and b/img/murale.jpeg differ diff --git a/img/pinguino-ipnotico.jpeg b/img/pinguino-ipnotico.jpeg new file mode 100644 index 0000000000..e6970569da Binary files /dev/null and b/img/pinguino-ipnotico.jpeg differ diff --git a/img/post.png b/img/post.png new file mode 100644 index 0000000000..6123a10711 Binary files /dev/null and b/img/post.png differ diff --git a/img/quintetto.jpeg b/img/quintetto.jpeg new file mode 100644 index 0000000000..b6195c7b45 Binary files /dev/null and b/img/quintetto.jpeg differ diff --git a/img/rss.svg b/img/rss.svg new file mode 100644 index 0000000000..c11ee87265 --- /dev/null +++ b/img/rss.svg @@ -0,0 +1,125 @@ + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/social-network.svg b/img/social-network.svg new file mode 100644 index 0000000000..35ff2847d5 --- /dev/null +++ b/img/social-network.svg @@ -0,0 +1,387 @@ + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/telegram.svg b/img/telegram.svg new file mode 100644 index 0000000000..b4836693bb --- /dev/null +++ b/img/telegram.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + diff --git a/img/unitoo.png b/img/unitoo.png new file mode 100644 index 0000000000..adca4349a7 Binary files /dev/null and b/img/unitoo.png differ diff --git a/img/wiki.svg b/img/wiki.svg new file mode 100644 index 0000000000..3ea6711845 --- /dev/null +++ b/img/wiki.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000000..208a5ebbbc --- /dev/null +++ b/index.html @@ -0,0 +1,202 @@ + + + + + GOLEM | I computer sceglierebbero Linux + + + + + + + + + + + + + +
+

GOLEM

+ 🐧 I computer sceglierebbero Linux 🐧 +
+ +
+
+

Chi siamo

+
+

Il GOLEM

+

+ «Gruppo Operativo Linux Empoli» è il Linux Users Group di Empoli, ed è un'associazione di promozione sociale. +

+
+
+

Dove siamo

+

+

La Vela Margherita Hack
via Magolo, 32
50053 Empoli (FI)
+

+

Mappa

+
+
+

Quando

+

+ Martedì sera
dalle 21.30 alle 24.00 +

+
+
+ +
+

News

+
+

Calendario

+
+
+

Ultimi post

+
    +
    +
    +

    Ultime modifiche

    +
      +
      +
      +

      Ultimi commit

      +
      +
      + +
      +

      Attività

      +

      Progetti in corso

      +
      +

      Software libero

      +

      Crediamo nella condivisione della conoscenza come alternativa all'attuale modello di sviluppo socio-economico dell'informatica e della società in genere.

      + Scopri +
      +
      +

      Ore del GOLEM

      +

      Serate a tema in cui si discute su qualunque cosa riguardi l'open source, dagli argomenti strettamente tecnici e pratici, alla consapevolizzazione nell'uso dei vari strumenti.

      + Scopri +
      +
      +

      Elettronica e maker

      +

      Usa la nostra stampante 3D, la nostra macchina CNC e i nostri strumenti di laboratorio per realizzare il tuo progetto, i tuoi circuiti e condividi con gli altri partecipanti tecniche su come realizzarlo.

      + Scopri +
      +
      +

      Trashware

      +

      Non c'è progresso se non è per tutti: recupero di materiale informatico dismesso, anche se ancora funzionante, per progetti umanitari e anti digital-divide.

      + Scopri +
      +
      + +
      +

      Servizi

      +

      Vieni a scoprire quanto è profonda la tana del bianconiglio.

      +
      + +

      Blog

      + Articolo +
      +

      +
      +
      + +

      Wiki

      + Wiki +
      +

      +
      +
      + +

      Cloud

      + File sharing +
      +

      5 GiB

      +
      +
      + +

      Git

      + Git +
      +

      +
      +
      + +

      Archivio

      + Archivio +
      +

      22 GiB

      +
      +
      + +
      +

      Rimani in Contatto

      +
      + +

      Mailing List

      + Email +
      +
      +
      + +

      Feed RSS

      + Feed RSS +
      +
      +
      + +

      Telegram

      + Telegram app +
      +
      +
      + +

      Twitter

      + Twitter +
      +
      +
      + +

      Facebook

      + Facebook +
      +
      +
      + +
      +

      Rete LUG

      +

      Scopri la comunità italiana del software libero

      +
      +

      LUG Toscana

      +
        +
        +
        + +

        Italian Linux Society

        + ILS - Italian Linux Society +
        +
        +
        + +

        Webradio

        + Unitoo free software web radio +
        +
        + +
        + Palinsesto +
        +
        +
        + + + + + diff --git a/lug.js b/lug.js new file mode 100644 index 0000000000..77b93bf210 --- /dev/null +++ b/lug.js @@ -0,0 +1,32 @@ +function lugtoscana() { + let ul = document.getElementById("lugtoscana"); + + fetch("https://raw.githubusercontent.com/Gelma/LugMap/master/db/toscana.txt") + .then(response => response.text()) + .then(response => { + let lines = response.split("\n"); + for (let i = 0; i < lines.length; ++i) { + line = lines[i].trim(); + let fields = line.split("|"); + if (fields.length < 5) + continue; + + let lug = { + "name": fields[1], + "city": fields[2], + "website": fields[3] + }; + + let li = document.createElement("li"); + let a = document.createElement("a"); + a.href = lug.website; + a.appendChild(document.createTextNode(lug.name + " - " + lug.city)); + li.appendChild(a); + + ul.appendChild(li); + + } + }) + .catch(err => console.error(err)); + +} diff --git a/res/comfortaa.ttf b/res/comfortaa.ttf new file mode 100644 index 0000000000..5e81491462 Binary files /dev/null and b/res/comfortaa.ttf differ diff --git a/style.css b/style.css new file mode 100644 index 0000000000..b922681eeb --- /dev/null +++ b/style.css @@ -0,0 +1,154 @@ +@charset "utf-8"; + +@font-face { + font-family: comfortaa; + src: url(res/comfortaa.ttf); +} + +body { + font-family: comfortaa, "Arial", sans-serif; + background: rgb(255, 255, 223); + margin: 0; +} + +header { + text-align: center; + color: black; +} + +section { + padding: 3vw; + min-height: 50ex; + background-repeat: no-repeat; + background-size: cover !important; + clip-path: polygon( + 0% 100%, + 100% calc(100% - 3vh), + 100% 0, + 0 calc(3vh) + ); +} + +section.bg h1, section.bg h2, section.bg h3 { + text-align: center; +} +section.bg { + color: white; + text-shadow: 0 0 1px black; +} +section.nobg h1, section.nobg h2, section.nobg h3 { + text-align: center; + color: black; + text-shadow: 0 0 1px green; +} + +section div { + transition-duration: 0.5s; + text-align: center; + display: inline-block; + min-height: 30ex; + vertical-align: middle; + width: 100%; +} + +section.bg div:hover { + transition-duration: 0.5s; + background-color: rgba(10,10,10,0.5); +} + +section div img { + max-width: 50%; +} + +section#chisiamo { + background: + linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), + url(img/murale.jpeg); +} +@media (min-width: 800px) { + section#chisiamo div { + width: 33%; + } +} + +section#news { + background: + linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), + url(img/gadgets.jpeg); +} +@media (min-width: 800px) { + section#news div { + width: 24%; + } +} + +section#attivita { + background: + linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), + url(img/elettronica.jpeg); +} +@media (min-width: 800px) { + section#attivita div { + width: 24%; + } +} + +/* +section#servizi { + background: + linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), + url(img/quintetto.jpeg); +} +*/ +@media (min-width: 800px) { + section#servizi div { + width: 19%; + } +} + +section#contatti { + background: + linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), + url(img/cena.jpeg); +} +@media (min-width: 800px) { + section#contatti div { + width: 19%; + } +} + +@media (min-width: 800px) { + section#lug div { + width: 33%; + } +} + +section.nobg a, a:visited { + color: black; +} + +a, a:visited { + color: lightgreen; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +footer { + padding: 5px; + color: white; + text-align: center; + font-size: smaller; + background-color: rgb(29, 29, 29); +} + +ul { + list-style-type: none; + margin: 0; + padding: 0; +} +ul > li { + margin: 1.5ex; +} \ No newline at end of file