Рефакторинг структуры проекта: шаблоны, статика и модули приложения
This commit is contained in:
349
static/css/index.css
Normal file
349
static/css/index.css
Normal file
@@ -0,0 +1,349 @@
|
||||
:root {
|
||||
--bg: #eef4ff;
|
||||
--bg2: #dde9ff;
|
||||
--panel: #ffffff;
|
||||
--text: #15203b;
|
||||
--muted: #526079;
|
||||
--line: #c8d7f7;
|
||||
--brand: #1f4ea3;
|
||||
--brand-2: #3578ef;
|
||||
--accent: #0f7b56;
|
||||
--radius: 18px;
|
||||
--shadow: 0 20px 55px rgba(16, 43, 95, .14);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
font-family: Manrope, sans-serif;
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(1200px 700px at -10% -10%, #c8dbff 0%, transparent 55%),
|
||||
radial-gradient(900px 500px at 110% -20%, #d8f4ec 0%, transparent 50%),
|
||||
linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
|
||||
}
|
||||
body.scope-ib {
|
||||
background:
|
||||
radial-gradient(1200px 700px at -10% -10%, #ffb3b3 0%, transparent 58%),
|
||||
radial-gradient(900px 500px at 110% -20%, #ffbeb3 0%, transparent 52%),
|
||||
linear-gradient(160deg, #ffd7d7 0%, #ffb8b8 100%);
|
||||
}
|
||||
body.scope-ib .hero {
|
||||
background:
|
||||
linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,0) 45%),
|
||||
linear-gradient(125deg, #7a1f2a 0%, #b43444 55%, #d34d57 100%);
|
||||
}
|
||||
body.scope-ib .hero::after {
|
||||
background-color: rgba(90, 15, 28, .45);
|
||||
}
|
||||
body.scope-ib .hero::before {
|
||||
background:
|
||||
linear-gradient(to top, rgba(255,255,255,.9) 0 2px, rgba(255,255,255,0) 2px),
|
||||
rgba(74, 9, 24, .42);
|
||||
}
|
||||
body.scope-ib .mode-btn.active {
|
||||
background: linear-gradient(140deg, #9a2331, #c03d4c);
|
||||
box-shadow: 0 8px 18px rgba(158, 33, 51, .35);
|
||||
}
|
||||
|
||||
.wrap {
|
||||
width: min(1400px, calc(100% - 32px));
|
||||
margin: 18px auto 28px;
|
||||
}
|
||||
|
||||
.brand-strip {
|
||||
margin-bottom: 12px;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.hero {
|
||||
background:
|
||||
linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,0) 45%),
|
||||
linear-gradient(125deg, #173d83 0%, #2c63ca 55%, #3f83ff 100%);
|
||||
color: #f5f8ff;
|
||||
border-radius: calc(var(--radius) + 4px);
|
||||
padding: 26px;
|
||||
box-shadow: var(--shadow);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.hero::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: auto -4% 0 -4%;
|
||||
height: 62%;
|
||||
background-color: rgba(17, 46, 102, .38);
|
||||
clip-path: polygon(0 100%, 0 84%, 9% 52%, 17% 70%, 28% 42%, 39% 73%, 50% 32%, 61% 66%, 73% 38%, 84% 69%, 93% 47%, 100% 60%, 100% 100%);
|
||||
}
|
||||
|
||||
.hero::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: auto -3% 0 -3%;
|
||||
height: 50%;
|
||||
background:
|
||||
linear-gradient(to top, rgba(255,255,255,.9) 0 2px, rgba(255,255,255,0) 2px),
|
||||
rgba(9, 31, 76, .32);
|
||||
clip-path: polygon(0 100%, 0 90%, 8% 67%, 16% 82%, 25% 58%, 35% 85%, 47% 50%, 58% 80%, 69% 55%, 80% 79%, 91% 62%, 100% 74%, 100% 100%);
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
margin: 0 0 8px;
|
||||
font-family: "Space Grotesk", sans-serif;
|
||||
font-size: clamp(26px, 4.8vw, 48px);
|
||||
letter-spacing: .3px;
|
||||
line-height: 1.02;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: clamp(170px, 24vw, 280px);
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.brand-logo img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .14));
|
||||
}
|
||||
|
||||
.hero p {
|
||||
margin: 0;
|
||||
max-width: 860px;
|
||||
color: rgba(245,248,255,.92);
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.board {
|
||||
margin-top: 18px;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.mode-switch {
|
||||
display: inline-flex;
|
||||
gap: 6px;
|
||||
padding: 6px;
|
||||
border-radius: 14px;
|
||||
background: #ffffff;
|
||||
border: 1px solid #d9e6ff;
|
||||
box-shadow: 0 8px 24px rgba(26, 58, 118, .08);
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.mode-btn {
|
||||
border: 0;
|
||||
border-radius: 10px;
|
||||
padding: 9px 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
letter-spacing: .2px;
|
||||
color: #2a4e8d;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
transition: .18s ease;
|
||||
}
|
||||
|
||||
.mode-btn:hover { background: #eef4ff; }
|
||||
.mode-btn.active {
|
||||
color: #fff;
|
||||
background: linear-gradient(140deg, #1f4ea3, #3978e0);
|
||||
box-shadow: 0 8px 18px rgba(38, 86, 176, .28);
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--panel);
|
||||
border: 1px solid #dfebff;
|
||||
border-radius: var(--radius);
|
||||
box-shadow: 0 10px 30px rgba(24, 56, 116, .08);
|
||||
padding: 14px;
|
||||
min-height: 320px;
|
||||
}
|
||||
|
||||
.card h2 {
|
||||
margin: 0 0 10px;
|
||||
font-size: 14px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .9px;
|
||||
color: #234782;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.search {
|
||||
width: 100%;
|
||||
border: 1px solid #cfe0ff;
|
||||
border-radius: 12px;
|
||||
padding: 11px 12px;
|
||||
font-size: 14px;
|
||||
margin-bottom: 10px;
|
||||
outline: none;
|
||||
transition: .2s ease;
|
||||
}
|
||||
|
||||
.search:focus {
|
||||
border-color: #5b91f6;
|
||||
box-shadow: 0 0 0 4px rgba(91,145,246,.14);
|
||||
}
|
||||
|
||||
.chip-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
max-height: 380px;
|
||||
overflow: auto;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
.chip {
|
||||
border: 1px solid #ccdbf7;
|
||||
border-radius: 999px;
|
||||
padding: 8px 12px;
|
||||
background: #f7faff;
|
||||
color: #22427a;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
transition: .18s ease;
|
||||
}
|
||||
|
||||
.chip:hover {
|
||||
transform: translateY(-1px);
|
||||
border-color: #98b9ef;
|
||||
background: #f0f6ff;
|
||||
}
|
||||
|
||||
.chip.active {
|
||||
background: linear-gradient(140deg, #1f4ea3, #3978e0);
|
||||
border-color: transparent;
|
||||
color: #fff;
|
||||
box-shadow: 0 6px 16px rgba(34,83,172,.25);
|
||||
}
|
||||
|
||||
.chip.dim {
|
||||
opacity: .45;
|
||||
}
|
||||
|
||||
.footer-bar {
|
||||
margin-top: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
button.action {
|
||||
border: 0;
|
||||
border-radius: 10px;
|
||||
background: linear-gradient(140deg, #0d7e59, #0a6648);
|
||||
color: #fff;
|
||||
padding: 9px 14px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.result {
|
||||
margin-top: 16px;
|
||||
background: #fff;
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid #dfebff;
|
||||
box-shadow: 0 10px 30px rgba(24, 56, 116, .07);
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.result-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 12px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.result-head h3 {
|
||||
margin: 0;
|
||||
font-size: 17px;
|
||||
color: #1f3f77;
|
||||
}
|
||||
|
||||
.rows {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.row-card {
|
||||
border: 1px solid var(--line);
|
||||
background: linear-gradient(180deg, #ffffff, #f5f9ff);
|
||||
border-radius: 12px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.row-card strong { color: #1a3e79; font-size: 14px; }
|
||||
.tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.tag {
|
||||
font-size: 12px;
|
||||
border-radius: 999px;
|
||||
background: #eaf2ff;
|
||||
color: #234b89;
|
||||
padding: 4px 8px;
|
||||
border: 1px solid #d2e3ff;
|
||||
}
|
||||
a.tag {
|
||||
text-decoration: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
a.tag::after {
|
||||
content: "↗";
|
||||
font-size: 11px;
|
||||
opacity: .85;
|
||||
}
|
||||
|
||||
.credit {
|
||||
position: fixed;
|
||||
right: 16px;
|
||||
bottom: 10px;
|
||||
text-align: right;
|
||||
line-height: 1.1;
|
||||
z-index: 5;
|
||||
}
|
||||
.credit .name {
|
||||
font-family: Caveat, cursive;
|
||||
font-size: 14px;
|
||||
color: #1c3f7c;
|
||||
}
|
||||
.credit a {
|
||||
font-size: 7px;
|
||||
color: #2f5fae;
|
||||
text-decoration: none;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.brand-logo { max-width: 240px; }
|
||||
.board { grid-template-columns: 1fr; }
|
||||
.hero { padding: 20px; }
|
||||
.credit { right: 8px; bottom: 6px; }
|
||||
.credit .name { font-size: 8px; }
|
||||
.credit a { font-size: 6px; }
|
||||
}
|
||||
Reference in New Issue
Block a user