Выравнивание дизайна base_manga.html
Создание Manga_catalog.html js
This commit is contained in:
10
templates/Manga_catalog.html
Normal file
10
templates/Manga_catalog.html
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Title</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -10,10 +10,10 @@
|
|||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
/* Масштабы */
|
/* Масштабы */
|
||||||
--page-scale: 0.7; /* Для страниц манги */
|
--page-scale: 0.8; /* Для страниц манги */
|
||||||
/* Общие настройки */
|
/* Общие настройки */
|
||||||
--preview-scale: 0.9; /* Масштаб превью (0.5-1.5) */
|
--preview-scale: 0.9; /* Масштаб превью (0.5-1.5) */
|
||||||
--grid-columns: 7; /* Число столбцов */
|
--grid-columns: 5; /* Число столбцов */
|
||||||
--grid-gap: 10px; /* Фиксированный отступ (в пикселях) */
|
--grid-gap: 10px; /* Фиксированный отступ (в пикселях) */
|
||||||
|
|
||||||
/* Базовые размеры превью (до масштабирования) */
|
/* Базовые размеры превью (до масштабирования) */
|
||||||
@@ -24,6 +24,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="main-container">
|
<div class="main-container">
|
||||||
|
<div class="frame_content">
|
||||||
<!-- Хедер -->
|
<!-- Хедер -->
|
||||||
<header class="navigation-box">
|
<header class="navigation-box">
|
||||||
<ul>
|
<ul>
|
||||||
@@ -53,6 +54,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function changePage(select) {
|
function changePage(select) {
|
||||||
|
|||||||
@@ -9,22 +9,40 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main-container {
|
.main-container {
|
||||||
max-width: 1200px;
|
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 20px;
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
min-height: 100vh;
|
||||||
|
align-items: center;
|
||||||
|
background-color: green;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.frame_content{
|
||||||
|
min-height: 100vh;
|
||||||
|
width: 50%;
|
||||||
|
place-items: center;
|
||||||
|
background-color: white;
|
||||||
|
flex-direction: column;
|
||||||
|
border: dashed white;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Хедер */
|
/* Хедер */
|
||||||
.navigation-box {
|
.navigation-box {
|
||||||
padding: 15px 0;
|
padding: 15px 0;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
border-bottom: dashed green;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb {
|
.breadcrumb {
|
||||||
|
justify-content: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@@ -51,14 +69,13 @@ body {
|
|||||||
/* Контейнер сетки */
|
/* Контейнер сетки */
|
||||||
.manga-grid-container {
|
.manga-grid-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10px 0;
|
|
||||||
overflow-x: auto; /* На случай узких экранов */
|
overflow-x: auto; /* На случай узких экранов */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Сетка превью */
|
/* Сетка превью */
|
||||||
.grid-container {
|
.grid-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 20px;
|
margin: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.manga-grid {
|
.manga-grid {
|
||||||
@@ -66,7 +83,6 @@ body {
|
|||||||
grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
|
grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
|
||||||
gap: var(--grid-gap); /* Фиксированный отступ */
|
gap: var(--grid-gap); /* Фиксированный отступ */
|
||||||
justify-items: center;
|
justify-items: center;
|
||||||
margin: 0 auto;
|
|
||||||
max-width: calc(
|
max-width: calc(
|
||||||
(var(--preview-base-width) * var(--preview-scale) * var(--grid-columns)) +
|
(var(--preview-base-width) * var(--preview-scale) * var(--grid-columns)) +
|
||||||
(var(--grid-gap) * (var(--grid-columns) - 1))
|
(var(--grid-gap) * (var(--grid-columns) - 1))
|
||||||
@@ -94,12 +110,12 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Страница манги */
|
/* Страница манги */
|
||||||
.image-scaling-container {
|
.image-scaling-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
box-shadow: 0 0 20px rgba(0,0,0,0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.scalable-image {
|
.scalable-image {
|
||||||
@@ -107,18 +123,19 @@ body {
|
|||||||
height: auto;
|
height: auto;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
|
box-shadow: 0 0 20px rgba(0,0,0,0.4);
|
||||||
}
|
}
|
||||||
/* Футер */
|
/* Футер */
|
||||||
.footer-navigation {
|
.footer-navigation {
|
||||||
margin-top: auto;
|
margin-top: 0;
|
||||||
padding: 20px 0;
|
padding: 15px 0;
|
||||||
border-top: 1px solid #eee;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
border-top: dashed green;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-box select {
|
.dropdown-box select {
|
||||||
|
|||||||
0
templates/static/js/Manga_catalog.js
Normal file
0
templates/static/js/Manga_catalog.js
Normal file
Reference in New Issue
Block a user