2017-07-26 16:49:40 +02:00
| {% extends 'layout.html' %}
2018-09-20 15:00:10 +02:00
| {% from '_macros/_navigation.html' import navigation_learn, navigation_homepage %}
2018-09-19 11:20:17 +02:00
2018-09-07 17:19:36 +02:00
include ../../../pillar/src/templates/mixins/components
2017-07-26 16:49:40 +02:00
2017-07-26 16:51:16 +02:00
| {# Default case is Open Projects #}
| {% set page_title = 'Open Projects' %}
| {% set page_description = 'Full production data and tutorials from all open movies, for you to use freely' %}
| {% set page_header_image = url_for('static', filename='assets/img/backgrounds/background_agent327_01.jpg') %}
| {% set page_header_text = 'The iconic Blender Institute Open Movies. Featuring all the production files, assets, artwork, and never-seen-before content.' %}
| {% if title == 'courses' %}
| {% set page_title = 'Courses' %}
| {% set page_description = 'Production quality training by 3D professionals' %}
2018-08-27 16:58:01 +02:00
| {% set page_header_image = url_for('static', filename='assets/img/backgrounds/background_agent327_04.jpg') %}
2017-07-26 16:51:16 +02:00
| {% set page_header_text = 'Character modeling, 3D printing, VFX, rigging and more.' %}
| {% elif title == 'workshops' %}
| {% set page_title = 'Workshops' %}
| {% set page_description = 'Production quality training by 3D professionals' %}
2018-08-27 16:58:01 +02:00
| {% set page_header_image = url_for('static', filename='assets/img/backgrounds/background_agent327_04.jpg') %}
2017-07-26 16:51:16 +02:00
| {% set page_header_text = 'Enter the artist workshop and learn by example.' %}
| {% endif %}
2017-07-26 16:49:40 +02:00
| {% block og %}
meta(property="og:type", content="website")
2018-09-05 13:58:13 +02:00
meta(property="og:url", content="{{ request.url }}")
2017-07-26 16:49:40 +02:00
2017-07-26 16:51:16 +02:00
meta(property="og:title", content="{{ page_title }} on Blender Cloud")
meta(name="twitter:title", content="{{ page_title }} on Blender Cloud")
2017-07-26 16:49:40 +02:00
2017-07-26 16:51:16 +02:00
meta(property="og:description", content="{{ page_description }}")
meta(name="twitter:description", content="{{ page_description }}")
2017-07-26 16:49:40 +02:00
2017-07-26 16:51:16 +02:00
meta(property="og:image", content="{{ page_header_image }}")
meta(name="twitter:image", content="{{ page_header_image }}")
2017-07-26 16:49:40 +02:00
| {% endblock %}
| {% block page_title %}
2017-07-26 16:51:16 +02:00
| {{ page_title }}
2017-07-26 16:49:40 +02:00
| {% endblock %}
2018-09-06 13:03:22 +02:00
| {% block navigation_tabs %}
2018-09-19 19:34:49 +02:00
| {% if title == 'open-projects' %}
| {{ navigation_homepage(title) }}
| {% else %}
2018-09-20 15:00:10 +02:00
| {{ navigation_learn(title) }}
2018-09-19 19:34:49 +02:00
| {% endif %}
2018-09-06 13:03:22 +02:00
| {% endblock navigation_tabs %}
2017-07-26 16:49:40 +02:00
| {% block body %}
2018-09-19 15:50:03 +02:00
| {% if title in ['film', 'open-projects'] %}
2018-09-19 11:20:17 +02:00
| {# Specify the URL of projects in production. These are hidden from the listing below. #}
| {% set projects_in_production = ['spring'] %}
- var jumbotron_title = 'SPRING';
2018-09-19 19:34:49 +02:00
- var jumbotron_lead = 'A poetic short film about a mountain spirit and her wise little dog.';
2018-09-19 11:20:17 +02:00
+jumbotron(
jumbotron_title,
jumbotron_lead,
2018-09-19 12:38:26 +02:00
"{{ url_for('static', filename='assets/img/backgrounds/background_spring_01.jpg')}}")(
2018-09-21 16:56:01 +02:00
class="jumbotron-overlay-gradient")
2018-09-19 11:20:17 +02:00
2018-09-19 19:34:49 +02:00
.d-block.mt-4
2018-09-21 16:52:21 +02:00
a.btn.btn-primary.px-5.font-weight-bold(
2018-09-19 19:34:49 +02:00
href="{{ url_for('projects.view', project_url='spring') }}")
2018-09-21 16:52:21 +02:00
| BROWSE
2018-09-19 19:34:49 +02:00
a.btn.btn-link-light.px-4(
2018-09-19 15:50:03 +02:00
style="color: white",
href="{{ url_for('main.project_blog', project_url='spring') }}")
2018-09-21 16:52:21 +02:00
| Production Blog
2018-09-19 15:50:03 +02:00
i.pi-angle-right.px-1
| {% endif %}
2018-09-19 12:38:26 +02:00
2018-08-31 13:57:51 +02:00
.container.pb-5
2018-09-16 03:43:21 +02:00
.row
.col-12
.pt-4
h2.text-uppercase.font-weight-bold
| {{ page_title }}
.lead
| {{ page_header_text }}
hr.pb-2
+card-deck(3)
| {% for project in projects %}
2018-09-19 11:20:17 +02:00
| {% if project.url not in projects_in_production %}
2018-09-16 03:43:21 +02:00
| {% if (project.status == 'published') or (project.status == 'pending' and current_user.is_authenticated) and project._id != config.MAIN_PROJECT_ID %}
+card(
class='js-project-go card-fade cursor-pointer mb-4 mx-0',
data-url="{{ url_for('projects.view', project_url=project.url) }}",
tabindex='{{ loop.index }}')
| {% if project.picture_header %}
a(href="{{ url_for('projects.view', project_url=project.url) }}")
img.card-img-top(
src="{{ project.picture_header.thumbnail('l', api=api) }}", alt="{{ project.name }}")
2017-07-26 16:49:40 +02:00
| {% endif %}
2018-09-16 03:43:21 +02:00
.card-body
h5.card-title
| {{ project.name }}
| {% if project.status == 'pending' and current_user.is_authenticated and current_user.has_role('admin') %}
small (pending)
| {% endif %}
| {% if project.summary %}
p.card-text
| {{project.summary|safe}}
| {% endif %}
2018-08-27 16:58:01 +02:00
| {% endif %}
2018-09-19 11:20:17 +02:00
| {% endif %}
2018-09-16 03:43:21 +02:00
| {% endfor %}
2017-07-26 16:49:40 +02:00
| {% endblock %}
| {% block footer_scripts %}
script.
2018-08-27 16:58:01 +02:00
$('.js-project-go').on('click', function(e){
2017-07-26 16:49:40 +02:00
e.preventDefault();
window.location.href = $(this).data('url');
});
| {% endblock %}