From d5769945db40288996d6492b8afb7888426e0f94 Mon Sep 17 00:00:00 2001 From: erjemin Date: Sun, 18 Jan 2026 01:03:37 +0300 Subject: [PATCH] =?UTF-8?q?add:=20=D1=84=D1=83=D1=82=D0=B5=D1=80=20(=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=20=D0=BE=D0=B1=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B4=D0=B0=D0=BA=D1=88=D0=BD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../typograph/templates/typograph/base.html | 17 ++++++++++++-- public/static/css/etpgrf.css | 22 +++++++++++++++++++ public/static/js/base.js | 12 +++++++++- 3 files changed, 48 insertions(+), 3 deletions(-) diff --git a/etpgrf_site/typograph/templates/typograph/base.html b/etpgrf_site/typograph/templates/typograph/base.html index 76f0a98..e245325 100644 --- a/etpgrf_site/typograph/templates/typograph/base.html +++ b/etpgrf_site/typograph/templates/typograph/base.html @@ -38,6 +38,14 @@ {% block content %}{% endblock %} +{# Футер #} + + {# Плашка о куках #} -{# Bootstrap JS #} -{# Custom JS #} +{# Bootstrap JS #} + + +{# Custom JS #} + + {% block scripts %}{% endblock %} + diff --git a/public/static/css/etpgrf.css b/public/static/css/etpgrf.css index 0300eae..4ad578f 100644 --- a/public/static/css/etpgrf.css +++ b/public/static/css/etpgrf.css @@ -38,8 +38,14 @@ } /* Небольшие стили для красоты */ +html, body { + height: 100%; +} + body { background-color: var(--bs-body-bg); + display: flex; + flex-direction: column; } /* Навбар: используем переменную для фона */ @@ -78,6 +84,22 @@ body { margin-left: -5%; } +/* Контент растягивается, чтобы прижать футер */ +#content-container { + flex: 1 0 auto; +} + +/* Футер */ +.footer { + flex-shrink: 0; + padding: 1rem 0; + margin-top: 2rem; + border-top: 1px solid var(--bs-border-color); + background-color: var(--bs-navbar-bg); + color: var(--bs-navbar-color); + font-size: 0.9rem; +} + /* === ПЕРЕОПРЕДЕЛЕНИЕ КОМПОНЕНТОВ BOOTSTRAP === */ /* Кнопки Primary */ diff --git a/public/static/js/base.js b/public/static/js/base.js index a302204..ea21789 100644 --- a/public/static/js/base.js +++ b/public/static/js/base.js @@ -53,7 +53,17 @@ // gtag('config', 'G-XXXXXXXXXX'); // Код Top.Mail.Ru - // (function(w, d, c) { ... })(window, document, "topmailru"); + var _tmr = window._tmr || (window._tmr = []); + _tmr.push({id: "3734603", type: "pageView", start: (new Date()).getTime()}); + (function (d, w, id) { + if (d.getElementById(id)) return; + var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id; + ts.src = "https://top-fwz1.mail.ru/js/code.js"; + var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);}; + if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } + })(document, window, "tmr-code"); + // + // // и т.д.