@ichaingo/footer 1.1.0
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/README.md +11 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +41 -0
- package/package.json +31 -0
- package/src/index.tsx +57 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,CAAC,OAAO,UAAU,MAAM,sBAkD7B"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import r from "@ichaingo/image";
|
|
3
|
+
import a from "@ichaingo/link";
|
|
4
|
+
import { useLocale as i } from "next-intl";
|
|
5
|
+
import t from "@ichaingo/translation";
|
|
6
|
+
import { Mail as o } from "lucide-react";
|
|
7
|
+
function h() {
|
|
8
|
+
const c = i();
|
|
9
|
+
return /* @__PURE__ */ e("footer", { className: "md:bg-module text-xs w-full p-3 mt-3", children: /* @__PURE__ */ l("div", { className: "max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3", children: [
|
|
10
|
+
/* @__PURE__ */ l("div", { className: "w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between", children: [
|
|
11
|
+
/* @__PURE__ */ e(r, { src: "https://cdn.ichaingo.com/uploads/logo-gray-20250826.png", width: 116, height: 32, objectFit: "contain" }),
|
|
12
|
+
/* @__PURE__ */ l("div", { className: "text-subtitle", children: [
|
|
13
|
+
"©2025 ichaingo ",
|
|
14
|
+
/* @__PURE__ */ e(t, { value: "allRightsReserved", parentKey: "footer" })
|
|
15
|
+
] })
|
|
16
|
+
] }),
|
|
17
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2", children: [
|
|
18
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
19
|
+
/* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(t, { value: "product", parentKey: "footer" }) }),
|
|
20
|
+
/* @__PURE__ */ e("div", { className: "text-subtitle flex flex-col gap-3", children: /* @__PURE__ */ e(a, { href: "/token-list", baseUrl: process.env.NEXT_PUBLIC_ICHAINGO_SEARCH_BASEURL, children: /* @__PURE__ */ e(t, { value: "tokenList", parentKey: "footer" }) }) })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
23
|
+
/* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(t, { value: "contactUs", parentKey: "footer" }) }),
|
|
24
|
+
/* @__PURE__ */ e("div", { className: "text-subtitle flex flex-col gap-3", children: /* @__PURE__ */ l(a, { href: "mailto:contact@ichaingo.com", className: "flex items-center", children: [
|
|
25
|
+
/* @__PURE__ */ e(o, { className: "w-4 h-4 mr-1" }),
|
|
26
|
+
"contact@ichaingo.com"
|
|
27
|
+
] }) })
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(t, { value: "company", parentKey: "footer" }) }),
|
|
31
|
+
/* @__PURE__ */ l("div", { className: "text-subtitle flex flex-col gap-3", children: [
|
|
32
|
+
/* @__PURE__ */ e(a, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${c}/privacy-policy.html`, children: /* @__PURE__ */ e(t, { value: "privacyPolicy", parentKey: "footer" }) }),
|
|
33
|
+
/* @__PURE__ */ e(a, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${c}/terms-of-service.html`, children: /* @__PURE__ */ e(t, { value: "termsOfService", parentKey: "footer" }) })
|
|
34
|
+
] })
|
|
35
|
+
] })
|
|
36
|
+
] })
|
|
37
|
+
] }) });
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
h as default
|
|
41
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ichaingo/footer",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"src",
|
|
18
|
+
"!**/*.tsbuildinfo"
|
|
19
|
+
],
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"lucide-react": "^0.541.0",
|
|
22
|
+
"react": "^19.1.0",
|
|
23
|
+
"next-intl": "^4.3.4",
|
|
24
|
+
"@ichaingo/image": "1.1.0",
|
|
25
|
+
"@ichaingo/link": "1.1.0",
|
|
26
|
+
"@ichaingo/translation": "1.1.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"rollup-plugin-preserve-use-client": "^3.0.1"
|
|
30
|
+
}
|
|
31
|
+
}
|
package/src/index.tsx
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ImageBar from '@ichaingo/image';
|
|
3
|
+
import LinkBar from '@ichaingo/link';
|
|
4
|
+
import { useLocale } from 'next-intl';
|
|
5
|
+
import Translation from '@ichaingo/translation';
|
|
6
|
+
import { Mail } from 'lucide-react';
|
|
7
|
+
export default function Footer() {
|
|
8
|
+
const locale = useLocale();
|
|
9
|
+
return (
|
|
10
|
+
<footer className='md:bg-module text-xs w-full p-3 mt-3'>
|
|
11
|
+
<div className="max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3">
|
|
12
|
+
<div className="w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between">
|
|
13
|
+
<ImageBar src='https://cdn.ichaingo.com/uploads/logo-gray-20250826.png' width={116} height={32} objectFit='contain'></ImageBar>
|
|
14
|
+
<div className='text-subtitle'>©2025 ichaingo <Translation value="allRightsReserved" parentKey='footer' /></div>
|
|
15
|
+
</div>
|
|
16
|
+
<div className="flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2">
|
|
17
|
+
<div className="flex flex-col gap-3 py-3 md:py-0">
|
|
18
|
+
<div className="text-title"><Translation value="product" parentKey='footer' /></div>
|
|
19
|
+
<div className="text-subtitle flex flex-col gap-3">
|
|
20
|
+
<LinkBar href="/token-list" baseUrl={process.env.NEXT_PUBLIC_ICHAINGO_SEARCH_BASEURL}><Translation value="tokenList" parentKey='footer' /></LinkBar>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div className="flex flex-col gap-3 py-3 md:py-0">
|
|
24
|
+
<div className="text-title"><Translation value="contactUs" parentKey='footer' /></div>
|
|
25
|
+
<div className="text-subtitle flex flex-col gap-3">
|
|
26
|
+
<LinkBar href="mailto:contact@ichaingo.com" className="flex items-center">
|
|
27
|
+
<Mail className="w-4 h-4 mr-1" />
|
|
28
|
+
contact@ichaingo.com
|
|
29
|
+
</LinkBar>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div className="flex flex-col gap-3 py-3 md:py-0">
|
|
33
|
+
<div className="text-title"><Translation value="company" parentKey='footer' /></div>
|
|
34
|
+
<div className="text-subtitle flex flex-col gap-3">
|
|
35
|
+
<LinkBar href={`${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${locale}/privacy-policy.html`} >
|
|
36
|
+
<Translation value="privacyPolicy" parentKey='footer' />
|
|
37
|
+
</LinkBar>
|
|
38
|
+
<LinkBar href={`${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${locale}/terms-of-service.html`} >
|
|
39
|
+
<Translation value="termsOfService" parentKey='footer' />
|
|
40
|
+
</LinkBar>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
{/* <div className='flex items-center justify-center flex-col sm:flex-row'>
|
|
45
|
+
<span className='mx-1 text-center'>©2025 ichaingo { t('allRightsReserved')}</span>
|
|
46
|
+
|
|
47
|
+
<a className='flex items-center bg-g hover:underline text-center' href='mailto:contact@ichaingo.com'>
|
|
48
|
+
<i className="inline-block mr-1 ">
|
|
49
|
+
<ImageBar src={EmailIcon} width={14} height={11}></ImageBar>
|
|
50
|
+
</i>
|
|
51
|
+
contact@ichaingo.com
|
|
52
|
+
</a>
|
|
53
|
+
</div> */}
|
|
54
|
+
</div>
|
|
55
|
+
</footer>
|
|
56
|
+
)
|
|
57
|
+
}
|