UI Landing: Show logo and watch url if any.
This commit is contained in:
@@ -96,13 +96,40 @@ link(href="{{ url_for('static_cloud', filename='assets/css/project-main.css') }}
|
|||||||
span Edit Project
|
span Edit Project
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
- var jumbotron_title = '{{ project.name }}';
|
| {% if project.picture_header %}
|
||||||
- var jumbotron_lead = '{{ project.summary }}';
|
| {% set project_header = project.picture_header.thumbnail('h', api=api) %}
|
||||||
+jumbotron(
|
| {% endif %}
|
||||||
jumbotron_title,
|
|
||||||
jumbotron_lead,
|
.jumbotron.text-white.jumbotron-overlay-gradient-fade-to-gray(
|
||||||
"{{ project.picture_header.thumbnail('h', api=api) }}")(
|
style="background-image: url(\'{{ project_header }}\');")
|
||||||
class="jumbotron-overlay-gradient-fade-to-gray")
|
.container
|
||||||
|
.row
|
||||||
|
.col-md-8
|
||||||
|
.display-4.text-uppercase.font-weight-bold
|
||||||
|
| {% if project.extension_props.cloud.logo %}
|
||||||
|
img.img-fluid(src="{{ project.extension_props.cloud.logo.thumbnail('m', api=api) }}")
|
||||||
|
| {% else %}
|
||||||
|
| {{ project.name }}
|
||||||
|
| {% endif %}
|
||||||
|
|
||||||
|
.lead
|
||||||
|
| {% if project.summary %}
|
||||||
|
| {{ project | markdowned('summary') }}
|
||||||
|
| {% endif %}
|
||||||
|
|
||||||
|
.d-flex
|
||||||
|
| {% if project.extension_props.cloud.video_url %}
|
||||||
|
a.btn.btn-primary.px-5(
|
||||||
|
href="{{ project.extension_props.cloud.video_url }}",
|
||||||
|
target="_blank")
|
||||||
|
i.pi-play.pr-2
|
||||||
|
| WATCH
|
||||||
|
| {% endif %}
|
||||||
|
|
||||||
|
a.btn.btn-link.px-5.text-white(href="{{ url_for('projects.view', project_url=project.url) }}")
|
||||||
|
| Explore
|
||||||
|
i.pi-angle-right.pl-2
|
||||||
|
|
||||||
|
|
||||||
.container-fluid.landing
|
.container-fluid.landing
|
||||||
.row
|
.row
|
||||||
@@ -183,6 +210,4 @@ script.
|
|||||||
var url = $(this).attr('href');
|
var url = $(this).attr('href');
|
||||||
showOverlay('<img src="' + url + '"/>');
|
showOverlay('<img src="' + url + '"/>');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
|
Reference in New Issue
Block a user