Skip to content

Commit cb2c864

Browse files
Lisofffaalsakhaev
authored andcommitted
feat: added ladel to exaple block
1 parent 6661804 commit cb2c864

File tree

14 files changed

+251
-8
lines changed

14 files changed

+251
-8
lines changed

website/public/themes/dark/icons/home/arrow-example-1-bottom.svg

Lines changed: 4 additions & 0 deletions
Loading

website/public/themes/dark/icons/home/arrow-example-1.svg

Lines changed: 3 additions & 0 deletions
Loading

website/public/themes/dark/icons/home/arrow-example-2-bottom.svg

Lines changed: 4 additions & 0 deletions
Loading

website/public/themes/dark/icons/home/arrow-example-2.svg

Lines changed: 3 additions & 0 deletions
Loading

website/public/themes/light/icons/home/arrow-example-1-bottom.svg

Lines changed: 4 additions & 0 deletions
Loading

website/public/themes/light/icons/home/arrow-example-1.svg

Lines changed: 3 additions & 0 deletions
Loading

website/public/themes/light/icons/home/arrow-example-2-bottom.svg

Lines changed: 4 additions & 0 deletions
Loading

website/public/themes/light/icons/home/arrow-example-2.svg

Lines changed: 3 additions & 0 deletions
Loading

website/src/assets/styles/global.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:root {
22
--black: #000000;
33
--black-1d: #1d1d1d;
4+
--black-1b: #1b1b1b;
45
--black-30: #303030;
56
--black-22: #222;
67
--black-48: rgba(48, 48, 48, 0);
@@ -40,6 +41,8 @@
4041
--fs-18-24: 18px;
4142
--fs-36-96: 36px;
4243
--fs-24-36: 24px;
44+
--fs-12-14: 12px;
45+
--fs-10-12: 10px;
4346

4447
//
4548

@@ -57,6 +60,9 @@
5760
--fs-18-24: calc(18px + 6 * ((100vw - 375px) / 1065));
5861
--fs-24-36: calc(24px + 12 * ((100vw - 375px) / 1065));
5962
--fs-36-96: calc(36px + 60 * ((100vw - 375px) / 1065));
63+
--fs-12-14: calc(12px + 2 * ((100vw - 375px) / 1065));
64+
--fs-10-12: calc(10px + 2 * ((100vw - 375px) / 1065));
65+
6066
}
6167

6268
@media screen and (min-width: 1440px) {
@@ -68,5 +74,7 @@
6874
--fs-18-24: 24px;
6975
--fs-36-96: 96px;
7076
--fs-24-36: 36px;
77+
--fs-12-14: 14px;
78+
--fs-10-12: 12px;
7179
}
7280
}

website/src/components/HomePage/ExamplesFirstSection.module.scss

Lines changed: 113 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,61 @@
1919
flex-direction: column;
2020
gap: 5rem;
2121
margin-top: 2.5rem;
22+
position: relative;
23+
}
24+
25+
.label {
26+
position: absolute;
27+
z-index: 2;
28+
29+
&--top-1 {
30+
right: 20em;
31+
top: 19em;
32+
}
33+
34+
&--bottom-1 {
35+
right: 15em;
36+
top: -1em;
37+
}
38+
39+
&--top-2 {
40+
left: 14em;
41+
bottom: 17em;
42+
}
43+
44+
&--bottom-2 {
45+
left: 20em;
46+
bottom: 1em;
47+
}
48+
}
49+
50+
.labelImg {
51+
position: absolute;
52+
53+
&--bottom-1 {
54+
left: 10em;
55+
bottom: -7em;
56+
}
57+
58+
&--top-1 {
59+
bottom: 17em;
60+
left: 7em;
61+
}
62+
63+
&--bottom-2 {
64+
right: 10em;
65+
top: 9em;
66+
}
67+
68+
&--top-2 {
69+
top: 1em;
70+
right: 10em;
71+
}
2272
}
2373

2474
.exampleBlock {
2575
display: flex;
76+
justify-content: space-between;
2677
align-items: center;
2778
gap: 3.75rem;
2879

@@ -37,6 +88,7 @@
3788
will-change: transform, opacity;
3889
transform: translateY(1.25rem);
3990
opacity: 0;
91+
max-width: 50%;
4092
}
4193

4294
.exampleImage {
@@ -45,15 +97,17 @@
4597
border-radius: .625rem;
4698
transition: none;
4799

48-
&:hover{
49-
transform: none!important;
100+
&:hover {
101+
transform: none !important;
50102
cursor: default;
51103
}
52104
}
53105

54106
.content {
55107
flex: 1;
56108
min-width: 0;
109+
max-width: 25rem;
110+
57111
}
58112

59113
.exampleTitle {
@@ -66,12 +120,58 @@
66120
margin-top: 1.25rem;
67121
font-size: var(--fs-14-16);
68122
line-height: 1.49;
123+
white-space: pre-line;
124+
}
125+
126+
127+
128+
@media (max-width: 1185px) {
129+
130+
.label {
131+
&--top-1 {
132+
right: 15em;
133+
top: 17em;
134+
}
135+
136+
&--top-2 {
137+
left: 14em;
138+
bottom: 15em;
139+
}
140+
141+
&--bottom-2 {
142+
left: 15em;
143+
bottom: 0;
144+
}
145+
}
146+
147+
.labelImg {
148+
&--bottom-1 {
149+
bottom: -8em;
150+
}
151+
152+
&--top-1 {
153+
bottom: 15em;
154+
}
155+
156+
&--bottom-2 {
157+
top: 7em;
158+
}
159+
}
160+
}
161+
162+
@media (max-width: 950px) {
163+
.labelImg{
164+
display: none;
165+
}
166+
167+
.label{
168+
display: none;
169+
}
69170
}
70171

71-
// Мобильная версия
72172
@media (max-width: 768px) {
73173
.wrapper {
74-
margin-top: 4rem;
174+
margin-top: 4rem;
75175
}
76176

77177
.examplesContainer {
@@ -84,6 +184,15 @@
84184

85185
&.reverse {
86186
flex-direction: column;
187+
margin-top: 2.5rem;
87188
}
88189
}
190+
191+
.content{
192+
max-width: none;
193+
}
194+
195+
.imageContainer{
196+
max-width: none;
197+
}
89198
}

0 commit comments

Comments
 (0)