Skip to content

Commit 92239e7

Browse files
Lisofffaalsakhaev
authored andcommitted
fix: update part styles for adaptive
1 parent cb42de2 commit 92239e7

File tree

7 files changed

+165
-17
lines changed

7 files changed

+165
-17
lines changed

website/public/themes/dark/icons/home/arrow-tablet-left.svg

Lines changed: 3 additions & 0 deletions
Loading

website/public/themes/dark/icons/home/arrow-tablet-right.svg

Lines changed: 3 additions & 0 deletions
Loading

website/public/themes/light/icons/home/arrow-tablet-left.svg

Lines changed: 3 additions & 0 deletions
Loading

website/public/themes/light/icons/home/arrow-tablet-right.svg

Lines changed: 3 additions & 0 deletions
Loading

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

Lines changed: 136 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,130 @@
139139

140140

141141
@media (max-width: 69.6875rem) {
142+
143+
.label {
144+
transform: rotate(-90deg);
145+
146+
&--top-1 {
147+
right: auto;
148+
left: -2em;
149+
top: 17em;
150+
}
151+
152+
&--bottom-1 {
153+
right: 2em;
154+
top: 10em;
155+
}
156+
157+
&--top-2 {
158+
left: auto;
159+
right: 2em;
160+
bottom: 25em;
161+
}
162+
163+
&--bottom-2 {
164+
left: -2em;
165+
bottom: 19em;
166+
}
167+
}
168+
142169
.labelImg {
143-
display: none;
170+
position: absolute;
171+
172+
&--bottom-1 {
173+
display: none;
174+
}
175+
176+
&--top-1 {
177+
display: none;
178+
}
179+
180+
&--bottom-2 {
181+
right: -4em;
182+
top: 4em;
183+
transform: rotate(-90deg) scaleX(-1);
184+
}
185+
186+
&--top-2 {
187+
top: 5.5em;
188+
right: auto;
189+
transform: rotate(-90deg) scaleX(-1);
190+
left: -9em;
191+
}
192+
}
193+
194+
.examplesContainer {
195+
gap: 5rem;
196+
}
197+
198+
.exampleBlock {
199+
flex-direction: column-reverse;
200+
gap: 1.25rem;
201+
margin: 0 auto;
202+
203+
&.reverse {
204+
flex-direction: column-reverse;
205+
margin-top: 2.5rem;
206+
}
207+
208+
.content {
209+
margin-top: 0;
210+
}
211+
}
212+
213+
.content {
214+
max-width: 90%;
215+
padding: 1.25rem;
216+
background: var(--grey-de);
217+
width: 100%;
218+
border-radius: .625rem;
219+
}
220+
221+
:global(.dark) .content {
222+
background: var(--black-1b);
223+
}
224+
225+
.imageContainer {
226+
max-width: 90%;
227+
width: 100%;
228+
}
229+
}
230+
231+
@media (max-width: 58.75rem) {
232+
233+
.content,
234+
.imageContainer {
235+
max-width: 26.25rem;
144236
}
145237

146238
.label {
147-
display: none;
239+
&--top-1 {
240+
left: -1em;
241+
}
242+
243+
&--bottom-1 {
244+
right: -1em;
245+
}
246+
247+
&--top-2 {
248+
right: -1em;
249+
}
250+
251+
&--bottom-2 {
252+
left: -1em;
253+
}
254+
}
255+
256+
.labelImg {
257+
&--bottom-2 {
258+
right: -7em;
259+
top: 4em;
260+
transform: rotate(-90deg) scaleX(-1);
261+
}
148262
}
149263
}
150264

151-
@media (max-width: 768px) {
265+
@media (max-width: 45rem) {
152266
.wrapper {
153267
margin-top: 4rem;
154268
}
@@ -157,21 +271,33 @@
157271
gap: 1.25rem;
158272
}
159273

160-
.exampleBlock {
161-
flex-direction: column;
162-
gap: 1.25rem;
163274

164-
&.reverse {
165-
flex-direction: column;
166-
margin-top: 2.5rem;
167-
}
275+
.label {
276+
display: none;
277+
}
278+
279+
.labelImg {
280+
display: none;
281+
}
282+
283+
.exampleBlock {
284+
margin: 0;
168285
}
169286

170287
.content {
171288
max-width: none;
289+
background: transparent;
290+
}
291+
292+
:global(.dark) .content {
293+
background: transparent;
172294
}
173295

174296
.imageContainer {
175297
max-width: none;
176298
}
299+
300+
.exampleDescription {
301+
white-space: normal;
302+
}
177303
}

website/src/components/HomePage/ExamplesFirstSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const ExamplesFirstSection = () => {
6565
return (
6666
<section className={styles.wrapper}>
6767
<h2 className={styles.title}>
68-
examples
68+
for example
6969
</h2>
7070

7171
<div className={styles.examplesContainer}>

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

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
.subtitle {
2424
margin-top: .75rem;
25-
font-size: var( --fs-12-14);
25+
font-size: var(--fs-12-14);
2626
line-height: 1.49;
2727
opacity: 0.7;
2828

@@ -53,12 +53,12 @@
5353
}
5454
}
5555

56-
:global(.dark){
57-
.article{
58-
background-color: var(--black-1b);
56+
:global(.dark) {
57+
.article {
58+
background-color: var(--black-1b);
5959
}
6060

61-
.text--bold{
61+
.text--bold {
6262
opacity: 1 !important;
6363
color: var(--white);
6464
opacity: 1;
@@ -71,8 +71,18 @@
7171
margin: 0 auto;
7272
}
7373

74-
.article{
74+
.article {
7575
margin-top: 2.5rem;
7676
max-width: none;
7777
}
78+
79+
.title {
80+
br {
81+
display: none;
82+
}
83+
84+
span {
85+
margin-left: .5rem;
86+
}
87+
}
7888
}

0 commit comments

Comments
 (0)