hds-web 1.37.5 → 1.37.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/dist/index.css +2 -2
- package/dist/index.es.css +2 -2
- package/dist/index.es.js +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/HDS/components/Footers/v3Footer.js +23 -41
- package/src/styles/tailwind.css +18 -8
package/package.json
CHANGED
@@ -95,7 +95,9 @@ const socialShare = [
|
|
95
95
|
|
96
96
|
export default function V3Footer(props) {
|
97
97
|
const [isError, setIsError] = useState(false);
|
98
|
+
|
98
99
|
const [isItems, setIsItems] = useState(null);
|
100
|
+
|
99
101
|
useEffect(() => {
|
100
102
|
fetch("https://status.hasura.io/api/v2/status.json")
|
101
103
|
.then((res) => res.json())
|
@@ -109,6 +111,13 @@ export default function V3Footer(props) {
|
|
109
111
|
}
|
110
112
|
);
|
111
113
|
}, []);
|
114
|
+
|
115
|
+
const isDarkMode = props?.isDarkMode;
|
116
|
+
|
117
|
+
const logoUrl = isDarkMode
|
118
|
+
? `https://res.cloudinary.com/dh8fp23nd/image/upload/v1718878031/hasura_dark_mode_kjrlxi.svg`
|
119
|
+
: `https://res.cloudinary.com/dh8fp23nd/image/upload/v1686659126/website%20v3/hasura-primary_y9cdnn.svg`;
|
120
|
+
|
112
121
|
return (
|
113
122
|
<div>
|
114
123
|
<div className="db-s:flex justify-between gap-10 db-s:gap-20 db:gap-40">
|
@@ -116,7 +125,8 @@ export default function V3Footer(props) {
|
|
116
125
|
<a href={props.brandLink} className="">
|
117
126
|
<img
|
118
127
|
className="max-w-[125px]"
|
119
|
-
src={
|
128
|
+
src={logoUrl}
|
129
|
+
loading="lazy"
|
120
130
|
alt={props.brandAlt}
|
121
131
|
/>
|
122
132
|
</a>
|
@@ -126,7 +136,7 @@ export default function V3Footer(props) {
|
|
126
136
|
<div key={index} className="min-w-[130px] db-s:min-w-fit">
|
127
137
|
<Typography
|
128
138
|
textStyle="body3c-semi-bold"
|
129
|
-
className="text-neutral-600"
|
139
|
+
className={isDarkMode ? "text-neutral-400" : "text-neutral-600"}
|
130
140
|
>
|
131
141
|
{footerLink.title}
|
132
142
|
</Typography>
|
@@ -134,7 +144,11 @@ export default function V3Footer(props) {
|
|
134
144
|
<a href={link.linkUrl}>
|
135
145
|
<Typography
|
136
146
|
textStyle="body3"
|
137
|
-
className=
|
147
|
+
className={
|
148
|
+
isDarkMode
|
149
|
+
? "text-neutral-400 mt-2 tb:mt-4 hover:text-neutral-600"
|
150
|
+
: "text-neutral-600 mt-2 tb:mt-4 hover:text-neutral-1000"
|
151
|
+
}
|
138
152
|
>
|
139
153
|
{link.linkText}
|
140
154
|
</Typography>
|
@@ -163,7 +177,7 @@ export default function V3Footer(props) {
|
|
163
177
|
<a href="https://status.hasura.io/" className="">
|
164
178
|
<div className=" bg-neutral-0 rounded-full shadow hover:shadow-lg transition-all duration-300 px-4 py-2 inline-flex justify-center items-center">
|
165
179
|
<div className="w-4 h-4 bg-green-400 rounded-full mr-2"></div>
|
166
|
-
<Typography textStyle="body3" className="text-neutral-1000">
|
180
|
+
<Typography textStyle="body3" className={"text-neutral-1000"}>
|
167
181
|
{isItems?.status.description}
|
168
182
|
</Typography>
|
169
183
|
</div>
|
@@ -173,7 +187,11 @@ export default function V3Footer(props) {
|
|
173
187
|
<div>
|
174
188
|
<Typography
|
175
189
|
textStyle="body3c"
|
176
|
-
className=
|
190
|
+
className={
|
191
|
+
isDarkMode
|
192
|
+
? "text-neutral-400 pt-4 tb-m:pt-0"
|
193
|
+
: "text-neutral-600 pt-4 tb-m:pt-0"
|
194
|
+
}
|
177
195
|
>
|
178
196
|
© {new Date().getFullYear()} Hasura Inc. All rights reserved
|
179
197
|
</Typography>
|
@@ -250,14 +268,6 @@ V3Footer.defaultProps = {
|
|
250
268
|
linkText: "Hasura Hub",
|
251
269
|
linkUrl: "https://hasura.io/hub/",
|
252
270
|
},
|
253
|
-
// {
|
254
|
-
// linkText: 'GraphQL Hub',
|
255
|
-
// linkUrl: '#',
|
256
|
-
// },
|
257
|
-
// {
|
258
|
-
// linkText: 'Guides',
|
259
|
-
// linkUrl: '#',
|
260
|
-
// },
|
261
271
|
{
|
262
272
|
linkText: "Changelog",
|
263
273
|
linkUrl: "https://github.com/hasura/graphql-engine/releases/",
|
@@ -275,10 +285,6 @@ V3Footer.defaultProps = {
|
|
275
285
|
linkText: "Blog",
|
276
286
|
linkUrl: "https://hasura.io/blog",
|
277
287
|
},
|
278
|
-
// {
|
279
|
-
// linkText: 'Tech Talks',
|
280
|
-
// linkUrl: '#',
|
281
|
-
// },
|
282
288
|
{
|
283
289
|
linkText: "Tutorials",
|
284
290
|
linkUrl: "https://hasura.io/learn/",
|
@@ -300,18 +306,10 @@ V3Footer.defaultProps = {
|
|
300
306
|
linkText: "Our Story",
|
301
307
|
linkUrl: "https://hasura.io/about/",
|
302
308
|
},
|
303
|
-
// {
|
304
|
-
// linkText: 'Newsroom',
|
305
|
-
// linkUrl: '#',
|
306
|
-
// },
|
307
309
|
{
|
308
310
|
linkText: "Careers",
|
309
311
|
linkUrl: "https://hasura.io/careers/",
|
310
312
|
},
|
311
|
-
// {
|
312
|
-
// linkText: 'Partners',
|
313
|
-
// linkUrl: '#',
|
314
|
-
// },
|
315
313
|
{
|
316
314
|
linkText: "Partners",
|
317
315
|
linkUrl: "https://hasura.io/partners",
|
@@ -324,10 +322,6 @@ V3Footer.defaultProps = {
|
|
324
322
|
linkText: "Privacy Policy",
|
325
323
|
linkUrl: "https://hasura.io/legal/hasura-privacy-policy",
|
326
324
|
},
|
327
|
-
// {
|
328
|
-
// linkText: 'Brand',
|
329
|
-
// linkUrl: 'https://hasura.io/brand/',
|
330
|
-
// },
|
331
325
|
],
|
332
326
|
},
|
333
327
|
{
|
@@ -341,18 +335,6 @@ V3Footer.defaultProps = {
|
|
341
335
|
linkText: "Discord",
|
342
336
|
linkUrl: "https://discord.com/invite/hasura",
|
343
337
|
},
|
344
|
-
// {
|
345
|
-
// linkText: 'Forum',
|
346
|
-
// linkUrl: '#',
|
347
|
-
// },
|
348
|
-
// {
|
349
|
-
// linkText: 'Meetup',
|
350
|
-
// linkUrl: '#',
|
351
|
-
// },
|
352
|
-
// {
|
353
|
-
// linkText: 'Support',
|
354
|
-
// linkUrl: '#',
|
355
|
-
// },
|
356
338
|
],
|
357
339
|
},
|
358
340
|
{
|
package/src/styles/tailwind.css
CHANGED
@@ -1774,10 +1774,18 @@ select{
|
|
1774
1774
|
max-height: 26.25;
|
1775
1775
|
}
|
1776
1776
|
|
1777
|
+
.max-h-\[36px\]{
|
1778
|
+
max-height: 36px;
|
1779
|
+
}
|
1780
|
+
|
1777
1781
|
.max-h-\[40px\]{
|
1778
1782
|
max-height: 40px;
|
1779
1783
|
}
|
1780
1784
|
|
1785
|
+
.max-h-\[42px\]{
|
1786
|
+
max-height: 42px;
|
1787
|
+
}
|
1788
|
+
|
1781
1789
|
.max-h-\[44px\]{
|
1782
1790
|
max-height: 44px;
|
1783
1791
|
}
|
@@ -1802,14 +1810,6 @@ select{
|
|
1802
1810
|
max-height: 100vh;
|
1803
1811
|
}
|
1804
1812
|
|
1805
|
-
.max-h-\[42px\]{
|
1806
|
-
max-height: 42px;
|
1807
|
-
}
|
1808
|
-
|
1809
|
-
.max-h-\[36px\]{
|
1810
|
-
max-height: 36px;
|
1811
|
-
}
|
1812
|
-
|
1813
1813
|
.min-h-\[12px\]{
|
1814
1814
|
min-height: 12px;
|
1815
1815
|
}
|
@@ -10202,6 +10202,16 @@ select{
|
|
10202
10202
|
color: rgb(0 6 21 / var(--tw-text-opacity));
|
10203
10203
|
}
|
10204
10204
|
|
10205
|
+
.hover\:text-neutral-200:hover{
|
10206
|
+
--tw-text-opacity: 1;
|
10207
|
+
color: rgb(229 231 235 / var(--tw-text-opacity));
|
10208
|
+
}
|
10209
|
+
|
10210
|
+
.hover\:text-neutral-600:hover{
|
10211
|
+
--tw-text-opacity: 1;
|
10212
|
+
color: rgb(77 87 97 / var(--tw-text-opacity));
|
10213
|
+
}
|
10214
|
+
|
10205
10215
|
.hover\:shadow:hover{
|
10206
10216
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
10207
10217
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|