Compare commits

..

6 Commits

Author SHA1 Message Date
Andreas Kurm
d606b7c56f Merge branch 'devel_custom_hugo_theme' of https://git.freifunk-rhein-sieg.net/Freifunk-Rhein-Sieg/freifunk-rhein-sieg.net into devel_custom_hugo_theme
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-09 18:08:01 +01:00
Andreas Kurm
d97bdf0bc3 Setted overflow-wrap to break-word for h1, h2, h3 on small displays 2020-02-09 17:54:03 +01:00
Andreas Kurm
23f7b20a5b Improved responsive design for small displays with css media queries 2020-02-09 17:46:39 +01:00
Andreas Kurm
507210b0a0 Added communities page 2020-02-09 17:45:41 +01:00
Andreas Kurm
5b5bd1df02 Added shortcodes for community page 2020-02-09 17:44:57 +01:00
Andreas Kurm
e4fb75eef9 Added yellow background class with hover effect 2020-02-09 17:43:13 +01:00
5 changed files with 155 additions and 0 deletions

View File

@ -0,0 +1,86 @@
---
title: "Communities"
date: 2020-02-09T10:17:09+01:00
draft: true
---
# Unterstützte Communities oder Communities unserer Mitglieder
{{< community_deck_start >}}
{{< community
name="Freifunk Troisdorf"
description="Die nichtkommerzielle Initiative für den Aufbau freier WLAN-Netzwerke in Troisdorf"
link="https://freifunk-troisdorf.de/"
facebook="https://www.facebook.com/freifunktdf"
twitter=""
email=""
>}}
{{< community
name="Freifunk Siegburg"
description=""
link="http://www.freifunk-siegburg.de/"
facebook="https://de-de.facebook.com/freifunksiegburg"
twitter="https://twitter.com/ff_siegburg"
email=""
>}}
{{< community
name="Freifunk Rheinbach"
description=""
link="http://freifunk-rheinbach.de/"
facebook="https://www.facebook.com/ffrhb"
twitter=""
email=""
>}}
{{< community_deck_end >}}
{{< community_deck_start >}}
{{< community
name="Freifunk Altenkirchen"
description=""
link=""
facebook=""
twitter=""
email=""
>}}
{{< community
name="Freifunk Lohmar"
description=""
link=""
facebook=""
twitter=""
email=""
>}}
{{< community
name="Freifunk Meckenheim"
description=""
link=""
facebook=""
twitter=""
email=""
>}}
{{< community_deck_end >}}
{{< community_deck_start >}}
{{< community
name="Freifunk Sankt Augustin"
description=""
link=""
facebook=""
twitter=""
email=""
>}}
{{< community_deck_end >}}

View File

@ -0,0 +1,38 @@
<div class="card bg-yellow">
<div class="card-body">
<h5 class="card-title text-center">{{ .Get "name" }}</h5>
<p class="card-text text-center">{{ .Get "description" }}</p>
</div>
<div class="card-footer p-0">
<div class="row m-0">
{{ if .Get "link" }}
<div class="col p-0">
<a class="btn btn-on-com-card w-100" href="{{ .Get "link" }}" target="_blank">Link</a>
</div>
{{ end }}
{{ if .Get "facebook" }}
<div class="col p-0">
<a class="btn btn-on-com-card w-100" href="{{ .Get "facebook" }}" target="_blank">Facebook</a>
</div>
{{ end }}
{{ if .Get "twitter" }}
<div class="col p-0">
<a class="btn btn-on-com-card w-100" href="{{ .Get "twitter" }}" target="_blank">Twitter</a>
</div>
{{ end }}
{{ if .Get "email" }}
<div class="col p-0">
<a class="btn btn-on-com-card w-100" href="{{ .Get "email" }}" target="_blank">Email</a>
</div>
{{ end }}
</div>
</div>
</div>

View File

@ -0,0 +1 @@
</div>

View File

@ -0,0 +1 @@
<div class="card-deck mb-4">

View File

@ -39,3 +39,32 @@ footer{
.navbar-toggler-icon{
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")!important;
}
.bg-yellow{
background-color: #ffb400;
}
.btn-on-com-card:hover{
background-color: hsl(42, 100%, 45%);
}
@media all and (max-width: 900px) {
.card-deck {
display:block!important;
}
.card{
margin-bottom:15px!important;
}
}
@media all and (max-width: 700px) {
.container{
width: 100%!important;
}
h1{margin: 1em 0;overflow-wrap: break-word;}
h2{margin-top: 1em;overflow-wrap: break-word;}
h3{margin-top: 0.5em;overflow-wrap: break-word;}
}