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

Issue 5742 add youtube preview to vision page #5743

Merged
Show file tree
Hide file tree
Changes from 2 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
20 changes: 20 additions & 0 deletions app/retail/templates/vision.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,26 @@ <h3 class="mb-4 font-title-lg">{% trans "The Future Of Work" %}</h3>
</div>
</div>
</section>
<section class="container-fluid bg-white">
<div class="pb-5">
iamonuwa marked this conversation as resolved.
Show resolved Hide resolved
<div class="container py-4">
iamonuwa marked this conversation as resolved.
Show resolved Hide resolved
<div class="row">
<div class="col-12 text-center mb-4">
<h2 class="font-bigger-4 mb-3">{% trans "Gitcoin Videos" %}</h2>
</div>
</div>
</div>
<div class="container-fluid">
iamonuwa marked this conversation as resolved.
Show resolved Hide resolved
<div class="row justify-content-center">
{% for videoLink in videoLinks %}
<div class="col-12 col-md-4">
<iframe width="600" height="315" src="{{ videoLink }}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"></iframe>
</div>
iamonuwa marked this conversation as resolved.
Show resolved Hide resolved
{% endfor %}
</div>
</div>
iamonuwa marked this conversation as resolved.
Show resolved Hide resolved
</div>
</section>

{% include 'shared/footer.html' %}
{% include 'shared/analytics.html' %}
Expand Down
6 changes: 6 additions & 0 deletions app/retail/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,11 +950,17 @@ def jobs(request):

def vision(request):
"""Render the Vision response."""
videoLinks = [
'https://www.youtube.com/embed/wo0KkSH-6eg',
'https://www.youtube.com/embed/nZTVMEh9k5U',
'https://www.youtube.com/embed/F2yeOFlRE0E'
]
context = {
'is_outside': True,
'active': 'vision',
'avatar_url': static('v2/images/vision/triangle.jpg'),
'title': 'Vision',
'videoLinks': videoLinks,
'card_title': _("Gitcoin's Vision for a Web3 World"),
'card_desc': _("Gitcoin's Vision for a web3 world is to make it easy for developers to find paid work in open source."),
}
Expand Down