@0xchain/footer 1.1.0-beta.6 → 1.1.0-beta.61
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/LICENSE +21 -0
- package/dist/index.js +36 -35
- package/package.json +20 -6
- package/src/index.tsx +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-present 0xchain
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.js
CHANGED
|
@@ -1,52 +1,53 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useLocale
|
|
6
|
-
import
|
|
7
|
-
import { Mail
|
|
8
|
-
import { useState
|
|
9
|
-
function
|
|
10
|
-
const [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, [])
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import ImageBar from "@0xchain/image";
|
|
4
|
+
import LinkBar from "@0xchain/link";
|
|
5
|
+
import { useLocale } from "@0xchain/i18n/react";
|
|
6
|
+
import Translation from "@0xchain/translation";
|
|
7
|
+
import { Mail } from "lucide-react";
|
|
8
|
+
import { useState, useEffect } from "react";
|
|
9
|
+
function Year() {
|
|
10
|
+
const [year, setYear] = useState("");
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
setYear((/* @__PURE__ */ new Date()).getFullYear().toString());
|
|
13
|
+
}, []);
|
|
14
|
+
return year;
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
16
|
+
function Footer() {
|
|
17
|
+
const locale = useLocale();
|
|
18
|
+
return /* @__PURE__ */ jsx("footer", { className: "md:bg-card text-xs w-full p-3 mt-3", children: /* @__PURE__ */ jsxs("div", { className: "max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3", children: [
|
|
19
|
+
/* @__PURE__ */ jsxs("div", { className: "w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between", children: [
|
|
20
|
+
/* @__PURE__ */ jsx(ImageBar, { src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`, width: 116, height: 32, objectFit: "contain" }),
|
|
21
|
+
/* @__PURE__ */ jsxs("div", { className: "text-muted-foreground", children: [
|
|
21
22
|
"© ",
|
|
22
|
-
|
|
23
|
+
Year(),
|
|
23
24
|
" iChatGo ",
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ jsx(Translation, { value: "allRightsReserved", parentKey: "footer" })
|
|
25
26
|
] })
|
|
26
27
|
] }),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2", children: [
|
|
29
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
30
|
+
/* @__PURE__ */ jsx("div", { className: "text-foreground", children: /* @__PURE__ */ jsx(Translation, { value: "product", parentKey: "footer" }) }),
|
|
31
|
+
/* @__PURE__ */ jsx("div", { className: "text-muted-foreground flex flex-col gap-3", children: /* @__PURE__ */ jsx(LinkBar, { href: "/token-list", baseUrl: process.env.NEXT_PUBLIC_APP_URL, children: /* @__PURE__ */ jsx(Translation, { value: "tokenList", parentKey: "footer" }) }) })
|
|
31
32
|
] }),
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
34
|
+
/* @__PURE__ */ jsx("div", { className: "text-foreground", children: /* @__PURE__ */ jsx(Translation, { value: "contactUs", parentKey: "footer" }) }),
|
|
35
|
+
/* @__PURE__ */ jsx("div", { className: "text-muted-foreground flex flex-col gap-3", children: /* @__PURE__ */ jsxs(LinkBar, { href: "mailto:contact@ichatgo.ai", className: "flex items-center", children: [
|
|
36
|
+
/* @__PURE__ */ jsx(Mail, { className: "w-4 h-4 mr-1" }),
|
|
36
37
|
"contact@ichatgo.ai"
|
|
37
38
|
] }) })
|
|
38
39
|
] }),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "text-foreground", children: /* @__PURE__ */ jsx(Translation, { value: "company", parentKey: "footer" }) }),
|
|
42
|
+
/* @__PURE__ */ jsxs("div", { className: "text-muted-foreground flex flex-col gap-3", children: [
|
|
43
|
+
/* @__PURE__ */ jsx(LinkBar, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${locale}/privacy-policy.html`, children: /* @__PURE__ */ jsx(Translation, { value: "privacyPolicy", parentKey: "footer" }) }),
|
|
44
|
+
/* @__PURE__ */ jsx(LinkBar, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${locale}/terms-of-service.html`, children: /* @__PURE__ */ jsx(Translation, { value: "termsOfService", parentKey: "footer" }) }),
|
|
45
|
+
/* @__PURE__ */ jsx(LinkBar, { href: `${process.env.NEXT_PUBLIC_OFFICIAL_URL}/${locale}`, children: /* @__PURE__ */ jsx(Translation, { value: "aboutUs", parentKey: "footer" }) })
|
|
45
46
|
] })
|
|
46
47
|
] })
|
|
47
48
|
] })
|
|
48
49
|
] }) });
|
|
49
50
|
}
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
Footer as default
|
|
52
53
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xchain/footer",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.61",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -17,16 +17,30 @@
|
|
|
17
17
|
"src",
|
|
18
18
|
"!**/*.tsbuildinfo"
|
|
19
19
|
],
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"next": "16.1.6",
|
|
22
|
+
"next-intl": "4.13.0",
|
|
23
|
+
"react": "19.1.1",
|
|
24
|
+
"react-dom": "19.1.1"
|
|
25
|
+
},
|
|
20
26
|
"devDependencies": {
|
|
27
|
+
"next": "16.1.6",
|
|
28
|
+
"next-intl": "4.13.0",
|
|
29
|
+
"react": "19.1.1",
|
|
30
|
+
"react-dom": "19.1.1",
|
|
21
31
|
"rollup-plugin-preserve-use-client": "3.0.1"
|
|
22
32
|
},
|
|
23
33
|
"dependencies": {
|
|
24
34
|
"lucide-react": "0.539.0",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"@0xchain/
|
|
28
|
-
"@0xchain/
|
|
29
|
-
|
|
35
|
+
"@0xchain/image": "1.1.0-beta.61",
|
|
36
|
+
"@0xchain/link": "1.1.0-beta.61",
|
|
37
|
+
"@0xchain/i18n": "1.1.0-beta.61",
|
|
38
|
+
"@0xchain/translation": "1.1.0-beta.61"
|
|
39
|
+
},
|
|
40
|
+
"nx": {
|
|
41
|
+
"tags": [
|
|
42
|
+
"type:feature"
|
|
43
|
+
]
|
|
30
44
|
},
|
|
31
45
|
"publishConfig": {
|
|
32
46
|
"access": "public"
|
package/src/index.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ImageBar from '@0xchain/image';
|
|
3
3
|
import LinkBar from '@0xchain/link';
|
|
4
|
-
import { useLocale } from '
|
|
4
|
+
import { useLocale } from '@0xchain/i18n/react';
|
|
5
5
|
import Translation from '@0xchain/translation';
|
|
6
6
|
import { Mail } from 'lucide-react';
|
|
7
7
|
import Year from './year';
|
|
@@ -18,7 +18,7 @@ export default function Footer() {
|
|
|
18
18
|
<div className="flex flex-col gap-3 py-3 md:py-0">
|
|
19
19
|
<div className="text-foreground"><Translation value="product" parentKey='footer' /></div>
|
|
20
20
|
<div className="text-muted-foreground flex flex-col gap-3">
|
|
21
|
-
<LinkBar href="/token-list" baseUrl={process.env.
|
|
21
|
+
<LinkBar href="/token-list" baseUrl={process.env.NEXT_PUBLIC_APP_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">
|