Skip to content

Commit

Permalink
Add photo gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
benhylau committed Dec 8, 2019
1 parent 07fa47c commit 964ec1c
Show file tree
Hide file tree
Showing 39 changed files with 82 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docs/4.3-graphic-assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ navigation: 43

[Download PDF](https://github.com/dweb-camp-2019/meshnet/blob/master/graphics/network-physical-map.pdf?raw=true)

![thumbnail](thumbnails/network-physical-map.png)
![thumbnail](thumbs/network-physical-map.png)

### Network Info Poster

[Download PDF](https://github.com/dweb-camp-2019/meshnet/blob/master/graphics/network-info-poster.pdf?raw=true)

![thumbnail](thumbnails/network-info-poster.png)
![thumbnail](thumbs/network-info-poster.png)

### Network Steward Postcard

[Download PDF](https://github.com/dweb-camp-2019/meshnet/blob/master/graphics/network-steward-postcard.pdf?raw=true)

![thumbnail](thumbnails/network-steward-postcard-front.png)
![thumbnail](thumbnails/network-steward-postcard-back.png)
![thumbnail](thumbs/network-steward-postcard-front.png)
![thumbnail](thumbs/network-steward-postcard-back.png)

### Network Steward Button

[Download PDF](https://github.com/dweb-camp-2019/meshnet/blob/master/graphics/network-steward-button.pdf?raw=true)

![thumbnail](thumbnails/network-steward-button.png)
![thumbnail](thumbs/network-steward-button.png)
5 changes: 5 additions & 0 deletions docs/4.4-photo-gallery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
permalink: /gallery/2019/
title: 4.4 Photo Gallery
navigation: 44
---
4 changes: 3 additions & 1 deletion docs/Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
source "https://rubygems.org"
gemspec
gemspec

gem 'jekyll-gallery-generator'
13 changes: 13 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@ exclude:
sass:
sass_dir: _sass
style: compressed

plugins:
- jekyll-gallery-generator

# Configurations for ggreer/jekyll-gallery-generator
gallery:
dir: gallery # Path to the gallery
symlink: false # false: copy images into _site. true: create symbolic links (saves disk space)
title: "4.4 Photo Gallery" # Title for gallery index page
title_prefix: "4.4 Photo Gallery: " # Title prefix for gallery pages. Gallery title = title_prefix + gallery_name
thumbnail_size:
x: 480 # max width of thumbnails (in pixels)
y: 480 # max height of thumbnails (in pixels)
25 changes: 25 additions & 0 deletions docs/_layouts/gallery_index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
layout: page
---
<style TYPE="text/css">
.gallery-wrapper {
width: 35em;
text-align: center;
padding: 1em 0 4em 0;
}
.gallery-best-image{
max-height: 20em;
max-width: 20em;
}
</style>
<h2 id="44-photo-gallery">4.4 Photo Gallery</h2>
{% for gallery in page.galleries %}
{% assign album_image = gallery['images'] | sort: 'name' | first %}
<div class="gallery-wrapper">
<a href="{{ gallery['gallery'] }}">
<img class="gallery-best-image" src="{{ gallery['gallery'] }}/thumbs/{{ album_image.name }}">
</a>
<h3><a href="{{ gallery['gallery'] }}">{{ gallery["name"] }}</a></h3>
{{ gallery["images"] | size }} image{% if gallery["images"].size != 1 %}s{% endif %}
</div>
{% endfor %}
31 changes: 31 additions & 0 deletions docs/_layouts/gallery_page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
layout: page
---
<style TYPE="text/css">
.gallery-image-wrapper {
height: 360px;
width: 400px;
display: inline-block;
margin: 1em;
position: relative;
}
.gallery-image {
margin: auto;
position: absolute;
top: 0px;
bottom: 0px;
max-height: 100%;
max-width: 100%;
}
</style>
<h2 id="44-photo-gallery">4.4 Photo Gallery</h2>
<hr />
{% assign sorted_images = page.images | sort: 'name' %}
{% for image in sorted_images %}
<div class="gallery-image-wrapper">
<a name="{{ image.name }}"></a>
<a href="{{ image.name }}"{% if site.gallery.lightbox %} rel="lightbox[{{ page.gallery }}]"{% endif %}>
<img class="gallery-image" src="thumbs/{{ image.name }}" />
</a>
</div>
{% endfor %}
Binary file added docs/gallery/2019/201.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/202.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/203.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/204.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/205.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/206.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/207.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/208.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/209.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/210.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/211.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/212.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/213.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/214.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/215.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/216.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/217.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/218.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/219.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/220.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/221.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/222.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/401.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/402.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/501.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/2019/502.jpg
Binary file added docs/gallery/2019/701.jpg
Binary file added docs/gallery/2019/702.jpg
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 964ec1c

Please sign in to comment.