update material theme

This commit is contained in:
Adrien Beudin 2016-05-20 08:47:02 +02:00
parent dc288b4173
commit d3c0e1e466
4 changed files with 6 additions and 5 deletions

View File

@ -80,6 +80,7 @@ class Video(object):
if options.get("resize"): if options.get("resize"):
command = "{binary} {loglevel} -i {source} {resize} -vframes 1 -y {target}".format(**ffmpeg_switches) 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"]) error(os.system(command) == 0, "%s command failed" % ffmpeg_switches["binary"])
else: else:
command = "{binary} {loglevel} -i {source} {video} {vbitrate} {other} {audio} {abitrate} {resolution} {format} -y {target}".format(**ffmpeg_switches) command = "{binary} {loglevel} -i {source} {video} {vbitrate} {other} {audio} {abitrate} {resolution} {format} -y {target}".format(**ffmpeg_switches)

View File

@ -9,7 +9,7 @@ main {
} }
.parallax-container { .parallax-container {
height: 800px; height: 720px;
min-height: 250px; min-height: 250px;
margin-bottom: 20px; margin-bottom: 20px;
background-color: rgba(0, 0, 0, .4); background-color: rgba(0, 0, 0, .4);

View File

@ -8,9 +8,9 @@
{% block content %} {% block content %}
<div class="container"> <div class="container">
<div class="row"> <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 %} {% 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 }}"> <a href="{{ gallery.link }}">
<div class="card hoverable blue-grey lighten-5"> <div class="card hoverable blue-grey lighten-5">
<div class="card-image"> <div class="card-image">

View File

@ -7,7 +7,7 @@
<div class="parallax-container z-depth-2 valign-wrapper"> <div class="parallax-container z-depth-2 valign-wrapper">
<div class="parallax"> <div class="parallax">
{% if video %} {% if video %}
<img class="lazy" src="{{ video.generate_thumbnail("2000") }}"> <img class="lazy" src="{{ video.generate_thumbnail("720") }}">
<video autoplay loop muted class="fillWidth"> <video autoplay loop muted class="fillWidth">
<source src="{{ video }}" type="video/webm" data-source="{{ video }}" data-format="vp8" data-extension="webm"> <source src="{{ video }}" type="video/webm" data-source="{{ video }}" data-format="vp8" data-extension="webm">
</video> </video>