diff --git a/app/static/css/partials/_film.scss b/app/static/css/partials/_film.scss index 128abb9..5c6b1c2 100755 --- a/app/static/css/partials/_film.scss +++ b/app/static/css/partials/_film.scss @@ -1,5 +1,3 @@ - - .films { margin: var(--spacing-2); box-sizing: border-box; @@ -33,7 +31,6 @@ } } - main > .film { margin: auto; @@ -62,14 +59,12 @@ main > .film { } } } - //video { - //width: 100%; - //} + .play { text-align: center; - margin: var(--spacing); margin-top: var(--spacing-2); margin-bottom: var(--spacing-2); + max-width: 250px; .texts { padding-top: var(--spacing-2); @@ -88,32 +83,43 @@ main > .film { } } -body { - /*background: linear-gradient(to bottom, #002bdb 0%,#8fc800 99%);*/ -} - .info-meta { display: inline-block; - position: absolute; margin: 0 auto; + position: absolute; max-width: 600px; top: 50%; left: 50%; transform: translate(-50%, -50%); + animation: fadeIn 1s linear 0.4s forwards; + opacity: 0; } -.info-meta, .bio-block { - background: rgba(0, 0, 0, 0.75); +.info-meta, .bio-block, .play, .summary-block { + background: rgba(0, 0, 0, 0.55); border-radius: 2px; - //margin: var(--spacing) var(--spacing-2); - max-width: 1080px; - margin: 0 auto; + box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6); + margin-left: auto; + margin-right: auto; padding: 20px; + font-size: 18px; + + a { + color: var(--color-link); + text-decoration: none; + font-weight: 700; + } +} + +.summary-block { + max-width: 1080px; + margin-top: 350px; } .bio-block { - font-size: 18px; - margin-top: 350px; + max-width: 1080px; + margin-top: 30px; + margin-bottom: 30px; } .video-block { @@ -128,8 +134,8 @@ body { right: 0; z-index: -9999; height: 100vh; - width: 100vw; // just added - object-fit: fill; // just added + width: 100vw; + object-fit: fill; //height: 100vh; //width: auto; margin: 0 auto; @@ -138,6 +144,26 @@ body { .icon-play { color: #fff; - font-size: 40px; + border: 3px solid var(--color-link); + border-radius: 50%; + font-size: 32px; text-decoration: none; + width: 50px; + height: 50px; + display: flex; + align-items: center; + justify-content: center; + margin: auto; +} + +.film-play-block { + text-align: center; + font-size: 18px; +} + +.film-play-spacer { + padding: var(--spacing); + margin-top: 4px; + font-size: 12px; + font-weight: 700; } \ No newline at end of file diff --git a/app/static/css/partials/_layout.scss b/app/static/css/partials/_layout.scss index 78801e2..e673b28 100755 --- a/app/static/css/partials/_layout.scss +++ b/app/static/css/partials/_layout.scss @@ -4,6 +4,8 @@ --bg-color-3: #ffff00; --bg-color-4: #ff3399; + --color-link: #ee0; + --spacing: 8px; --spacing-2: calc(var(--spacing) * 2); } @@ -48,3 +50,14 @@ nav { display: none; } } + +// Animations: Fade In +@keyframes fadeIn { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} \ No newline at end of file diff --git a/app/templates/film.html b/app/templates/film.html index dcf99a5..41f3f85 100755 --- a/app/templates/film.html +++ b/app/templates/film.html @@ -35,10 +35,12 @@ body {
-
+

{{ film.data.summary|safe }}


{{ film.data.summary_zh|safe }}

+
+
{{film.data.director.0}}: {{ film.data.bio|safe }} @@ -47,23 +49,24 @@ body { {{film.data.director.1}}: {{ film.data.bio_zh|safe }}
-
-
- {% for text in film.related_texts %} - - {% endfor %} -
-
- - Open on pad.ma -
-
+
+
+ {% for text in film.related_texts %} + + {% endfor %} +
+
+
+
OR
+
watch on pad.ma
+
+
{% endblock %}