Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add placeholder graphic for elePHPants that do not have photos #82

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/_others/2015-09-11-gray-hack.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ been produced followed by 500 which will not be available for sale.
The pHackyderm has several features that distinguish it from an elephpant including
an articulated trunk, robotic eye, and boots.

The first prototype is named Steve, and the second Steven. All have the HHVM
plate on the obverse side. The initial prototype has a blank reverse, but the
later protypes and production pHackyderms will have the Hack logo and text on
the reverse side.
The first prototype is named Steve, the second Steph, and the third and final
Steven. All have the HHVM plate on the obverse side. The initial prototype has a
blank reverse, but the later protypes and production pHackyderms will have the
Hack logo and text on the reverse side.
6 changes: 4 additions & 2 deletions source/_partials/_animal.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<div class="elephpant" id="e-{{ elephpant.categories|join('.') }}-{{ elephpant.tags|join('.') }}-{{ elephpant.date }}">

{% if elephpant.photos %}
<div class="row">
<div class="photos">
{% for photo in elephpant.photos %}
Expand All @@ -15,10 +14,13 @@
<div class="caption">by {{ photo.credit }}</div>
{% endif %}
</div>
{% else %}
<div class="photo">
<img src="images/placeholder.png">
</div>
{% endfor %}
</div>
</div>
{% endif %}

{% if elephpant.commonname != "" %}
<div class="row">
Expand Down
4 changes: 4 additions & 0 deletions source/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ p { margin: 0 0 1em; }
float: left;
}

.elephpant .photo.placeholder {
filter: grayscale(1) blur(5px) opacity(0.5);
}

.elephpant .photo img,
.elephpant .photo .caption {
display: block;
Expand Down
Binary file added source/images/placeholder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.