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"); + // + // // и т.д.