@0xchain/footer 1.0.0 → 1.1.0-beta.2
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.js +28 -28
- package/package.json +4 -4
- package/src/index.tsx +8 -8
package/dist/index.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as e, jsxs as
|
|
2
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import c from "@0xchain/image";
|
|
4
|
-
import
|
|
5
|
-
import { useLocale as
|
|
4
|
+
import a from "@0xchain/link";
|
|
5
|
+
import { useLocale as s } from "next-intl";
|
|
6
6
|
import l from "@0xchain/translation";
|
|
7
|
-
import { Mail as
|
|
7
|
+
import { Mail as i } from "lucide-react";
|
|
8
8
|
import { useState as n, useEffect as f } from "react";
|
|
9
|
-
function
|
|
10
|
-
const [
|
|
9
|
+
function d() {
|
|
10
|
+
const [t, o] = n("");
|
|
11
11
|
return f(() => {
|
|
12
12
|
o((/* @__PURE__ */ new Date()).getFullYear().toString());
|
|
13
|
-
}, []),
|
|
13
|
+
}, []), t;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */ e("footer", { className: "md:bg-
|
|
18
|
-
/* @__PURE__ */
|
|
15
|
+
function g() {
|
|
16
|
+
const t = s();
|
|
17
|
+
return /* @__PURE__ */ e("footer", { className: "md:bg-card text-xs w-full p-3 mt-3", children: /* @__PURE__ */ r("div", { className: "max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3", children: [
|
|
18
|
+
/* @__PURE__ */ r("div", { className: "w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between", children: [
|
|
19
19
|
/* @__PURE__ */ e(c, { src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`, width: 116, height: 32, objectFit: "contain" }),
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ r("div", { className: "text-muted-foreground", children: [
|
|
21
21
|
"© ",
|
|
22
|
-
|
|
22
|
+
d(),
|
|
23
23
|
" iChatGo ",
|
|
24
24
|
/* @__PURE__ */ e(l, { value: "allRightsReserved", parentKey: "footer" })
|
|
25
25
|
] })
|
|
26
26
|
] }),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */ e("div", { className: "text-
|
|
30
|
-
/* @__PURE__ */ e("div", { className: "text-
|
|
27
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2", children: [
|
|
28
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
29
|
+
/* @__PURE__ */ e("div", { className: "text-foreground", children: /* @__PURE__ */ e(l, { value: "product", parentKey: "footer" }) }),
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "text-muted-foreground flex flex-col gap-3", children: /* @__PURE__ */ e(a, { href: "/token-list", baseUrl: process.env.NEXT_PUBLIC_BASE_URL, children: /* @__PURE__ */ e(l, { value: "tokenList", parentKey: "footer" }) }) })
|
|
31
31
|
] }),
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */ e("div", { className: "text-
|
|
34
|
-
/* @__PURE__ */ e("div", { className: "text-
|
|
35
|
-
/* @__PURE__ */ e(
|
|
32
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
33
|
+
/* @__PURE__ */ e("div", { className: "text-foreground", children: /* @__PURE__ */ e(l, { value: "contactUs", parentKey: "footer" }) }),
|
|
34
|
+
/* @__PURE__ */ e("div", { className: "text-muted-foreground flex flex-col gap-3", children: /* @__PURE__ */ r(a, { href: "mailto:contact@ichatgo.ai", className: "flex items-center", children: [
|
|
35
|
+
/* @__PURE__ */ e(i, { className: "w-4 h-4 mr-1" }),
|
|
36
36
|
"contact@ichatgo.ai"
|
|
37
37
|
] }) })
|
|
38
38
|
] }),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */ e("div", { className: "text-
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
/* @__PURE__ */ e(
|
|
44
|
-
/* @__PURE__ */ e(
|
|
39
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
40
|
+
/* @__PURE__ */ e("div", { className: "text-foreground", children: /* @__PURE__ */ e(l, { value: "company", parentKey: "footer" }) }),
|
|
41
|
+
/* @__PURE__ */ r("div", { className: "text-muted-foreground flex flex-col gap-3", children: [
|
|
42
|
+
/* @__PURE__ */ e(a, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${t}/privacy-policy.html`, children: /* @__PURE__ */ e(l, { value: "privacyPolicy", parentKey: "footer" }) }),
|
|
43
|
+
/* @__PURE__ */ e(a, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${t}/terms-of-service.html`, children: /* @__PURE__ */ e(l, { value: "termsOfService", parentKey: "footer" }) }),
|
|
44
|
+
/* @__PURE__ */ e(a, { href: `${process.env.NEXT_PUBLIC_OFFICIAL_URL}/${t}`, children: /* @__PURE__ */ e(l, { value: "aboutUs", parentKey: "footer" }) })
|
|
45
45
|
] })
|
|
46
46
|
] })
|
|
47
47
|
] })
|
|
48
48
|
] }) });
|
|
49
49
|
}
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
g as default
|
|
52
52
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xchain/footer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.1.0-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"lucide-react": "0.539.0",
|
|
25
25
|
"react": "19.1.1",
|
|
26
26
|
"next-intl": "4.6.1",
|
|
27
|
-
"@0xchain/image": "1.0.
|
|
28
|
-
"@0xchain/translation": "1.0.
|
|
29
|
-
"@0xchain/link": "1.0.
|
|
27
|
+
"@0xchain/image": "1.1.0-beta.2",
|
|
28
|
+
"@0xchain/translation": "1.1.0-beta.2",
|
|
29
|
+
"@0xchain/link": "1.1.0-beta.2"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
package/src/index.tsx
CHANGED
|
@@ -8,22 +8,22 @@ import Year from './year';
|
|
|
8
8
|
export default function Footer() {
|
|
9
9
|
const locale = useLocale();
|
|
10
10
|
return (
|
|
11
|
-
<footer className='md:bg-
|
|
11
|
+
<footer className='md:bg-card text-xs w-full p-3 mt-3'>
|
|
12
12
|
<div className="max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3">
|
|
13
13
|
<div className="w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between">
|
|
14
14
|
<ImageBar src={`${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`} width={116} height={32} objectFit='contain'></ImageBar>
|
|
15
|
-
<div className='text-
|
|
15
|
+
<div className='text-muted-foreground'>© {Year()} iChatGo <Translation value="allRightsReserved" parentKey='footer' /></div>
|
|
16
16
|
</div>
|
|
17
17
|
<div className="flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2">
|
|
18
18
|
<div className="flex flex-col gap-3 py-3 md:py-0">
|
|
19
|
-
<div className="text-
|
|
20
|
-
<div className="text-
|
|
19
|
+
<div className="text-foreground"><Translation value="product" parentKey='footer' /></div>
|
|
20
|
+
<div className="text-muted-foreground flex flex-col gap-3">
|
|
21
21
|
<LinkBar href="/token-list" baseUrl={process.env.NEXT_PUBLIC_BASE_URL}><Translation value="tokenList" parentKey='footer' /></LinkBar>
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
24
|
<div className="flex flex-col gap-3 py-3 md:py-0">
|
|
25
|
-
<div className="text-
|
|
26
|
-
<div className="text-
|
|
25
|
+
<div className="text-foreground"><Translation value="contactUs" parentKey='footer' /></div>
|
|
26
|
+
<div className="text-muted-foreground flex flex-col gap-3">
|
|
27
27
|
<LinkBar href="mailto:contact@ichatgo.ai" className="flex items-center">
|
|
28
28
|
<Mail className="w-4 h-4 mr-1" />
|
|
29
29
|
contact@ichatgo.ai
|
|
@@ -31,8 +31,8 @@ export default function Footer() {
|
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
<div className="flex flex-col gap-3 py-3 md:py-0">
|
|
34
|
-
<div className="text-
|
|
35
|
-
<div className="text-
|
|
34
|
+
<div className="text-foreground"><Translation value="company" parentKey='footer' /></div>
|
|
35
|
+
<div className="text-muted-foreground flex flex-col gap-3">
|
|
36
36
|
<LinkBar href={`${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${locale}/privacy-policy.html`} >
|
|
37
37
|
<Translation value="privacyPolicy" parentKey='footer' />
|
|
38
38
|
</LinkBar>
|