Skip to content
Snippets Groups Projects
Commit b04b0710 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Add a gallery page with some basic content for now

parent 15f81a03
No related branches found
No related tags found
No related merge requests found
# Locally stored talk files should be stored in a top-level directory
# that is placed into 'STATIC' in compiler.py. You can then refer to
# the files as their filenames wtihout worrying about directory
# references. Nominally we will use /talks.
cards:
- date: March 2023
title: "Agora galaxy using the GEAR model"
author: Yves Revaz
img: GEAR_v1.png
description: "TBD"
links:
- href: "SPHERIC_2018.pdf"
name: Slides
- href: "https://arxiv.org/abs/1807.01341"
name: Paper
- date: June 2022
title: "Moon formation simulation"
author: Jacob Kegerreis
img: moon_simulation_jacob.png
description: "TBD"
links:
- href: "SPHERIC_2018.pdf"
name: Slides
- href: "https://arxiv.org/abs/1807.01341"
name: Paper
- date: March 2022
title: "Gas 'shockiness' in galaxy cluster"
author: Stuart McAlpine
thumbnail: Cluster_Stuart_thumbnail.png
img: Cluster_Stuart.png
description: "TBD"
links:
- href: "SPHERIC_2018.pdf"
name: Slides
- href: "https://arxiv.org/abs/1807.01341"
name: Paper
gallery/Cluster_Stuart.png

1.58 MiB

gallery/Cluster_Stuart_thumbnail.png

463 KiB

gallery/GEAR_v1.png

812 KiB

gallery/moon_simulation_jacob.png

1.68 MiB

...@@ -79,6 +79,25 @@ ...@@ -79,6 +79,25 @@
margin-bottom: 0; margin-bottom: 0;
} }
.gallery-card {
width: 30%;
border: 1px solid #555;
border-radius: 4px;
box-shadow: 2px 2px 3px #BBB;
margin-bottom: 1em;
display: flex;
flex-direction: column;
}
.card-img {
display: flex;
flex: 1 1 auto;
}
.caret { .caret {
width: 100%; width: 100%;
color: #298BDF; color: #298BDF;
...@@ -187,4 +206,4 @@ ...@@ -187,4 +206,4 @@
.abstract { .abstract {
width: 80%; width: 80%;
} }
} }
\ No newline at end of file
{% extends "pubs.html" %}
{% import "helpers.html" as helper %}
{% block title %}Gallery{% endblock %}
{% block stylesheets %}<link href='cards.css' rel='stylesheet' type='text/css'>{% endblock %}
{% block content %}
{{ helper.wide_header() }}
<div class="container">
{{ helper.navbar(navbar, link) }}
<!-- <div class="text"> -->
<!-- <h2>Image and Movie Gallery</h2> -->
<!-- </div> -->
<!-- <div class="content"> -->
<!-- <div class="text"> -->
<!-- {{ markdown_content }} -->
<!-- </div> -->
<!-- <div class="padder"></div> -->
<div class="cards">
{% for card in cards|sort_cards %}
<div class="gallery-card">
<div class="card-content">
<div>
<h2> {{ card.title }}</h2>
{% if card.img %}
<div class="gallery-card-img">
<a href="{{ card.img }}">
{% if card.thumbnail %}
<img src="{{ card.thumbnail }}">
{% else %}
<img src="{{ card.img }}">
{% endif %}
</a>
</div>
<div>
Author(s): <b>{{ card.author }}</b>
</div>
{% endif %}
{% if card.description %}
<div>
<p class="hideshow">Description <i class="fa fa-chevron-right" aria-hidden="true"></i></p>
<p class="abstract card">{{ card.description }}</p>
</div>
{% endif %}
</div>
</div>
</div>
{% endfor %}
{% for i in range(3 - (cards|length % 3)) %} {# Add extra padding #}
<div class="card-pad"></div>
{% endfor %}
<!-- </div> -->
<!-- </div> -->
</div>
{% endblock %}
{% block js %}<script src="sidebar.js"></script>{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment