homepage highlight icons cliccabili #268

Merged
paspo merged 1 commits from paspo/bglug.it:highlights-icons into main 2024-09-29 19:10:31 +00:00
4 changed files with 30 additions and 0 deletions

View File

@ -205,3 +205,7 @@ article header div.author {
background-repeat: no-repeat; background-repeat: no-repeat;
background-image: url("images/mattermost_logo.svg"); background-image: url("images/mattermost_logo.svg");
} }
.icon.major {
cursor: pointer;
}

View File

@ -26,11 +26,13 @@ items:
items: items:
- title: Events - title: Events
icon: fa-calendar-day icon: fa-calendar-day
url: /en/events/
content: > content: >
Come to our events! You would learn all that there is to know about Come to our events! You would learn all that there is to know about
free software and *open source* free software and *open source*
- title: Schools - title: Schools
icon: fa-graduation-cap icon: fa-graduation-cap
url: /it/tags/scuola/
content: > content: >
Follow our volunteers on their activities by schools in the province Follow our volunteers on their activities by schools in the province
of Bergamo. of Bergamo.

View File

@ -26,11 +26,13 @@ items:
items: items:
- title: Eventi - title: Eventi
icon: fa-calendar-day icon: fa-calendar-day
url: /it/eventi/
content: > content: >
Accorri agli eventi che organizziamo! Avrai modo di imparare tutto Accorri agli eventi che organizziamo! Avrai modo di imparare tutto
quello che c'è da sapere sul software libero o *open source* quello che c'è da sapere sul software libero o *open source*
- title: Scuole - title: Scuole
icon: fa-graduation-cap icon: fa-graduation-cap
url: /it/tags/scuola/
content: > content: >
Segui i nostri volontari nelle loro attività presso le scuole della Segui i nostri volontari nelle loro attività presso le scuole della
provincia di Bergamo provincia di Bergamo

View File

@ -0,0 +1,22 @@
<section class="wrapper style1">
<div class="container">
<div class="row gtr-200">
{{- $item_cols := (div 12 (.item.items_per_row | default 3)) }}
{{- range .item.items }}
<section class="col-{{ $item_cols }} col-12-narrower">
<div class="box highlight">
{{- if .url -}}
<a href="{{ .url }}">
{{- end -}}
<i class="icon solid major {{ .icon }}"></i>
<h3>{{ .title }}</h3>
{{- if .url -}}
</a>
{{- end -}}
<p>{{ .content | markdownify }}</p>
</div>
</section>
{{- end }}
</div>
</div>
</section>