104 lines
2.9 KiB
HTML
104 lines
2.9 KiB
HTML
{% extends "base.html" %}
|
|
{% block head %}
|
|
<meta name="title" content="{{ film.data.title }}"/>
|
|
<meta name="description" content="{% for director in film.data.director %}{{ director|safe }}{% endfor %}"/>
|
|
|
|
<meta property="og:title" content="{{ film.data.title }} {{ film.data.tile.zh }}"/>
|
|
<meta property="og:type" content="movie"/>
|
|
<meta property="og:url" content="https://phantas.ma{{ film.get_absolute_url }}"/>
|
|
<meta property="og:site_name" content="Phantas.ma"/>
|
|
<meta property="og:description" content="{% for director in film.data.director %}{{ director|safe }}{% endfor %}"/>
|
|
|
|
<meta property="twitter:card" content="summary_large_image"/>
|
|
<meta property="twitter:title" content="{{ film.data.title }} {{ film.data.tile.zh }}"/>
|
|
<meta property="twitter:description" content="{% for director in film.data.director %}{{ director|safe }}{% endfor %}"/>
|
|
|
|
{% endblock head %}
|
|
{% block body_class%}animated{% endblock %}
|
|
{% block main %}
|
|
{% comment %}
|
|
<style>
|
|
:root {
|
|
--bg-color-1: {{ film.color_1 }};
|
|
--bg-color-2: {{ film.color_2 }};
|
|
--bg-color-3: {{ film.color_2 }};
|
|
--bg-color-4: {{ film.color_4 }};
|
|
}
|
|
|
|
body {
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endcomment %}
|
|
<div class="film">
|
|
<div class="info">
|
|
<div class="info-meta">
|
|
<h1>
|
|
<span class="font-bold">{{ film.data.title | safe }}</span>
|
|
</h1>
|
|
<div class="details">
|
|
{{ film.data.description|default:'' }}
|
|
</div>
|
|
|
|
</div>
|
|
<div class="video-block">
|
|
<img src="{{ stream_prefix }}{{ film.items.0.id }}/loop.jpg" class="video-fallback-block">
|
|
<video
|
|
id="timeline-video"
|
|
src="{{ stream_prefix }}{{ film.items.0.id }}/loop.mp4"
|
|
poster="{{ stream_prefix }}{{ film.items.0.id }}/loop.jpg"
|
|
controlsList="nodownload"
|
|
autoplay
|
|
loop
|
|
muted
|
|
playsinline>
|
|
</video>
|
|
</div>
|
|
<div class="summary-block">
|
|
<p>{{ film.data.summary|safe }}</p>
|
|
<br>
|
|
<p>{{ film.data.summary_zh|safe }}</p>
|
|
</div>
|
|
<div class="videos">
|
|
{% for item in film.data.items %}
|
|
<div class="video">
|
|
<a href="fixme">
|
|
<figure>
|
|
<img src="https://archive.njp.ma/{{ item.id }}/480p.jpg">
|
|
<figcaption>
|
|
{{ item.title | safe }}
|
|
</figcaption>
|
|
</figure>
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="play">
|
|
<div class="film-play-padma"><a href="{{ film.pandora_url }}" target="_blank">Open in Archive</a></div>
|
|
</div>
|
|
{% if film.related_texts.exists %}
|
|
<div class="texts">
|
|
<h2>Related Assemblies</h2>
|
|
{% for text in film.related_texts %}
|
|
<div class="text">
|
|
<a href="{{ text.get_absolute_url }}">
|
|
{{ text.title | safe }}<br>
|
|
{{ text.byline | striptags }}
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block end %}
|
|
<script>
|
|
var film = {{ film.json | safe }};
|
|
film.prefix = "{{ stream_prefix }}";
|
|
</script>
|
|
<script src="{% static 'js/film.js' %}"></script>
|
|
{% endblock %}
|