update material theme
This commit is contained in:
parent
dc288b4173
commit
d3c0e1e466
@ -80,6 +80,7 @@ class Video(object):
|
||||
|
||||
if options.get("resize"):
|
||||
command = "{binary} {loglevel} -i {source} {resize} -vframes 1 -y {target}".format(**ffmpeg_switches)
|
||||
print(command)
|
||||
error(os.system(command) == 0, "%s command failed" % ffmpeg_switches["binary"])
|
||||
else:
|
||||
command = "{binary} {loglevel} -i {source} {video} {vbitrate} {other} {audio} {abitrate} {resolution} {format} -y {target}".format(**ffmpeg_switches)
|
||||
|
@ -9,7 +9,7 @@ main {
|
||||
}
|
||||
|
||||
.parallax-container {
|
||||
height: 800px;
|
||||
height: 720px;
|
||||
min-height: 250px;
|
||||
margin-bottom: 20px;
|
||||
background-color: rgba(0, 0, 0, .4);
|
||||
|
@ -8,9 +8,9 @@
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{% for galleries_line in galleries|reverse|batch(2)|reverse %}
|
||||
{% for galleries_line in galleries|reverse|batch(1)|reverse %}
|
||||
{% for gallery in galleries_line|reverse %}
|
||||
<div class="col s12 m12 l{{ 12 // galleries_line|length }}">
|
||||
<div class="col s12 m12 l8 push-l2">
|
||||
<a href="{{ gallery.link }}">
|
||||
<div class="card hoverable blue-grey lighten-5">
|
||||
<div class="card-image">
|
||||
@ -66,7 +66,7 @@
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
<div class="parallax-container z-depth-2 valign-wrapper">
|
||||
<div class="parallax">
|
||||
{% if video %}
|
||||
<img class="lazy" src="{{ video.generate_thumbnail("2000") }}">
|
||||
<img class="lazy" src="{{ video.generate_thumbnail("720") }}">
|
||||
<video autoplay loop muted class="fillWidth">
|
||||
<source src="{{ video }}" type="video/webm" data-source="{{ video }}" data-format="vp8" data-extension="webm">
|
||||
</video>
|
||||
|
Loading…
x
Reference in New Issue
Block a user