Skip to content

Commit b776a6c

Browse files
authored
Merge pull request #28 from kumuluz/Visual-updates
Visual updates
2 parents adc0611 + 08d8c9b commit b776a6c

7 files changed

Lines changed: 162 additions & 156 deletions

File tree

src/components/shared/service-range-box/service-range-box.scss

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
.box {
66
width: 100%;
77
margin: 5px !important;
8+
margin-top: 15px !important;
9+
padding: 15px;
810
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
911

1012
p {
@@ -14,14 +16,17 @@
1416
}
1517

1618
img {
17-
margin: 20px auto 0 auto;
18-
width: 33%;
19-
height: 33%;
19+
width: auto;
20+
max-width: 33%;
21+
max-height: 80px;
2022
}
2123

2224
.img-div {
2325
width: 100%;
24-
26+
height: 80px;
27+
display: flex;
28+
align-items: center;
29+
justify-content: center;
2530
}
2631
}
2732
}
@@ -39,13 +44,17 @@
3944
}
4045

4146
img {
42-
margin: 20px auto 0 auto;
43-
width: 33%;
44-
height: 33%;
47+
width: auto;
48+
max-width: 33%;
49+
max-height: 80px;
4550
}
4651

4752
.img-div {
4853
width: 100%;
54+
height: 80px;
55+
display: flex;
56+
align-items: center;
57+
justify-content: center;
4958
}
5059
}
5160
}
@@ -64,13 +73,15 @@
6473
}
6574

6675
img {
67-
margin: 20px auto 0 auto;
6876
width: 33%;
69-
height: 33%;
7077
}
7178

7279
.img-div {
7380
width: 100%;
81+
height: 80px;
82+
display: flex;
83+
align-items: center;
84+
justify-content: center;
7485

7586
img {
7687
width: 27%;

src/i18n.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,13 @@ const resources = {
6262
},
6363
};
6464

65-
i18n
66-
.use(LanguageDetector)
65+
const i18nInstance = i18n;
66+
67+
if (typeof window !== "undefined") {
68+
i18nInstance.use(LanguageDetector);
69+
}
70+
71+
i18nInstance
6772
.use(initReactI18next)
6873
.init({
6974
resources,
@@ -80,4 +85,4 @@ i18n
8085
},
8186
});
8287

83-
export default i18n;
88+
export default i18nInstance;

src/pages/ai/ai-page.scss

Lines changed: 68 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $phone-width: 90%;
1010
width: 100%;
1111
padding-top: 60px;
1212
padding-bottom: 40px;
13-
background-color: $blue-300;
13+
background: linear-gradient(to right, $blue-300, $blue-400);
1414

1515
h1 {
1616
color: $white;
@@ -26,12 +26,33 @@ $phone-width: 90%;
2626
}
2727
}
2828

29+
.blue-div
30+
{
31+
background-color: $blue-400;
32+
}
33+
2934
.arrow-header {
35+
width: 100%;
36+
height: 240px;
37+
background: linear-gradient(to right, $blue-300, $blue-400);
38+
clip-path: polygon(0 0, 100% 0, 100% 100%);
39+
}
40+
41+
.white-arrow {
3042
width: 0;
3143
height: 0;
3244
border-style: solid;
3345
border-width: 0 100vw 240px 0;
34-
border-color: transparent $blue-300 transparent transparent;
46+
border-color: transparent white transparent transparent;
47+
transform: rotate(180deg);
48+
}
49+
50+
.white-arrow-reversed {
51+
width: 0;
52+
height: 0;
53+
border-style: solid;
54+
border-width: 240px 100vw 0 0;
55+
border-color: $white transparent transparent transparent;
3556
}
3657

3758
.beige-arrow {
@@ -51,59 +72,40 @@ $phone-width: 90%;
5172
transform: rotate(180deg);
5273
}
5374

54-
.beige-content {
75+
.blue-content {
5576
width: 100%;
56-
background-color: $beige;
77+
background-color: $blue-400;
5778
padding-left: 20%;
5879
padding-right: 20%;
80+
padding-top: 40px;
81+
padding-bottom: 40px;
5982

60-
.table-wrapper {
61-
.use-case-table {
62-
display: flex;
63-
justify-content: space-between;
64-
align-items: stretch;
65-
border: 2px solid black;
66-
67-
.content {
68-
padding: 1rem;
69-
text-align: left;
70-
flex: 1;
71-
}
72-
73-
.table-separator {
74-
width: 2px;
75-
background-color: black;
76-
}
77-
78-
li {
79-
font-size: 18px;
80-
text-align: left;
81-
list-style-position: outside;
82-
margin-left: 1rem;
83-
84-
&::marker {
85-
color: $blue-300;
86-
}
87-
}
83+
h2 {
84+
color: $white;
85+
}
8886

89-
ul {
90-
flex: 1;
91-
padding-left: 20px;
92-
margin: 0;
93-
}
94-
}
87+
p {
88+
color: $white;
89+
}
9590

96-
.table-end {
97-
border: 2px solid black;
98-
border-top: none;
99-
font-size: 18px;
100-
font-weight: 600;
101-
padding: 0.5rem;
102-
}
91+
.km-unordered-list-component {
92+
margin-top: 40px;
10393
}
10494

95+
.table-end {
96+
color: $white;
97+
font-size: 18px;
98+
font-weight: 600;
99+
margin-top: 40px;
100+
}
105101

106102
}
103+
104+
.benefits-section {
105+
h2 {
106+
color: $blue-400;
107+
}
108+
}
107109

108110
.service-range {
109111
color: $white;
@@ -312,6 +314,14 @@ $phone-width: 90%;
312314
border-width: 0 100vw 60px 0;
313315
}
314316

317+
.white-arrow {
318+
border-width: 0 100vw 60px 0;
319+
}
320+
321+
.white-arrow-reversed {
322+
border-width: 60px 100vw 0 0;
323+
}
324+
315325
.beige-arrow {
316326
border-width: 0 100vw 60px 0;
317327
}
@@ -325,6 +335,11 @@ $phone-width: 90%;
325335
padding-right: 2rem;
326336
}
327337

338+
.blue-content {
339+
padding-left: 2rem;
340+
padding-right: 2rem;
341+
}
342+
328343
.service-range {
329344
.content {
330345
.normal-text-wrapper {
@@ -442,6 +457,14 @@ $phone-width: 90%;
442457
border-width: 0 100vw 120px 0;
443458
}
444459

460+
.white-arrow {
461+
border-width: 0 100vw 120px 0;
462+
}
463+
464+
.white-arrow-reversed {
465+
border-width: 120px 100vw 0 0;
466+
}
467+
445468
.beige-arrow {
446469
border-width: 0 100vw 120px 0;
447470
}

0 commit comments

Comments
 (0)