diff --git a/main/__pycache__/models.cpython-311.pyc b/main/__pycache__/models.cpython-311.pyc index a197284..6789075 100644 Binary files a/main/__pycache__/models.cpython-311.pyc and b/main/__pycache__/models.cpython-311.pyc differ diff --git a/main/__pycache__/urls.cpython-311.pyc b/main/__pycache__/urls.cpython-311.pyc index 7c0a130..087d949 100644 Binary files a/main/__pycache__/urls.cpython-311.pyc and b/main/__pycache__/urls.cpython-311.pyc differ diff --git a/main/__pycache__/views.cpython-311.pyc b/main/__pycache__/views.cpython-311.pyc index b1ed8ed..8927139 100644 Binary files a/main/__pycache__/views.cpython-311.pyc and b/main/__pycache__/views.cpython-311.pyc differ diff --git a/main/static/deps/css/catal.css b/main/static/deps/css/catal.css new file mode 100644 index 0000000..8605d98 --- /dev/null +++ b/main/static/deps/css/catal.css @@ -0,0 +1,37 @@ + +.card:hover { + box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); + background-color: rgba(49, 0, 89, 0.73); /* Цвет фона при наведении */ +} + +/* Стили для текста и заголовков в карточке */ +.card-title { + font-size: 1.2rem; + margin-bottom: 0.5rem; +} + +.card-text { + color: #8805ff; /* Цвет текста */ +} + +/* Стили для цены */ +.card strong { + color: #e38900; /* Цвет цены */ +} + +/* Стили для ссылок */ +.card a { + text-decoration: none; + color: #ffffff; /* Цвет ссылок */ + transition: color 0.3s; +} + +.card a:hover { + color: #1b003d; /* Цвет ссылок при наведении */ +} +.card { + background-color: rgba(0, 0, 0, 0.62); /* Цвет фона карточки */ + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + transition: box-shadow 0.3s, background-color 0.3s; + border: none; +} diff --git a/main/static/deps/css/fordetail.css b/main/static/deps/css/fordetail.css new file mode 100644 index 0000000..d84f8fe --- /dev/null +++ b/main/static/deps/css/fordetail.css @@ -0,0 +1,100 @@ +body { + background-image: url("../images/det.jpg"); + background-repeat: no-repeat; + background-attachment: fixed; + background-position: center center; + background-size: cover; + height: 100%; +} + +.dropdown-toggle::after { + content: none; +} + +.custom-shadow { + box-shadow: 5px 5px 25px 19px #380069; +} + +.product_id { + color: #cb5cff; + font-size: 15px; +} + +.badge.bg-warning.text-dark { + position: absolute; + top: 10px; + right: 5px; + z-index: 1; + padding: 5px 10px; + border-radius: 3px; + font-size: 1rem; + box-shadow: 2px 2px 15px 9px #000000; +} + +.badge-banner { + top: 80%; + border-radius: 15px; + font-size: 0.7rem; +} +/* Ваши стили для футера */ +footer { + padding-top: 20px; /* Расстояние от верха футера */ + background-color: #343a40; /* Цвет фона футера */ + color: #ffffff; /* Цвет текста внутри футера */ +} + +.footer-content { + display: flex; + justify-content: space-between; + align-items: center; +} + +.footer-ad { + flex-grow: 1; /* Растянуть колонку на всю доступную ширину */ +} + +.ad-text { + text-align: center; +} + +.ad-block { + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + margin-top: 10px; +} + +.ad-heading { + color: #ffffff; + font-size: 18px; +} + +.ad-description { + color: #ffffff; + font-size: 14px; + margin-bottom: 10px; +} + +.ad-button { + background-color: #ffc107; /* Цвет кнопки */ + color: #343a40; /* Цвет текста на кнопке */ + border: none; + padding: 10px 20px; + border-radius: 5px; + text-decoration: none; + transition: background-color 0.3s; +} + +.ad-button:hover { + background-color: #ffca2c; /* Цвет кнопки при наведении */ +} +.footer-text { + font-size: 18px; /* Размер шрифта */ + font-weight: bold; /* Жирное начертание */ + margin-top: 10px; /* Верхний отступ */ +} + +.footer-text span { + color: #ff6b6b; /* Цвет для части текста */ +} diff --git a/main/static/deps/css/my_footer_css.css b/main/static/deps/css/my_footer_css.css index 827db98..5a49580 100644 --- a/main/static/deps/css/my_footer_css.css +++ b/main/static/deps/css/my_footer_css.css @@ -2,4 +2,4 @@ footer { width: 100%; background-color: #8100bb; padding: 10px 0; - } \ No newline at end of file + } diff --git a/main/static/deps/images/det.jpg b/main/static/deps/images/det.jpg new file mode 100644 index 0000000..62cfb1c Binary files /dev/null and b/main/static/deps/images/det.jpg differ diff --git a/main/templates/main/index.html b/main/templates/main/index.html index d347a2b..61a89a2 100644 --- a/main/templates/main/index.html +++ b/main/templates/main/index.html @@ -11,6 +11,7 @@ + @@ -58,29 +59,38 @@ -
- {% for product in products %} -
-
-
- {{ +
+ {% for product in products %} +
+
+ {% if product.image %} +
+ {{ product.name }}
-
- -

{{ product.name }}

-
-

{{ product.description }}

-
-

{{ product.price }} $

-
+ + {% else %} + +
+ {{ product.name }} +
+ {% endif %} +
+ +

{{ product.name }}

+
+

{{ product.description }}

+
+

{{ product.price }}₸

- {% endfor %} -
+
+ {% endfor %} +
+
{#
#} @@ -116,21 +126,22 @@
-