ofite/app/templates/project.html
2024-11-29 15:24:20 +07:00

46 lines
2.1 KiB
HTML

{% extends 'base.html' %}
{% load static_with_versioning %}
{% block title %}
<title>{{ project.name }}</title>
{% endblock %}
{% block content %}
<div class="w-100vw min-h-100vh color-white"
style="background-color: #000; background-image: url({% static_with_version 'cybercode/img/img_1.png' %}); background-repeat: repeat">
<div style="backdrop-filter:brightness(80%);" class="h-100 w-100 m-0 p-0">
<div class="container">
<div class="row">
<article class="col-12 pt-base">
<div class="row p-2 rounded mb-4" style="background-color: rgba(0,0,0,0.5);">
<div class="col-md-6 col-sm-12">
<figure>
<img src="{{ project.image.url }}" alt="{{ project.image.name }}" class="w-100">
</figure>
</div>
<div class="col-md-6 col-sm-12 d-flex flex-column justify-content-end">
{% if project.tag_tree %}
<figure class="w-100">
<img src="{{ project.tag_tree.url }}" alt="{{ project.tag_tree.name }}"
class="w-100">
</figure>
{% endif %}
<time datetime="{{ project.created_at|date:"Y-M-D" }}"
class="mb-4">{{ project.created_at|date }}</time>
<h2 class="mb-4">{{ project.name }}</h2>
</div>
</div>
<div class="d-flex justify-content-center">
<div class="detail-text w-80">
<p style="font-size: 1.6rem">{{ project.description|safe }}</p>
</div>
</div>
</article>
</div>
</div>
</div>
</div>
{% endblock %}