Много всякого дизайна
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
{% load static %}
|
||||
|
||||
<link rel="stylesheet" href="{% static 'css/manga_catalog.css' %}">
|
||||
|
||||
<div class="catalog-container">
|
||||
<div >
|
||||
<h1>Каталог манги</h1>
|
||||
<div class="catalog-header">
|
||||
<h1 class="title-site">Дроч.кам</h1>
|
||||
<h5 class="titles-cont">Манги на сайте: {{ total_manga_count }}</h5>
|
||||
|
||||
</div>
|
||||
<div class="catalog-container">
|
||||
|
||||
|
||||
|
||||
<div class="manga-list">
|
||||
@@ -33,7 +34,7 @@
|
||||
<h3>{{ manga.original_title }}</h3>
|
||||
</div>
|
||||
|
||||
<!-- Теги возвращены наверх -->
|
||||
<!-- Теги -->
|
||||
{% if manga.tags %}
|
||||
<div class="tags">
|
||||
{% for tag in manga.tags %}
|
||||
@@ -43,11 +44,31 @@
|
||||
{% endif %}
|
||||
|
||||
<div class="manga-meta">
|
||||
<div class="meta-item">
|
||||
<span class="meta-label">Страниц:</span>
|
||||
<span class="meta-value">{{ manga.len_manga }}</span>
|
||||
<div class="meta-item">
|
||||
<span class="meta-label">Страниц:</span>
|
||||
<span class="meta-value">{{ manga.len_manga }}</span>
|
||||
</div>
|
||||
|
||||
<div class="meta-row">
|
||||
<div class="date-post">
|
||||
<span class="date-label">Дата:</span>
|
||||
<span class="date-value">{{ manga.date }}</span>
|
||||
</div>
|
||||
|
||||
{% if manga.manga_link %}
|
||||
<a href="{{ manga.manga_link }}" target="_blank" class="read-original-button">
|
||||
Читать в источнике
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
@@ -6,6 +6,38 @@ body {
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
.catalog-header {
|
||||
min-height: 50px;
|
||||
display: flex;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 5%;
|
||||
background-color: #3987cf;
|
||||
z-index: 1000;
|
||||
align-items: center;
|
||||
justify-content: space-between; /* Распределяет пространство между элементами */
|
||||
padding: 0 20px; /* Добавляем отступы по бокам */
|
||||
}
|
||||
|
||||
.title-site {
|
||||
color: #ffffff;
|
||||
position: absolute; /* Абсолютное позиционирование */
|
||||
left: 50%; /* Сдвигаем на 50% вправо */
|
||||
transform: translateX(-50%); /* Корректируем положение на половину своей ширины */
|
||||
margin: 0; /* Убираем стандартные отступы */
|
||||
}
|
||||
|
||||
.titles-cont {
|
||||
position: absolute;
|
||||
color: #ffffff;
|
||||
left: 65%;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
.catalog-container {
|
||||
max-width: 50%;
|
||||
margin: 0 auto;
|
||||
@@ -41,6 +73,7 @@ body {
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
box-shadow: 0 0 15px #39accf;
|
||||
}
|
||||
|
||||
/* Кнопка "Читать" поверх изображения */
|
||||
@@ -50,16 +83,41 @@ body {
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 12px 0;
|
||||
background: rgba(74, 137, 220, 0.9);
|
||||
background: #2478c2;
|
||||
color: white;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
transition: background 0.3s;
|
||||
}
|
||||
/* Строка с мета-информацией */
|
||||
.meta-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
/* Кнопка "Читать в источнике" */
|
||||
.read-original-button {
|
||||
padding: 6px 12px;
|
||||
background: #6497c5;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
transition: background 0.3s;
|
||||
white-space: nowrap;
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.read-original-button:hover {
|
||||
background: #5a6268;
|
||||
}
|
||||
|
||||
.read-button:hover {
|
||||
background: rgba(59, 125, 216, 0.95);
|
||||
background: #2478c2;
|
||||
}
|
||||
|
||||
/* Информация справа */
|
||||
@@ -71,6 +129,9 @@ body {
|
||||
}
|
||||
|
||||
.manga-title h3 {
|
||||
width: 100%;
|
||||
padding-bottom: 3px;
|
||||
border-bottom: 1px solid #3987cf;
|
||||
margin: 0 0 8px 0;
|
||||
color: #333;
|
||||
font-size: 20px;
|
||||
@@ -101,12 +162,13 @@ body {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.meta-label {
|
||||
.manga-meta{
|
||||
font-weight: bold;
|
||||
color: #555;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
|
||||
/* Адаптивность */
|
||||
@media (max-width: 768px) {
|
||||
.catalog-container {
|
||||
|
||||
@@ -16,7 +16,7 @@ body {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
align-items: center;
|
||||
background-color: green;
|
||||
background-color: #ffffff;
|
||||
justify-content: center;
|
||||
|
||||
|
||||
@@ -26,9 +26,8 @@ body {
|
||||
min-height: 100vh;
|
||||
width: 50%;
|
||||
place-items: center;
|
||||
background-color: white;
|
||||
background-color: #cee6fd;
|
||||
flex-direction: column;
|
||||
border: dashed white;
|
||||
|
||||
}
|
||||
|
||||
@@ -37,7 +36,7 @@ body {
|
||||
padding: 15px 0;
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
border-bottom: dashed green;
|
||||
border-bottom: dashed #ffffff;
|
||||
|
||||
}
|
||||
|
||||
@@ -134,7 +133,7 @@ body {
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
width: 100%;
|
||||
border-top: dashed green;
|
||||
border-top: dashed #ffffff;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user