feat: news/events pages, pagination, cookie banner, MONT→MONT rename, logo update, admin improvements, API endpoints, dynamic links by domain

This commit is contained in:
2026-06-01 17:44:25 +03:00
parent 7c0c2ea14a
commit b1fde8344e
117 changed files with 3993 additions and 70 deletions
+137 -2
View File
@@ -1,7 +1,7 @@
:root { --b:#1f4ea3; --line:#cfe0ff; }
* { box-sizing: border-box; }
body { margin:0; font-family:Manrope,sans-serif; background:#f0f5ff; color:#1a2746; }
body.ib { background:#fff1f1; }
body.ib { background:#eefaf3; }
.wrap { width:min(1600px, calc(100% - 24px)); margin:12px auto 24px; }
.top {
background: linear-gradient(130deg, #1f4ea3, #3977df);
@@ -13,7 +13,7 @@
align-items:center;
gap:10px;
}
body.ib .top { background: linear-gradient(130deg, #9b2f3a, #c24a56); }
body.ib .top { background: linear-gradient(130deg, #1f7a4a, #37a96b); }
.scope-switch { display:flex; gap:8px; }
.scope-chip {
display:inline-block;
@@ -26,6 +26,9 @@
border:1px solid #ccdcff;
}
.scope-chip.active { background:#fff; color:#112847; }
.top-actions { display:flex; gap:8px; align-items:center; }
.top-actions a,
.top-actions form { margin:0; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:10px; margin:12px 0; }
.box {
background:#fff;
@@ -54,12 +57,44 @@
.pri { background:#1f4ea3; color:#fff; }
.warn { background:#e8eefc; color:#223963; }
.danger { background:#ffefef; color:#8e1d1d; }
.alerts { display:grid; gap:8px; margin:12px 0; }
.alert { border-radius:10px; padding:10px 12px; font-weight:700; border:1px solid #cfe0ff; background:#fff; }
.alert.ok { color:#14532d; background:#ecfdf3; border-color:#bde9cb; }
.alert.error { color:#8e1d1d; background:#ffefef; border-color:#ffcaca; }
.lists { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-bottom:10px; }
.list-box { max-height: 430px; overflow-y: auto; padding-right: 4px; }
.list-box::-webkit-scrollbar { width:12px; }
.list-box::-webkit-scrollbar-thumb { background:#bfd4ff; border-radius:10px; }
.list-item { display:flex; justify-content:space-between; align-items:center; gap:8px; border:1px solid var(--line); border-radius:10px; padding:6px 8px; margin-bottom:6px; background:#fff; min-height: 36px; }
.product-item { border:1px solid var(--line); border-radius:10px; padding:6px 8px; margin-bottom:6px; background:#fff; }
.product-row { display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:36px; }
.product-row span { min-width:0; overflow-wrap:anywhere; }
.product-actions { display:flex; gap:8px; align-items:center; flex-shrink:0; }
.product-actions form { margin:0; }
.product-edit { display:grid; grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.2fr) auto; gap:8px; margin-top:8px; }
.product-edit[hidden] { display:none; }
.pending-box { margin:12px 0; }
.pending-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
.pending-head h3 { margin:0; }
.pending-head form { margin:0; }
.pending-list { display:grid; gap:8px; }
.pending-item { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:10px; align-items:start; border:1px solid var(--line); border-radius:10px; padding:8px; }
.pending-item span { display:block; color:#49638f; font-size:12px; margin-top:2px; }
.pending-desc { margin-top:8px; padding:8px; border-radius:8px; background:#f6f9ff; white-space:pre-wrap; font-size:13px; line-height:1.45; }
.pending-actions { display:flex; gap:8px; }
.pending-actions form { margin:0; }
.admin-users-box { margin:12px 0; }
.created-admin-card { display:grid; gap:6px; margin:0 0 10px; padding:10px 12px; border:1px solid #9fd7b1; border-radius:10px; background:#ecfdf3; color:#14532d; }
.created-admin-card code { display:inline-block; padding:3px 6px; border-radius:6px; background:#fff; color:#102a1a; font-weight:800; }
.created-admin-share { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:8px; align-items:stretch; margin-top:4px; }
.created-admin-share textarea { width:100%; min-height:84px; resize:vertical; padding:9px 10px; border:1px solid #9fd7b1; border-radius:9px; font:700 13px/1.45 Manrope,sans-serif; color:#102a1a; background:#fff; }
.admin-create { display:grid; grid-template-columns:minmax(160px, 1fr) auto auto auto; gap:8px; align-items:center; }
.admin-create label { display:flex; align-items:center; gap:6px; font-weight:700; white-space:nowrap; }
.admin-users-list { display:grid; gap:6px; margin-top:10px; }
.admin-user-item { display:flex; justify-content:space-between; align-items:center; gap:8px; border:1px solid var(--line); border-radius:10px; padding:7px 8px; }
.admin-user-item span { display:grid; gap:2px; }
small { color:#60759d; font-size:11px; }
.matrix-wrap { background:#fff; border:1px solid #d4e3ff; border-radius:12px; padding:10px; }
.matrix-scroll { overflow:auto; max-height:72vh; border:1px solid #dce7ff; border-radius:10px; }
.matrix-scroll::-webkit-scrollbar,
@@ -75,3 +110,103 @@
th:first-child { z-index: 3; }
td input { transform: scale(1.05); }
.matrix-tip { margin:0 0 6px; font-size:12px; color:#37507d; }
@media (max-width: 980px) {
.wrap {
width: calc(100% - 16px);
margin: 8px auto 16px;
}
.top {
flex-direction: column;
align-items: stretch;
padding: 12px;
}
.top-actions {
width: 100%;
display: grid !important;
grid-template-columns: 1fr 1fr 1fr;
}
.top-actions a,
.top-actions form,
.top-actions button {
width: 100%;
}
.scope-switch {
flex-wrap: wrap;
}
.scope-chip {
flex: 1 1 auto;
text-align: center;
}
.grid {
grid-template-columns: 1fr;
}
.lists {
grid-template-columns: 1fr;
}
.list-box {
max-height: 300px;
}
.list-item {
align-items: flex-start;
flex-wrap: wrap;
}
.product-row,
.product-actions,
.pending-head,
.pending-item,
.pending-actions,
.admin-create,
.admin-user-item,
.created-admin-share {
display:grid;
grid-template-columns:1fr;
width:100%;
}
.product-edit {
grid-template-columns:1fr;
}
.matrix-wrap {
padding: 8px;
}
.matrix-scroll {
max-height: 62vh;
}
th, td {
font-size: 11px;
padding: 5px;
}
th:first-child,
td:first-child {
min-width: 170px;
}
input[type="text"],
select,
button {
min-height: 40px;
}
}
@media (max-width: 600px) {
.top-actions {
grid-template-columns: 1fr;
}
.inline-product {
grid-template-columns: 1fr;
}
.matrix-h-scroll {
height: 24px;
}
.matrix-scroll::-webkit-scrollbar,
.matrix-h-scroll::-webkit-scrollbar {
height: 18px;
width: 12px;
}
th:first-child,
td:first-child {
min-width: 145px;
}
.matrix-tip {
font-size: 11px;
}
}
+168 -1
View File
@@ -183,8 +183,163 @@
font-size: 16px;
}
.board {
/* ── Page layout: main content + news sidebar ── */
.page-layout {
margin-top: 18px;
display: grid;
grid-template-columns: 1fr 300px;
gap: 20px;
align-items: start;
}
.main-col {
min-width: 0;
}
.news-sidebar {
position: sticky;
top: 18px;
}
.news-widget {
background: #fff;
border-radius: var(--radius);
border: 1px solid #dfebff;
box-shadow: 0 10px 30px rgba(24, 56, 116, .08);
overflow: hidden;
}
.news-widget-head {
padding: 14px 16px 10px;
border-bottom: 1px solid #edf3ff;
display: flex;
align-items: center;
gap: 8px;
}
.news-all-link {
font-size: 12px; font-weight: 700; color: var(--brand-2);
text-decoration: none; white-space: nowrap;
padding: 3px 10px; border-radius: 999px;
background: #eef4ff; border: 1px solid #c8d8f7;
transition: .15s;
}
.news-all-link:hover { background: #dbe8ff; }
.news-widget-head h2 {
margin: 0;
font-size: 13px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 1px;
color: #234782;
display: flex;
align-items: center;
gap: 7px;
}
.news-widget-head h2::before {
content: "";
display: inline-block;
width: 3px;
height: 14px;
border-radius: 2px;
background: linear-gradient(180deg, #3978e0, #1f4ea3);
flex-shrink: 0;
}
.news-list {
display: flex;
flex-direction: column;
}
.news-card {
border-bottom: 1px solid #f0f5ff;
transition: background .15s;
overflow: hidden;
display: flex;
align-items: center;
text-decoration: none;
}
.news-card:last-child {
border-bottom: none;
}
.news-card:hover {
background: #f8fbff;
}
.news-card-img-wrap {
flex-shrink: 0;
width: 62px; height: 62px;
margin: 10px 0 10px 12px;
border-radius: 8px;
overflow: hidden;
background: #e8f0ff;
display: flex; align-items: center; justify-content: center;
}
.news-card-img {
width: 62px; height: 62px;
object-fit: cover;
display: block;
}
.news-card-no-img {
font-size: 22px;
line-height: 1;
}
.news-card-body {
padding: 10px 12px 10px 10px;
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.news-card-date {
font-size: 10px;
font-weight: 700;
color: #b0c4df;
letter-spacing: .3px;
text-transform: uppercase;
}
.news-card-title {
margin: 0;
font-size: 12.5px;
font-weight: 700;
color: #1a3e79;
line-height: 1.4;
}
.news-card-btn {
display: inline-flex;
align-items: center;
font-size: 11px;
font-weight: 700;
color: var(--brand-2);
text-decoration: none;
margin-top: 2px;
transition: .15s;
}
.news-card-btn:hover {
color: var(--brand);
transform: translateX(2px);
}
.news-empty {
padding: 20px 16px;
font-size: 13px;
color: #9ab0d0;
margin: 0;
}
.board {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
@@ -538,12 +693,24 @@
transform: scale(1.04);
}
@media (max-width: 1100px) {
.page-layout { grid-template-columns: 1fr 260px; }
}
@media (max-width: 980px) {
.brand-logo { max-width: 160px; }
.board { grid-template-columns: 1fr; }
.hero { padding: 20px; }
.credit { right: 8px; bottom: 6px; }
#btn-contact-ruslan { font-size: 14px; }
.page-layout { grid-template-columns: 1fr; }
.news-sidebar { position: static; }
.news-list { flex-direction: column; }
}
@media (max-width: 640px) {
.news-list { flex-direction: column; }
.news-card { border-right: none; border-bottom: 1px solid #f0f5ff; }
}
@media (max-width: 768px) {
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

+25
View File
@@ -0,0 +1,25 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-labelledby="title desc">
<title id="title">4MONT favicon</title>
<desc id="desc">A compact favicon inspired by the 4MONT logo: a blue geometric 4 and bold black M on a clean rounded square.</desc>
<defs>
<linearGradient id="blue" x1="5" y1="8" x2="38" y2="58" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#0C5CAD"/>
<stop offset="0.45" stop-color="#004C92"/>
<stop offset="1" stop-color="#002F62"/>
</linearGradient>
<filter id="softShadow" x="-20%" y="-20%" width="140%" height="140%">
<feDropShadow dx="0" dy="2" stdDeviation="2" flood-color="#001A33" flood-opacity="0.16"/>
</filter>
</defs>
<rect x="3" y="3" width="58" height="58" rx="14" fill="#FFFFFF"/>
<rect x="3.5" y="3.5" width="57" height="57" rx="13.5" fill="none" stroke="#E6EAF0"/>
<g filter="url(#softShadow)">
<!-- Stylized 4 -->
<path fill="url(#blue)" d="M7 38.7 27.4 10.2h10.4v28.5h6.3v8.9h-6.3v7.3H27.9v-7.3H7v-8.9Zm20.9 0V25.2L18 38.7h9.9Z"/>
<!-- Compact M -->
<path fill="#050505" d="M39.2 54.9V10.2h9.4l5.7 16.1 5.7-16.1h9.1v44.7h-8.7V30.2l-4.7 13.3h-3.1l-4.8-13.3v24.7h-8.6Z" transform="translate(-5.4 0)"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Some files were not shown because too many files have changed in this diff Show More