First draft of gallerie
|
|
@ -507,28 +507,48 @@ footer {
|
|||
}
|
||||
}
|
||||
|
||||
.galerie-table {
|
||||
align-items: center;
|
||||
display:inline-block;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
line-height: 0;
|
||||
-webkit-column-count: 5;
|
||||
-webkit-column-gap: 0px;
|
||||
-moz-column-count: 5;
|
||||
-moz-column-gap: 0px;
|
||||
column-count: 5;
|
||||
column-gap: 0px;
|
||||
}
|
||||
|
||||
.galerie-entry {
|
||||
padding: 8px;
|
||||
.galerie-table {
|
||||
columns: 3 300px;
|
||||
column-gap: 1.5rem;
|
||||
width: 90%;
|
||||
margin: 10px auto;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.galerie-image {
|
||||
width: 100%;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 0 16px #333;
|
||||
width: 100% !important;
|
||||
height: auto !important;
|
||||
}
|
||||
.galerie-entry {
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
margin: 10px 0;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 0 16px #333;
|
||||
}
|
||||
|
||||
.galerie-image {
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
border: 0;
|
||||
position: relative;
|
||||
-webkit-transition: all 200ms ease-in;
|
||||
-webkit-transform: scale(1);
|
||||
-ms-transition: all 200ms ease-in;
|
||||
-ms-transform: scale(1);
|
||||
-moz-transition: all 200ms ease-in;
|
||||
-moz-transform: scale(1);
|
||||
transition: all 200ms ease-in;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.galerie-image:hover {
|
||||
z-index: 2;
|
||||
-webkit-transition: all 200ms ease-in;
|
||||
-webkit-transform: scale(1.1);
|
||||
-ms-transition: all 200ms ease-in;
|
||||
-ms-transform: scale(1.1);
|
||||
-moz-transition: all 200ms ease-in;
|
||||
-moz-transform: scale(1.1);
|
||||
transition: all 200ms ease-in;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,11 @@ type: "galerie"
|
|||
|
||||
| | | |
|
||||
| - | - | - |
|
||||
| Test 2 | volcan4.jpeg |
|
||||
| Test 1 | volcan1.jpeg |
|
||||
| Test 2 | volcan3.jpeg |
|
||||
| Test 2 | volcan2.jpeg |
|
||||
| Test 2 | volcan5.jpeg |
|
||||
| v | volcanv1.jpeg |
|
||||
| h | volcanh1.jpeg |
|
||||
| h | volcanv2.jpeg |
|
||||
| h | volcanh2.jpeg |
|
||||
| h | volcanv3.jpeg |
|
||||
| h | volcanh3.jpeg |
|
||||
| h | volcanv4.jpeg |
|
||||
| h | volcanh4.jpeg |
|
||||
|
|
|
|||
BIN
content/galerie/volcanh1.jpeg
Normal file
|
After Width: | Height: | Size: 307 KiB |
BIN
content/galerie/volcanh2.jpeg
Normal file
|
After Width: | Height: | Size: 342 KiB |
BIN
content/galerie/volcanh3.jpeg
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
content/galerie/volcanh4.jpeg
Normal file
|
After Width: | Height: | Size: 201 KiB |
BIN
content/galerie/volcanh5.jpeg
Normal file
|
After Width: | Height: | Size: 300 KiB |
BIN
content/galerie/volcanh6.jpeg
Normal file
|
After Width: | Height: | Size: 223 KiB |
BIN
content/galerie/volcanv1.jpeg
Normal file
|
After Width: | Height: | Size: 258 KiB |
BIN
content/galerie/volcanv2.jpeg
Normal file
|
After Width: | Height: | Size: 254 KiB |
BIN
content/galerie/volcanv3.jpeg
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
content/galerie/volcanv4.jpeg
Normal file
|
After Width: | Height: | Size: 303 KiB |
BIN
content/galerie/volcanv5.jpeg
Normal file
|
After Width: | Height: | Size: 184 KiB |
|
|
@ -1,13 +1,16 @@
|
|||
<div class="galerie-table">
|
||||
{{ range .TBody }}
|
||||
{{ $name := ((index . 0).Text | safeHTML ) }}
|
||||
{{ $link := ((index . 1).Text | safeURL ) }}
|
||||
|
||||
|
||||
<div class="galerie-entry">
|
||||
{{ if ne $link "" }}
|
||||
<img class="galerie-image" src="{{ $link }}" alt="{{ $name }}" />
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ range .TBody }}
|
||||
{{ $name := ((index . 0).Text | safeHTML ) }}
|
||||
{{ $link := ((index . 1).Text | safeURL ) }}
|
||||
<div class="galerie-entry">
|
||||
{{ if ne $link "" }}
|
||||
<a href="{{ $link }}"
|
||||
><img
|
||||
class="galerie-image"
|
||||
src="{{ $link }}"
|
||||
alt="{{ $name }}"
|
||||
/></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
|
|||