diff --git a/campaign/photo.html b/campaign/photo.html
index 01d3380..551ab39 100644
--- a/campaign/photo.html
+++ b/campaign/photo.html
@@ -25,7 +25,7 @@
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
- js.src = "http://connect.facebook.net/en_US/sdk.js";
+ js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
diff --git a/pub.py b/pub.py
index bab08fb..e54561c 100755
--- a/pub.py
+++ b/pub.py
@@ -15,7 +15,7 @@ session = boto3.Session(profile_name='push')
s3 = session.client('s3')
-bench_fmt = """
"""
+bench_fmt = """
"""
bench_view_ftm = """
"""
@@ -30,6 +30,17 @@ TYPE_MAP = {
'webp': 'image/webp',
}
+CENTER_BENCHES = [
+ 113,
+ 101,
+]
+
+TOP_BENCHES = [
+ 103,
+ 23,
+ 16,
+]
+
@cache
def current_keys():
print('Fetching existing keys in {}'.format(BUCKET))
@@ -114,7 +125,15 @@ def make_bench():
idx = num_imgs + 1 - j
with Image.open('img/bench/{0:03d}.png'.format(idx)) as img:
width,height = img.size
- page += bench_fmt.format(idx, width, height)
+
+ if idx in CENTER_BENCHES:
+ class_name = "centered"
+ elif idx in TOP_BENCHES:
+ class_name = "top"
+ else:
+ class_name = ""
+
+ page += bench_fmt.format(idx, width, height, class_name)
prev_pg = i//16
next_pg = i//16 + 2
diff --git a/site.css b/site.css
index 85b38f8..6d47ce9 100644
--- a/site.css
+++ b/site.css
@@ -46,6 +46,14 @@ li {
overflow: hidden;
}
+.img-grid a.centered {
+ align-items: center;
+}
+
+.img-grid a.top {
+ align-items: flex-start;
+}
+
.img-grid img {
display: block;
height: 100%;