@cloud-ru/uikit-product-error-pages 0.13.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1548 -0
- package/LICENSE +201 -0
- package/README.md +30 -0
- package/package.json +51 -0
- package/src/components/ErrorPage.tsx +208 -0
- package/src/components/constants.tsx +19 -0
- package/src/components/hooks.tsx +71 -0
- package/src/components/index.ts +1 -0
- package/src/components/styles.module.scss +164 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
@use '@sbercloud/figma-tokens-cloud-platform/build/scss/styles-theme-variables';
|
|
2
|
+
|
|
3
|
+
$breakpoint-mobile: 767px;
|
|
4
|
+
$breakpoint-tablet: 1023px;
|
|
5
|
+
$gear-wheel-rotation-period: 10s;
|
|
6
|
+
|
|
7
|
+
.wrapper {
|
|
8
|
+
--svgExclamationMark: #{styles-theme-variables.$sys-primary-accent-default};
|
|
9
|
+
--svgStroke: #{styles-theme-variables.$sys-neutral-decor-activated};
|
|
10
|
+
--svgBackground: #{styles-theme-variables.$sys-neutral-background1-level};
|
|
11
|
+
|
|
12
|
+
height: 100%;
|
|
13
|
+
border-radius: styles-theme-variables.$dimension-1m;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
padding: styles-theme-variables.$dimension-6m;
|
|
16
|
+
gap: styles-theme-variables.$dimension-6m;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
background-color: styles-theme-variables.$sys-neutral-background1-level;
|
|
21
|
+
|
|
22
|
+
@media (max-width: $breakpoint-mobile) {
|
|
23
|
+
padding: styles-theme-variables.$dimension-3m;
|
|
24
|
+
gap: styles-theme-variables.$dimension-3m;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.statusCode {
|
|
29
|
+
vertical-align: top;
|
|
30
|
+
margin-left: styles-theme-variables.$dimension-1m;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.leftSide {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
gap: styles-theme-variables.$dimension-3m;
|
|
37
|
+
|
|
38
|
+
@media (max-width: $breakpoint-mobile) {
|
|
39
|
+
height: 100%;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.textContainer {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
gap: styles-theme-variables.$dimension-3m;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.logo {
|
|
51
|
+
height: styles-theme-variables.$dimension-3m;
|
|
52
|
+
margin-bottom: styles-theme-variables.$dimension-3m;
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
|
|
55
|
+
svg {
|
|
56
|
+
height: 100%;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.actionsLink {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
gap: styles-theme-variables.$dimension-2m;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.buttonContainer {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: row;
|
|
69
|
+
gap: styles-theme-variables.$dimension-1m;
|
|
70
|
+
|
|
71
|
+
* > path {
|
|
72
|
+
fill: currentColor;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media (max-width: $breakpoint-mobile) {
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.rightSide {
|
|
81
|
+
align-self: flex-end;
|
|
82
|
+
justify-self: center;
|
|
83
|
+
width: 50%;
|
|
84
|
+
min-width: 500px;
|
|
85
|
+
max-width: 862px;
|
|
86
|
+
min-height: 0;
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
justify-content: flex-end;
|
|
90
|
+
align-items: flex-end;
|
|
91
|
+
|
|
92
|
+
@media (max-width: $breakpoint-tablet) {
|
|
93
|
+
justify-content: flex-start;
|
|
94
|
+
align-items: center;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
max-width: none;
|
|
97
|
+
width: 100%;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media (max-width: $breakpoint-mobile) {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@keyframes rotating {
|
|
106
|
+
from {
|
|
107
|
+
transform: rotate(0deg);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
to {
|
|
111
|
+
transform: rotate(-360deg);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.rotateSmall {
|
|
116
|
+
transform-origin: center;
|
|
117
|
+
transform-box: fill-box;
|
|
118
|
+
animation: rotating $gear-wheel-rotation-period linear infinite;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.rotateBig {
|
|
122
|
+
transform-origin: center;
|
|
123
|
+
transform-box: fill-box;
|
|
124
|
+
animation: rotating $gear-wheel-rotation-period linear infinite;
|
|
125
|
+
animation-direction: reverse;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.button {
|
|
129
|
+
@media (max-width: $breakpoint-mobile) {
|
|
130
|
+
width: 100%;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.pic {
|
|
135
|
+
max-width: 863px;
|
|
136
|
+
max-height: 520px;
|
|
137
|
+
|
|
138
|
+
@media (max-width: $breakpoint-tablet) {
|
|
139
|
+
max-height: 100%;
|
|
140
|
+
max-width: 100%;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.title {
|
|
145
|
+
@include styles-theme-variables.composite-var(styles-theme-variables.$sans-display-s);
|
|
146
|
+
|
|
147
|
+
box-sizing: border-box;
|
|
148
|
+
max-width: 100%;
|
|
149
|
+
margin: 0;
|
|
150
|
+
padding: 0;
|
|
151
|
+
overflow-wrap: break-word;
|
|
152
|
+
|
|
153
|
+
@media (max-width: $breakpoint-mobile) {
|
|
154
|
+
@include styles-theme-variables.composite-var(styles-theme-variables.$sans-headline-m);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.actionsTitle {
|
|
159
|
+
@include styles-theme-variables.composite-var(styles-theme-variables.$sans-body-l);
|
|
160
|
+
|
|
161
|
+
@media (max-width: $breakpoint-mobile) {
|
|
162
|
+
@include styles-theme-variables.composite-var(styles-theme-variables.$sans-body-m);
|
|
163
|
+
}
|
|
164
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|