This commit is contained in:
SG
2025-06-10 23:11:10 +03:00
parent 7c7dedcfa5
commit 2e93be7184
7 changed files with 26 additions and 14 deletions

View File

@@ -2,8 +2,8 @@
{% extends "default.html" %}
{% block head_includes %}
{% if content_item.custom_css %}
<link href="{{ content_item.custom_css }}">
{% if content_item.css_file %}
<link rel="stylesheet" href="/{{ content_item.css_file }}">
{% endif %}
{% endblock %}

View File

@@ -12,7 +12,7 @@
position: relative;
height: 250px;
background: rgb(70, 70, 124);
background-image: url("{{ header_image }}");
background-image: url("/public/static/header.jpg");
background-size: cover;
background-position: center;
display: flex;
@@ -63,10 +63,10 @@
font-size: 1.1rem;
line-height: 1.6;
}
</style>
{% block head_includes %}
{% endblock %}
</style>
</head>
</head>
<body>
<div class="top_header">
<div >

View File

@@ -9,17 +9,23 @@
{% block content %}
<!-- <div class="row row-cols-1 row-cols-md-3 row-cols-xxl-5 g-4 px-1 py-2"> -->
<div class="container-fluid">
<div class="row justify-content-center">
<div class="container-fluid content-row">
<div class="row">
{% for content_item in content_items %}
<div class="d-flex justify-content-center mb-4">
<div class="card h-100 rounded mx-1 my-3" style="width: 100%; max-width: 400px;">
<div class="card-header bg-dark">
<div class="card-header">
{% if content_item.image_file %}
<img src="content/{{ content_item.image_file }}" alt="{{ content_item.title }}" class="card-img-top img-fluid mx-auto d-block object-fit-scale rounded" style="max-height: 200px; width: auto;">
{% else %}
<img src="static/images/1x1.png" alt="{{ content_item.title }}" class="card-img-top img-fluid mx-auto d-block object-fit-scale rounded" style="height: 200px; width: auto;">
{% endif %}
</div>
<div class="card-body d-flex flex-column">
<h5 class="card-title"><a class="text-decoration-none text-body" href="content/{{ content_item.slug}}.html ">{{ content_item.title }}</a></h5>
<p class="card-text mb-3">{{ content_item.preview | safe}}</p>
</div>
</div>
</div>
{% endfor %}
</div>