Skip to content

Commit 9a086f5

Browse files
committed
corrections based on the feedback
1 parent ff0d199 commit 9a086f5

4 files changed

Lines changed: 48 additions & 63 deletions

File tree

docs/index.en.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ hide:
88
---
99

1010
<div class="hero">
11-
<div class="blobs" aria-hidden="true">
12-
<div class="blob"></div>
13-
<div class="blob"></div>
14-
</div>
1511

1612
<div class="hero-content">
1713
<h1>CodeScoring Documentation</h1>

docs/index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ hide:
88
---
99

1010
<div class="hero">
11-
<div class="blobs" aria-hidden="true">
12-
<div class="blob"></div>
13-
<div class="blob"></div>
14-
</div>
1511

1612
<div class="hero-content">
1713
<h1>Документация CodeScoring</h1>

docs/stylesheets/home.css

Lines changed: 47 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');
22

3+
/* ====== Home hero ====== */
4+
/* Layout variables scoped to home page */
5+
body.is-home {
6+
--cs-hero-pad-top: 5.5rem;
7+
--cs-hero-pad-x: clamp(1.5rem, 6vw, 8rem);
8+
--cs-hero-pad-left: 150px;
9+
--cs-hero-pad-bottom: 0.75rem;
10+
background: #1c1c1f;
11+
}
12+
13+
/* Hero container */
314
.hero {
415
position: relative;
516
width: 100vw;
@@ -10,72 +21,59 @@
1021
display: flex;
1122
align-items: flex-start;
1223
justify-content: flex-start;
13-
padding: 3rem clamp(1.5rem, 6vw, 8rem) 2.5rem clamp(1.5rem, 6vw, 8rem);
24+
padding: var(--cs-hero-pad-top) var(--cs-hero-pad-x) var(--cs-hero-pad-bottom) var(--cs-hero-pad-left);
1425
font-family: "Play", "Arial Narrow", Arial, sans-serif;
1526

1627
overflow: visible;
1728
color: #ffffff;
1829
z-index: 0;
1930
}
2031

21-
body.is-home .hero {
22-
padding: 5.5rem clamp(1.5rem, 6vw, 8rem) 0.75rem 150px !important;
23-
}
24-
25-
@media (max-width: 1200px) {
26-
body.is-home .hero {
27-
padding: 4rem clamp(1.5rem, 6vw, 5rem) 0.75rem clamp(1.5rem, 4vw, 72px) !important;
28-
}
29-
}
30-
31-
/* контейнер для блобов — фиксированный фон */
32-
.blobs {
32+
/* Page-level background blobs for home only */
33+
body.is-home::before,
34+
body.is-home::after {
35+
content: "";
3336
position: fixed;
34-
top: var(--md-header-height, 56px);
35-
bottom: var(--md-footer-height, 56px);
36-
left: 0;
37-
right: 0;
3837
z-index: -1;
3938
pointer-events: none;
40-
overflow: hidden;
41-
background: #1c1c1f;
39+
border-radius: 50%;
40+
filter: blur(120px);
41+
opacity: 0.9;
42+
width: 740px;
43+
height: 740px;
4244
}
4345

44-
/* единый, мягкий радиальный blob */
45-
.blob {
46-
position: absolute;
47-
width: 720px;
48-
height: 720px;
49-
border-radius: 50%;
46+
body.is-home::before {
47+
left: -8vw;
48+
top: 12vh;
5049
background: radial-gradient(circle at 30% 30%,
51-
rgba(255,61,108,0.9) 0%,
52-
rgba(255,61,108,0.35) 42%,
53-
rgba(255,61,108,0.05) 66%,
54-
rgba(255,61,108,0) 100%);
55-
filter: blur(90px);
56-
opacity: 0.95;
57-
transform: translate3d(0,0,0) scale(1);
58-
will-change: transform;
59-
animation: blobMove 10s linear infinite;
50+
rgba(255,61,108,0.9) 0%,
51+
rgba(255,61,108,0.35) 42%,
52+
rgba(255,61,108,0.05) 66%,
53+
rgba(255,61,108,0) 100%);
54+
animation: blobMove 12s linear infinite;
6055
}
6156

62-
/* второй blob */
63-
.blob:nth-of-type(2) {
64-
width: 900px;
65-
height: 900px;
66-
left: 55%;
67-
top: 45%;
57+
body.is-home::after {
58+
right: -12vw;
59+
top: 40vh;
6860
background: radial-gradient(circle at 50% 45%,
69-
rgba(255,61,108,0.8) 0%,
70-
rgba(255,61,108,0.22) 38%,
71-
rgba(255,61,108,0.02) 70%,
72-
rgba(255,61,108,0) 100%);
73-
filter: blur(140px);
74-
opacity: 0.8;
75-
animation: blobMoveAlt 15s linear infinite reverse;
61+
rgba(255,61,108,0.8) 0%,
62+
rgba(255,61,108,0.22) 38%,
63+
rgba(255,61,108,0.02) 70%,
64+
rgba(255,61,108,0) 100%);
65+
animation: blobMoveAlt 16s linear infinite reverse;
66+
}
67+
68+
@media (max-width: 1200px) {
69+
body.is-home {
70+
--cs-hero-pad-top: 4rem;
71+
--cs-hero-pad-x: clamp(1.5rem, 6vw, 5rem);
72+
--cs-hero-pad-left: clamp(1.5rem, 4vw, 72px);
73+
}
7674
}
7775

78-
/* Контент поверх блобов */
76+
/* Контент поверх фона */
7977
body.is-home .hero-content {
8078
width: 100%;
8179
max-width: 1200px;
@@ -200,7 +198,7 @@ body.is-home .md-top {
200198

201199
@media (min-width: 1400px) {
202200
.hero {
203-
padding-top: 4rem;
201+
padding-top: var(--cs-hero-pad-top);
204202
}
205203

206204
.hero-content {
@@ -212,12 +210,6 @@ body.is-home .md-top {
212210
}
213211
}
214212

215-
@media (min-width: 1200px) {
216-
body.is-home .hero-content {
217-
margin-left: 0 !important;
218-
}
219-
}
220-
221213
/* ====== мобильная адаптация ====== */
222214
/* Убрать тень и границу от хэдера и табов на мобильке */
223215
@media (max-width: 720px) {

overrides/main.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
{{ super() }}
4747
<script>
4848
(function() {
49+
// Inline header tabs for desktop. Keeps default tabs on mobile.
4950
const minWidth = 960;
5051
const root = document.documentElement;
5152
let headerTabs = null;

0 commit comments

Comments
 (0)