@doyourjob/gravity-ui-page-constructor-addons 2.1.24 → 2.1.25-dev.1
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/build/cjs/components/Navigation/components/Navigation/Navigation.d.ts +2 -2
- package/build/cjs/components/Navigation/components/Navigation/NavigationItem/NavigationItem.d.ts +2 -2
- package/build/cjs/components/Navigation/components/Navigation/NavigationItem/NavigationItem.js +2 -2
- package/build/cjs/components/Navigation/components/Navigation/NavigationItemsList/NavigationItemsList.js +1 -1
- package/build/cjs/components/NewHeader/NewHeader.css +162 -0
- package/build/cjs/components/NewHeader/NewHeader.d.ts +13 -0
- package/build/cjs/components/NewHeader/NewHeader.js +79 -0
- package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.css +30 -0
- package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.js +20 -0
- package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css +79 -0
- package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.js +22 -0
- package/build/cjs/components/NewHeader/components/NHLoginButton/NHLoginButton.d.ts +10 -0
- package/build/cjs/components/NewHeader/components/NHLoginButton/NHLoginButton.js +46 -0
- package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.css +45 -0
- package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.js +12 -0
- package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.css +8 -0
- package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.js +17 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.css +47 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.d.ts +14 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.js +25 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.css +75 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.js +30 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.css +55 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.d.ts +9 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.js +47 -0
- package/build/cjs/components/NewHeader/components/NHNavigation/NHNavigation.css +23 -0
- package/build/cjs/components/NewHeader/components/NHNavigation/NHNavigation.d.ts +10 -0
- package/build/cjs/components/NewHeader/components/NHNavigation/NHNavigation.js +74 -0
- package/build/cjs/components/NewHeader/components/NHNavigationItem/NHNavigationItem.css +81 -0
- package/build/cjs/components/NewHeader/components/NHNavigationItem/NHNavigationItem.d.ts +12 -0
- package/build/cjs/components/NewHeader/components/NHNavigationItem/NHNavigationItem.js +29 -0
- package/build/cjs/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.css +10 -0
- package/build/cjs/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.d.ts +9 -0
- package/build/cjs/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.js +18 -0
- package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.css +111 -0
- package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +12 -0
- package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.js +28 -0
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +113 -0
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +65 -0
- package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css +191 -0
- package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.js +42 -0
- package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css +49 -0
- package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.js +20 -0
- package/build/cjs/components/NewHeader/components/NHTag/NHTag.css +21 -0
- package/build/cjs/components/NewHeader/components/NHTag/NHTag.d.ts +6 -0
- package/build/cjs/components/NewHeader/components/NHTag/NHTag.js +22 -0
- package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css +81 -0
- package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.js +21 -0
- package/build/cjs/components/NewHeader/constants.d.ts +7 -0
- package/build/cjs/components/NewHeader/constants.js +11 -0
- package/build/cjs/components/NewHeader/contexts/route-change.d.ts +3 -0
- package/build/cjs/components/NewHeader/contexts/route-change.js +6 -0
- package/build/cjs/components/NewHeader/models.d.ts +199 -0
- package/build/cjs/components/NewHeader/models.js +20 -0
- package/build/cjs/components/NewHeader/styles/mixins.css +0 -0
- package/build/cjs/components/NewHeader/styles/variables.css +5 -0
- package/build/cjs/components/index.d.ts +1 -0
- package/build/cjs/components/index.js +1 -0
- package/build/esm/components/Navigation/components/Navigation/Navigation.d.ts +2 -2
- package/build/esm/components/Navigation/components/Navigation/NavigationItem/NavigationItem.d.ts +2 -2
- package/build/esm/components/Navigation/components/Navigation/NavigationItem/NavigationItem.js +2 -2
- package/build/esm/components/Navigation/components/Navigation/NavigationItemsList/NavigationItemsList.js +1 -1
- package/build/esm/components/NewHeader/NewHeader.css +162 -0
- package/build/esm/components/NewHeader/NewHeader.d.ts +14 -0
- package/build/esm/components/NewHeader/NewHeader.js +75 -0
- package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.css +30 -0
- package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.js +16 -0
- package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css +79 -0
- package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.js +18 -0
- package/build/esm/components/NewHeader/components/NHLoginButton/NHLoginButton.d.ts +10 -0
- package/build/esm/components/NewHeader/components/NHLoginButton/NHLoginButton.js +41 -0
- package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.css +45 -0
- package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.js +8 -0
- package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.css +8 -0
- package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.js +13 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.css +47 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.d.ts +15 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.js +21 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.css +75 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.js +26 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.css +55 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.d.ts +10 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.js +43 -0
- package/build/esm/components/NewHeader/components/NHNavigation/NHNavigation.css +23 -0
- package/build/esm/components/NewHeader/components/NHNavigation/NHNavigation.d.ts +11 -0
- package/build/esm/components/NewHeader/components/NHNavigation/NHNavigation.js +70 -0
- package/build/esm/components/NewHeader/components/NHNavigationItem/NHNavigationItem.css +81 -0
- package/build/esm/components/NewHeader/components/NHNavigationItem/NHNavigationItem.d.ts +13 -0
- package/build/esm/components/NewHeader/components/NHNavigationItem/NHNavigationItem.js +25 -0
- package/build/esm/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.css +10 -0
- package/build/esm/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.d.ts +10 -0
- package/build/esm/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.js +14 -0
- package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.css +111 -0
- package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +13 -0
- package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.js +24 -0
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +113 -0
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +61 -0
- package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css +191 -0
- package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.js +38 -0
- package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css +49 -0
- package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.js +16 -0
- package/build/esm/components/NewHeader/components/NHTag/NHTag.css +21 -0
- package/build/esm/components/NewHeader/components/NHTag/NHTag.d.ts +7 -0
- package/build/esm/components/NewHeader/components/NHTag/NHTag.js +18 -0
- package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css +81 -0
- package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.js +17 -0
- package/build/esm/components/NewHeader/constants.d.ts +7 -0
- package/build/esm/components/NewHeader/constants.js +8 -0
- package/build/esm/components/NewHeader/contexts/route-change.d.ts +3 -0
- package/build/esm/components/NewHeader/contexts/route-change.js +2 -0
- package/build/esm/components/NewHeader/models.d.ts +199 -0
- package/build/esm/components/NewHeader/models.js +17 -0
- package/build/esm/components/NewHeader/styles/mixins.css +0 -0
- package/build/esm/components/NewHeader/styles/variables.css +5 -0
- package/build/esm/components/index.d.ts +1 -0
- package/build/esm/components/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-nh-resources-popup {
|
|
4
|
+
background: var(--g-color-base-float);
|
|
5
|
+
box-shadow: 0 4px 24px var(--g-color-base-generic), 0 2px 8px var(--g-color-base-generic);
|
|
6
|
+
max-height: calc(100vh - 64px - 64px);
|
|
7
|
+
overflow: auto;
|
|
8
|
+
max-width: 1200px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
border-radius: var(--pc-border-radius, 24px);
|
|
11
|
+
scrollbar-width: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pc-addons-nh-resources-popup::-webkit-scrollbar {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pc-addons-nh-resources-popup__container {
|
|
19
|
+
padding: 0;
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pc-addons-nh-resources-popup__wrap {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
flex: 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pc-addons-nh-resources-popup__wrap > div + div {
|
|
30
|
+
border-top: 1px solid #e4ebf0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pc-addons-nh-resources-popup__group {
|
|
34
|
+
padding: 32px 20px;
|
|
35
|
+
flex: 1;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 24px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pc-addons-nh-resources-popup__title {
|
|
42
|
+
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
43
|
+
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
margin-bottom: 8px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pc-addons-nh-resources-popup__subtitle {
|
|
49
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
50
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
color: #9fb1bd;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pc-addons-nh-resources-popup__events {
|
|
56
|
+
width: 300px;
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
padding: 32px;
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
background-color: #f2f6f9;
|
|
62
|
+
gap: 8px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.pc-addons-nh-resources-popup__events-title {
|
|
66
|
+
font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
|
|
67
|
+
line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
color: #9fb1bd;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pc-addons-nh-resources-popup__banner {
|
|
73
|
+
background-color: #f2f6f9;
|
|
74
|
+
border-radius: 16px;
|
|
75
|
+
display: flex;
|
|
76
|
+
padding: 16px;
|
|
77
|
+
gap: 24px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.pc-addons-nh-resources-popup__banner-container-image {
|
|
81
|
+
width: 263px;
|
|
82
|
+
height: 148px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.pc-addons-nh-resources-popup__banner-image {
|
|
86
|
+
display: block;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 100%;
|
|
89
|
+
object-fit: cover;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.pc-addons-nh-resources-popup__banner-container-icon {
|
|
93
|
+
height: 20px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.pc-addons-nh-resources-popup__banner-icon {
|
|
97
|
+
display: block;
|
|
98
|
+
height: 100%;
|
|
99
|
+
object-fit: contain;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.pc-addons-nh-resources-popup__banner-wrap {
|
|
103
|
+
flex: 1;
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
justify-content: space-between;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.pc-addons-nh-resources-popup__banner-content {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
gap: 8px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.pc-addons-nh-resources-popup__banner-title {
|
|
116
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
117
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
118
|
+
font-weight: 500;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.pc-addons-nh-resources-popup__banner-description {
|
|
122
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
123
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
124
|
+
font-weight: 500;
|
|
125
|
+
color: #9fb1bd;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.pc-addons-nh-resources-popup__event-card {
|
|
129
|
+
position: relative;
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
border-radius: 16px;
|
|
133
|
+
border: 1px solid #e4ebf0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.pc-addons-nh-resources-popup__event-card-tag {
|
|
137
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
138
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
139
|
+
position: absolute;
|
|
140
|
+
top: 12px;
|
|
141
|
+
left: 12px;
|
|
142
|
+
padding: 8px 12px;
|
|
143
|
+
border-radius: 8px;
|
|
144
|
+
background-color: #ffffff;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.pc-addons-nh-resources-popup__event-card-container-image {
|
|
148
|
+
width: 100%;
|
|
149
|
+
height: 150px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.pc-addons-nh-resources-popup__event-card-image {
|
|
153
|
+
display: block;
|
|
154
|
+
width: 100%;
|
|
155
|
+
height: 100%;
|
|
156
|
+
object-fit: cover;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.pc-addons-nh-resources-popup__event-card-wrap {
|
|
160
|
+
display: flex;
|
|
161
|
+
flex-direction: column;
|
|
162
|
+
gap: 4px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.pc-addons-nh-resources-popup__event-card-content {
|
|
166
|
+
padding: 16px;
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
justify-content: center;
|
|
170
|
+
gap: 16px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.pc-addons-nh-resources-popup__event-card-title {
|
|
174
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
175
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
176
|
+
font-weight: 500;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.pc-addons-nh-resources-popup__event-card-date {
|
|
180
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
181
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
182
|
+
font-weight: 500;
|
|
183
|
+
color: #9fb1bd;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.pc-addons-nh-resources-popup__event-card-location {
|
|
187
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
188
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
189
|
+
font-weight: 500;
|
|
190
|
+
color: #9fb1bd;
|
|
191
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Col, Grid, GridColumnSize, Image, Row, getLinkProps, } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { block } from '../../../../utils/cn';
|
|
4
|
+
import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
|
|
5
|
+
import './NHResourcesPopup.css';
|
|
6
|
+
const b = block('nh-resources-popup');
|
|
7
|
+
const EventCard = ({ tag, image, date, title, location }) => {
|
|
8
|
+
return (React.createElement("div", { className: b('event-card') },
|
|
9
|
+
React.createElement("div", { className: b('event-card-tag') }, tag),
|
|
10
|
+
React.createElement(Image, { className: b('event-card-image'), containerClassName: b('event-card-container-image'), src: image }),
|
|
11
|
+
React.createElement("div", { className: b('event-card-content') },
|
|
12
|
+
React.createElement("div", { className: b('event-card-wrap') },
|
|
13
|
+
React.createElement("div", { className: b('event-card-date') }, date),
|
|
14
|
+
React.createElement("div", { className: b('event-card-title') }, title)),
|
|
15
|
+
React.createElement("div", { className: b('event-card-location') }, location))));
|
|
16
|
+
};
|
|
17
|
+
export const NHResourcesPopup = ({ groups, banner, events }) => (React.createElement(Grid, { className: b(), containerClass: b('container') },
|
|
18
|
+
React.createElement("div", { className: b('wrap') },
|
|
19
|
+
groups.map((group) => (React.createElement("div", { className: b('group'), key: group.title },
|
|
20
|
+
React.createElement(Row, null,
|
|
21
|
+
React.createElement(Col, { sizes: { [GridColumnSize.Md]: 8, [GridColumnSize.All]: 12 } },
|
|
22
|
+
React.createElement("a", Object.assign({ href: group.url, className: b('title') }, getLinkProps(group.url)), group.title),
|
|
23
|
+
React.createElement("div", { className: b('subtitle') }, group.subtitle)),
|
|
24
|
+
React.createElement(Col, { sizes: { [GridColumnSize.Md]: 4, [GridColumnSize.All]: 12 } })),
|
|
25
|
+
React.createElement(Row, null, group.items.map((item) => (React.createElement(NHPopupItem, Object.assign({ key: item.title }, item)))))))),
|
|
26
|
+
banner && (React.createElement("div", { className: b('group') },
|
|
27
|
+
React.createElement(Row, null,
|
|
28
|
+
React.createElement(Col, null,
|
|
29
|
+
React.createElement("a", Object.assign({ href: banner.url, className: b('banner') }, getLinkProps(banner.url)),
|
|
30
|
+
React.createElement(Image, { className: b('banner-image'), containerClassName: b('banner-container-image'), src: banner.image }),
|
|
31
|
+
React.createElement("div", { className: b('banner-wrap') },
|
|
32
|
+
React.createElement(Image, { className: b('banner-icon'), containerClassName: b('banner-container-icon'), src: banner.icon }),
|
|
33
|
+
React.createElement("div", { className: b('banner-content') },
|
|
34
|
+
React.createElement("div", { className: b('banner-title') }, banner.title),
|
|
35
|
+
React.createElement("div", { className: b('banner-description') }, banner.description))))))))),
|
|
36
|
+
events && (React.createElement("div", { className: b('events') },
|
|
37
|
+
React.createElement("div", { className: b('events-title') }, events.title),
|
|
38
|
+
events.items.map((event) => (React.createElement(EventCard, Object.assign({ key: event.title }, event))))))));
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-nh-solutions-popup {
|
|
4
|
+
background: var(--g-color-base-float);
|
|
5
|
+
box-shadow: 0 4px 24px var(--g-color-base-generic), 0 2px 8px var(--g-color-base-generic);
|
|
6
|
+
max-height: calc(100vh - 64px - 64px);
|
|
7
|
+
overflow: auto;
|
|
8
|
+
max-width: 1200px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
border-radius: var(--pc-border-radius, 24px);
|
|
11
|
+
scrollbar-width: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pc-addons-nh-solutions-popup::-webkit-scrollbar {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pc-addons-nh-solutions-popup__container {
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.pc-addons-nh-solutions-popup > div + div {
|
|
23
|
+
border-top: 1px solid #e4ebf0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pc-addons-nh-solutions-popup__wrap {
|
|
27
|
+
padding: 24px;
|
|
28
|
+
gap: 24px;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pc-addons-nh-solutions-popup__head {
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: 24px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.pc-addons-nh-solutions-popup__title {
|
|
39
|
+
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
40
|
+
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.pc-addons-nh-solutions-popup__subtitle {
|
|
45
|
+
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
46
|
+
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
47
|
+
font-weight: 700;
|
|
48
|
+
color: #e0e0e0;
|
|
49
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Col, Grid, GridColumnSize, Row } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { block } from '../../../../utils/cn';
|
|
4
|
+
import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
|
|
5
|
+
import './NHSolutionsPopup.css';
|
|
6
|
+
const b = block('nh-solutions-popup');
|
|
7
|
+
export const NHSolutionsPopup = ({ sections }) => (React.createElement(Grid, { className: b(), containerClass: b('container') }, sections.map((section) => (React.createElement(Row, { key: section.title },
|
|
8
|
+
React.createElement(Col, { className: b('wrap') },
|
|
9
|
+
React.createElement(Row, null,
|
|
10
|
+
React.createElement(Col, { className: b('head') },
|
|
11
|
+
React.createElement("div", { className: b('title') }, section.title),
|
|
12
|
+
React.createElement("div", { className: b('subtitle') }, section.subtitle))),
|
|
13
|
+
React.createElement(Row, null, section.items.map((item) => (React.createElement(NHPopupItem, Object.assign({ key: item.title }, item, { hover: true, sizes: {
|
|
14
|
+
[GridColumnSize.Md]: 4,
|
|
15
|
+
[GridColumnSize.All]: 12,
|
|
16
|
+
} })))))))))));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-nh-navigation-tag {
|
|
4
|
+
font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
|
|
5
|
+
line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
|
|
6
|
+
display: inline-block;
|
|
7
|
+
padding: 0 8px;
|
|
8
|
+
border-radius: 2px;
|
|
9
|
+
height: 20px;
|
|
10
|
+
line-height: 20px;
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
text-transform: capitalize;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pc-addons-nh-navigation-tag_size_s {
|
|
16
|
+
font-size: var(--g-text-caption-2-font-size, var(--pc-text-caption-2-font-size));
|
|
17
|
+
line-height: var(--g-text-caption-2-line-height, var(--pc-text-caption-2-line-height));
|
|
18
|
+
padding: 0 4px;
|
|
19
|
+
height: 16px;
|
|
20
|
+
line-height: 16px;
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ClassNameProps } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { NHNavigationTag as NHNavigationTagModel } from '../../models';
|
|
4
|
+
import './NHTag.css';
|
|
5
|
+
export interface NHNavigationTagProps extends NHNavigationTagModel, ClassNameProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const NHNavigationTag: ({ text, color, textColor, className, size, }: NHNavigationTagProps) => React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { block } from '../../../../utils/cn';
|
|
3
|
+
import { NHNavigationTagColor } from '../../models';
|
|
4
|
+
import './NHTag.css';
|
|
5
|
+
const b = block('nh-navigation-tag');
|
|
6
|
+
const getColor = (color) => {
|
|
7
|
+
switch (color) {
|
|
8
|
+
case NHNavigationTagColor.Yellow:
|
|
9
|
+
return 'var(--pc-addons-navigation-color-tag-yellow)';
|
|
10
|
+
case NHNavigationTagColor.Blue:
|
|
11
|
+
return 'var(--pc-addons-navigation-color-tag-blue)';
|
|
12
|
+
case NHNavigationTagColor.Green:
|
|
13
|
+
return 'var(--pc-addons-navigation-color-tag-green)';
|
|
14
|
+
default:
|
|
15
|
+
return color;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export const NHNavigationTag = ({ text, color = NHNavigationTagColor.Yellow, textColor, className, size = 'm', }) => (React.createElement("div", { className: b({ size }, className), style: { backgroundColor: getColor(color), color: textColor } }, text));
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-nh-why-popup {
|
|
4
|
+
background: var(--g-color-base-float);
|
|
5
|
+
box-shadow: 0 4px 24px var(--g-color-base-generic), 0 2px 8px var(--g-color-base-generic);
|
|
6
|
+
max-height: calc(100vh - 64px - 64px);
|
|
7
|
+
overflow: auto;
|
|
8
|
+
max-width: 900px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
border-radius: var(--pc-border-radius, 24px);
|
|
11
|
+
scrollbar-width: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pc-addons-nh-why-popup::-webkit-scrollbar {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pc-addons-nh-why-popup__container {
|
|
19
|
+
padding: 0;
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pc-addons-nh-why-popup__wrap {
|
|
24
|
+
padding: 20px;
|
|
25
|
+
display: flex;
|
|
26
|
+
gap: 16px;
|
|
27
|
+
flex: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pc-addons-nh-why-popup__group {
|
|
31
|
+
flex: 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pc-addons-nh-why-popup__title {
|
|
35
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
36
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
37
|
+
padding: 12px;
|
|
38
|
+
font-weight: 500;
|
|
39
|
+
color: #9fb1bd;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pc-addons-nh-why-popup__card {
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
width: 300px;
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
padding: 0;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
background-color: #f2f6f9;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.pc-addons-nh-why-popup__card-wrap {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
padding: 24px;
|
|
57
|
+
gap: 20px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pc-addons-nh-why-popup__card-title {
|
|
61
|
+
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
62
|
+
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
63
|
+
color: #9fb1bd;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pc-addons-nh-why-popup__card-description {
|
|
67
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
68
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
69
|
+
color: #9fb1bd;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pc-addons-nh-why-popup__card-container-image {
|
|
73
|
+
width: 100%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.pc-addons-nh-why-popup__card-image {
|
|
77
|
+
width: 100%;
|
|
78
|
+
aspect-ratio: 300/244;
|
|
79
|
+
background-color: #99a5ae;
|
|
80
|
+
display: block;
|
|
81
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Col, Grid, GridColumnSize, Image, Row } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { block } from '../../../../utils/cn';
|
|
4
|
+
import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
|
|
5
|
+
import './NHWhyPopup.css';
|
|
6
|
+
const b = block('nh-why-popup');
|
|
7
|
+
export const NHWhyPopup = ({ groups, card }) => (React.createElement(Grid, { className: b(), containerClass: b('container') },
|
|
8
|
+
React.createElement("div", { className: b('wrap') }, groups.map((group) => (React.createElement("div", { className: b('group'), key: group.title },
|
|
9
|
+
React.createElement(Row, null,
|
|
10
|
+
React.createElement(Col, null,
|
|
11
|
+
React.createElement("div", { className: b('title') }, group.title))),
|
|
12
|
+
React.createElement(Row, null, group.items.map((item) => (React.createElement(NHPopupItem, Object.assign({ key: item.title }, item, { sizes: { [GridColumnSize.All]: 12 } }))))))))),
|
|
13
|
+
card && (React.createElement("div", { className: b('card') },
|
|
14
|
+
React.createElement(Image, { className: b('card-image'), containerClassName: b('card-container-image'), src: card.image }),
|
|
15
|
+
React.createElement("div", { className: b('card-wrap') },
|
|
16
|
+
React.createElement("div", { className: b('card-title') }, card.title),
|
|
17
|
+
React.createElement("div", { className: b('card-description') }, card.description))))));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GridColumnSize } from '@doyourjob/gravity-ui-page-constructor';
|
|
2
|
+
export const SWITCH_MENU_TAB_TIMEOUT = 200;
|
|
3
|
+
export const NO_MENU_TAB_SELECTED = -1;
|
|
4
|
+
export const DefaultCategorizedItemSizes = {
|
|
5
|
+
[GridColumnSize.Lg]: 4,
|
|
6
|
+
[GridColumnSize.Sm]: 6,
|
|
7
|
+
[GridColumnSize.All]: 12,
|
|
8
|
+
};
|