55 lines
2.2 KiB
HTML
55 lines
2.2 KiB
HTML
{% extends 'base.html' %}
|
|
{% load static_with_versioning %}
|
|
{% block main_link %}
|
|
/
|
|
{% endblock %}
|
|
{% block title %}
|
|
<title>{{ object.name }}</title>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="w-100vw min-h-100vh color-white d-flex justify-content-end flex-column"
|
|
style="background-color: #000; {% if not object.video %}background-image: url({% static_with_version 'cybercode/img/img_1.png' %});{% endif %}">
|
|
<div class="page-video">
|
|
<video class="video" loop="loop" autoplay="" muted=""
|
|
{% if object.video.image %}poster="{{ object.video.image.url }}"{% endif %}>
|
|
{% if object.video.mp4_file or object.video.webm_file %}
|
|
<source src="{{ object.video.mp4_file.url }}" type="video/mp4"/>
|
|
{% endif %}
|
|
</video>
|
|
</div>
|
|
|
|
|
|
{% if sub_services %}
|
|
<div class="container">
|
|
{% for sub_service in sub_services %}
|
|
<a class="btn btn-lg" style="z-index: 3; position: relative;" href="{{ sub_service.slug }}">
|
|
{{ sub_service.name }}
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div style="z-index: 2; position: relative;" class="h-100 w-100 m-0 p-0">
|
|
<div class="container p-3 content-wrapper"
|
|
style="background-color: rgba(0,0,0,0.45); border-radius: 5px; margin-top: 80px">
|
|
<div class="row">
|
|
<details class="col-12" open>
|
|
<summary style="font-size: 1.5rem;">{{ object.name }}</summary>
|
|
<p>{{ object.description|safe }}</p>
|
|
{% if modules %}
|
|
<ul style="z-index: 3; position: relative;">
|
|
{% for module in modules %}
|
|
<li>
|
|
<a href="{{ module.slug }}" class="color-white">{{ module.name }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</details>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %} |