Skip to content

Commit

Permalink
Merge pull request #163 from ProjectTIER/151_dates_on_webcast_cards
Browse files Browse the repository at this point in the history
151 dates on webcast cards
  • Loading branch information
alexgleason committed Dec 18, 2019
2 parents d3c8dcb + 1dfb3fe commit 91ca3d2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 17 deletions.
35 changes: 18 additions & 17 deletions project_tier/events/templates/events/webcast_index_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,27 @@ <h3 id="on-this-page">Agenda</h3>
<a class="webcast-page big-cta" href="{{ self.registration_link }}" target="_blank">Register Now <i class="fa fa-external-link" aria-hidden="true"></i></a>
</p>

<div class="people cards events materials">
<div class="webcast people cards events materials">
{% if events %}
{% for event in events %}
<a class="card" href="{{event.url}}">
<div class="outer webcast card">
<div class="webcast date">{{event.date|date:"F jS"}}</div>
<a class="inner webcast card" href="{{event.url}}">
{% if event.image %}
{% image event.image fill-280x280-c100 as photo %}
<img src="{{ photo.url }}" width="{{ photo.width }}" height="{{ photo.height }}" alt="{{ photo.alt }}" class="webcast img-thumbnail" />
{% else %}
<img class="webcast placeholder img-thumbnail" src="/static/img/placeholder-person.png" width="800px" height="800px" alt="placeholder image"/>
{% endif %}

{% if event.image %}
{% image event.image fill-280x280-c100 as photo %}
<img src="{{ photo.url }}" width="{{ photo.width }}" height="{{ photo.height }}" alt="{{ photo.alt }}" class="webcast img-thumbnail" />
{% else %}
<img class="webcast placeholder img-thumbnail" src="/static/img/placeholder-person.png" width="800px" height="800px" alt="placeholder image"/>
{% endif %}

<div class="card-divider">
<h2>{{ event.speaker_name }}</h2>
</div>
<div class="card-section">
<p><strong>{{event.date|date:"M jS, Y"}}</strong></p>
<p><strong>{{ event.title }}</strong></p>
</div>
</a>
<div class="card-divider">
<h2>{{ event.speaker_name }}</h2>
</div>
<div class="card-section">
<p><strong>{{ event.title }}</strong></p>
</div>
</a>
</div>
{% endfor %}
{% endif %}
</div>
Expand Down
23 changes: 23 additions & 0 deletions project_tier/static/css/_webcast.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,26 @@ img.webcast {
box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}
}

.outer.webcast.card {
overflow: visible;
border: none;
margin-bottom: 50px;
}

.outer.webcast.card:hover {
border: none;
box-shadow: none;
}

.inner.webcast.card {
width: 100%;
margin-top: 0;
margin-left: 0;
}

.webcast.date {
font-family: $header-font-family;
font-weight: bold;
font-size: 20px;
}

0 comments on commit 91ca3d2

Please sign in to comment.