Add gallery
|
@ -45,7 +45,42 @@
|
|||
}
|
||||
|
||||
main img {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
#gallery {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
padding: 0;
|
||||
margin: 0 -10px;
|
||||
}
|
||||
|
||||
#gallery a {
|
||||
flex: 1;
|
||||
display: block;
|
||||
padding: 0;
|
||||
margin: 10px;
|
||||
min-width: 370px;
|
||||
max-width: 470px;
|
||||
}
|
||||
|
||||
#gallery a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#gallery a img {
|
||||
display: block;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
#gallery a span {
|
||||
display: block;
|
||||
margin: 10px;
|
||||
color: white;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
@ -56,6 +91,7 @@
|
|||
<span>
|
||||
<a href="{{ page.root }}">About</a>
|
||||
<a href="{{ page.root }}#maps">Maps</a>
|
||||
<a href="{{ page.root }}gallery">Gallery</a>
|
||||
</span>
|
||||
</header>
|
||||
<main>
|
||||
|
|
After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 45 KiB |
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: Gallery
|
||||
layout: default
|
||||
root: ../
|
||||
images:
|
||||
- caption: Saren Mansion, my first build
|
||||
url: saren_mansion.png
|
||||
- caption: Ruben Express store
|
||||
url: ru_store.png
|
||||
- caption: Private residence
|
||||
url: r.png
|
||||
- caption: Advert for shop
|
||||
url: ad.png
|
||||
- caption: Tower in Nameless Town
|
||||
url: tower2.png
|
||||
- caption: Tower in Nameless Town
|
||||
url: tower.png
|
||||
---
|
||||
|
||||
<h2>My Builds</h2>
|
||||
|
||||
<div id="gallery">
|
||||
{% for img in page.images %}
|
||||
<a href="{{ img.url }}">
|
||||
<img src="{{ img.url | replace:'.png','_thumb.jpg' }}" alt="{{ img.caption }}" />
|
||||
<span>{{ img.caption }}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 2.3 MiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 465 KiB |
After Width: | Height: | Size: 1.9 MiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 20 KiB |