Skip to content

Commit

Permalink
Merge pull request #54 from PyConColombia/develop
Browse files Browse the repository at this point in the history
After movie
  • Loading branch information
arendondiosa committed Jun 20, 2021
2 parents 1463750 + 8486c20 commit 932df14
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/static/css/styles.css

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions assets/static/styl/main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,28 @@ article
-webkit-animation-name shake
animation-name shake

// Video Intro

.modal-dialog
max-width 800px
margin 30px auto

.modal-body
position relative
padding 0px

.close-modal
background none
border none
position absolute
right -30px
top 0
z-index 999
font-size 2rem
font-weight normal
color #fff
opacity 1

.sponsor-web
padding 10px 0

Expand Down
6 changes: 4 additions & 2 deletions content/contents+en.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ _template: index.html
---
accepted_speakers_link: https://forms.gle/NeoGPiRcVFAJUYqh7
---
sections: timeline, news, newsletter, keynotes, tickets
sections: timeline, news, newsletter, keynotes, tickets, after-movie
---
tickets_link: https://www.eventbrite.com/e/pycon-colombia-2021-tickets-150344629835
tickets_link: https://www.eventbrite.com/e/pycon-colombia-2021-tickets-150344629835
---
intro_video: _zXKOXHqCT8
4 changes: 3 additions & 1 deletion content/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ event
---
_template: index.html
---
sections: timeline, news, newsletter, keynotes, tickets
sections: timeline, news, newsletter, keynotes, tickets, after-movie
---
accepted_speakers_link: https://forms.gle/NeoGPiRcVFAJUYqh7
---
tickets_link: https://www.eventbrite.com/e/pycon-colombia-2021-tickets-150344629835
---
intro_video: _zXKOXHqCT8
9 changes: 9 additions & 0 deletions content/equipo/carlos-david-salgado/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Carlos David
---
category: Volunteer
---
last_name: Salgado
---
publish: yes
---
image: profile.jpeg
Binary file added content/equipo/carlos-david-salgado/profile.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@
{%- set t_title_keynotes = transbag('translate', this.alt, 'title_keynotes') -%}

{%- block body -%}
{% if 'after-movie' in this.sections %}
<!-- Modal -->
<div class="modal fade" id="intro-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="close-modal" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/{{ this.intro_video }}" id="video" allowscriptaccess="always"></iframe>
</div>
</div>
</div>
</div>
</div>
{% endif %}

{% if 'news' in this.sections %}
{% include './partials/_news.html' %}
{% endif %}
Expand Down Expand Up @@ -207,4 +226,14 @@ <h2><span>{{t_sponsor_title}}</span></h2>
{% include './partials/_newsletter.html' %}
{% endif %}

{% if 'after-movie' in this.sections %}
<script type="text/javascript">
$(window).on('load', function () {
$('#intro-modal').modal('show');
$("#intro-modal").on('hidden.bs.modal', function () {
$("#intro-modal iframe").attr("src", null);
});
});
</script>
{% endif %}
{%- endblock -%}
2 changes: 1 addition & 1 deletion templates/team.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2><span>{{ this.title }}</span></h2>
</div>
<div class="col-md-10 col-sm-12">
<div class="content">
{% for name, categories in [['Organizers', ['Organizer', 'Co-Organizer']], ['Collaborators', ['Collaborator']]] %}
{% for name, categories in [['Organizers', ['Organizer', 'Co-Organizer']], ['Collaborators', ['Collaborator']], ['Volunteers', ['Volunteer']]] %}
<div class="row">
<div class="col-sm-12">
{%- set title = transbag('translate', this.alt, name) -%}
Expand Down

0 comments on commit 932df14

Please sign in to comment.