+
+ {!choice ? (
+ setChoice(option)}
+ />
+ ) : (
+
+ )}
+
+
+ );
+};
+
+export default Feedback;
diff --git a/src/theme/Root.tsx b/src/theme/Root.tsx
index 999a7069..b33af026 100644
--- a/src/theme/Root.tsx
+++ b/src/theme/Root.tsx
@@ -1,11 +1,16 @@
// https://docusaurus.io/docs/3.4.0/swizzling#wrapper-your-site-with-root
import BrowserOnly from "@docusaurus/BrowserOnly";
-import React from "react";
+import React, { useEffect } from "react";
import ChatComponent from "./ChatPAAL";
+import { analytics } from "./analytics";
// Default implementation, that you can customize
export default function Root({ children }) {
+ useEffect(() => {
+ analytics();
+ }, []);
+
return (
<>
{children}
diff --git a/src/theme/analytics.ts b/src/theme/analytics.ts
new file mode 100644
index 00000000..b56f9dbe
--- /dev/null
+++ b/src/theme/analytics.ts
@@ -0,0 +1,22 @@
+import * as amplitude from "@amplitude/analytics-browser";
+import { gaEventsForwarderPlugin } from "@amplitude/plugin-ga-events-forwarder-browser";
+import { sessionReplayPlugin } from "@amplitude/plugin-session-replay-browser";
+import ReactGA from "react-ga4";
+import TagManager from "react-gtm-module";
+import { hotjar } from "react-hotjar";
+
+export const analytics = () => {
+ const gaEventsForwarder = gaEventsForwarderPlugin();
+ amplitude.add(gaEventsForwarder);
+ amplitude.init("7652218546e8f6cc3d045e43a68830f6", { autocapture: true });
+ const sessionReplayTracking = sessionReplayPlugin({
+ sampleRate: 1,
+ });
+ amplitude.add(sessionReplayTracking);
+
+ hotjar.initialize({ id: 5120800, sv: 6 });
+ ReactGA.initialize("G-PFZ0BCQHMY");
+ TagManager.initialize({
+ gtmId: "GTM-NKWDMQ52",
+ });
+};
diff --git a/static/img/aelf_roadmap_2.png b/static/img/aelf_roadmap_2.png
new file mode 100644
index 00000000..5b591a59
Binary files /dev/null and b/static/img/aelf_roadmap_2.png differ
diff --git a/static/img/ai-audit-button-playground.png b/static/img/ai-audit-button-playground.png
new file mode 100644
index 00000000..c953653a
Binary files /dev/null and b/static/img/ai-audit-button-playground.png differ
diff --git a/static/img/ai-audit-suggestion-playground.png b/static/img/ai-audit-suggestion-playground.png
new file mode 100644
index 00000000..7dfd7982
Binary files /dev/null and b/static/img/ai-audit-suggestion-playground.png differ
diff --git a/static/img/allowance-connect-wallet.png b/static/img/allowance-connect-wallet.png
new file mode 100644
index 00000000..55cb4de8
Binary files /dev/null and b/static/img/allowance-connect-wallet.png differ
diff --git a/static/img/allowance-home-page.png b/static/img/allowance-home-page.png
new file mode 100644
index 00000000..ee8af331
Binary files /dev/null and b/static/img/allowance-home-page.png differ
diff --git a/static/img/allowance-wallet-connect-success.png b/static/img/allowance-wallet-connect-success.png
new file mode 100644
index 00000000..3f5a6c57
Binary files /dev/null and b/static/img/allowance-wallet-connect-success.png differ
diff --git a/static/img/click-login-option.png b/static/img/click-login-option.png
new file mode 100644
index 00000000..fee94ab5
Binary files /dev/null and b/static/img/click-login-option.png differ
diff --git a/static/img/click-login-portkey.png b/static/img/click-login-portkey.png
new file mode 100644
index 00000000..5edd9d3b
Binary files /dev/null and b/static/img/click-login-portkey.png differ
diff --git a/static/img/contract-viewer.png b/static/img/contract-viewer.png
new file mode 100644
index 00000000..a93247df
Binary files /dev/null and b/static/img/contract-viewer.png differ
diff --git a/static/img/copy-wallet-address.png b/static/img/copy-wallet-address.png
new file mode 100644
index 00000000..517a4fec
Binary files /dev/null and b/static/img/copy-wallet-address.png differ
diff --git a/static/img/create-nft-indexer.png b/static/img/create-nft-indexer.png
new file mode 100644
index 00000000..d3d0a0c4
Binary files /dev/null and b/static/img/create-nft-indexer.png differ
diff --git a/static/img/deploy-nft-indexer-template.png b/static/img/deploy-nft-indexer-template.png
new file mode 100644
index 00000000..74e55f0e
Binary files /dev/null and b/static/img/deploy-nft-indexer-template.png differ
diff --git a/static/img/deployment-button-playground.png b/static/img/deployment-button-playground.png
new file mode 100644
index 00000000..fb0db068
Binary files /dev/null and b/static/img/deployment-button-playground.png differ
diff --git a/static/img/deployment-data-playground.png b/static/img/deployment-data-playground.png
new file mode 100644
index 00000000..701da53c
Binary files /dev/null and b/static/img/deployment-data-playground.png differ
diff --git a/static/img/dice-approve-login-request.png b/static/img/dice-approve-login-request.png
new file mode 100644
index 00000000..64168d9c
Binary files /dev/null and b/static/img/dice-approve-login-request.png differ
diff --git a/static/img/dice-click-login-button.png b/static/img/dice-click-login-button.png
new file mode 100644
index 00000000..c08fdbdd
Binary files /dev/null and b/static/img/dice-click-login-button.png differ
diff --git a/static/img/dice-game-faucet-claim-token.png b/static/img/dice-game-faucet-claim-token.png
new file mode 100644
index 00000000..4b85310a
Binary files /dev/null and b/static/img/dice-game-faucet-claim-token.png differ
diff --git a/static/img/dice-game-homepage.png b/static/img/dice-game-homepage.png
new file mode 100644
index 00000000..c360b0ec
Binary files /dev/null and b/static/img/dice-game-homepage.png differ
diff --git a/static/img/dice-game-processing.png b/static/img/dice-game-processing.png
new file mode 100644
index 00000000..a7f629b4
Binary files /dev/null and b/static/img/dice-game-processing.png differ
diff --git a/static/img/dice-game-result.png b/static/img/dice-game-result.png
new file mode 100644
index 00000000..f23b6f90
Binary files /dev/null and b/static/img/dice-game-result.png differ
diff --git a/static/img/dice-home-page-post-login.png b/static/img/dice-home-page-post-login.png
new file mode 100644
index 00000000..5f9581e3
Binary files /dev/null and b/static/img/dice-home-page-post-login.png differ
diff --git a/static/img/dice-npm-run-console.png b/static/img/dice-npm-run-console.png
new file mode 100644
index 00000000..5202092f
Binary files /dev/null and b/static/img/dice-npm-run-console.png differ
diff --git a/static/img/dice-select-price-option.png b/static/img/dice-select-price-option.png
new file mode 100644
index 00000000..2c622844
Binary files /dev/null and b/static/img/dice-select-price-option.png differ
diff --git a/static/img/download-nft-indexer-template.png b/static/img/download-nft-indexer-template.png
new file mode 100644
index 00000000..7123e96a
Binary files /dev/null and b/static/img/download-nft-indexer-template.png differ
diff --git a/static/img/export-button-playground.png b/static/img/export-button-playground.png
new file mode 100644
index 00000000..1db75fd8
Binary files /dev/null and b/static/img/export-button-playground.png differ
diff --git a/static/img/export-success-playground.png b/static/img/export-success-playground.png
new file mode 100644
index 00000000..f7067454
Binary files /dev/null and b/static/img/export-success-playground.png differ
diff --git a/static/img/get-approval-token-request.png b/static/img/get-approval-token-request.png
new file mode 100644
index 00000000..68d41ecd
Binary files /dev/null and b/static/img/get-approval-token-request.png differ
diff --git a/static/img/get-game-transaction-request.png b/static/img/get-game-transaction-request.png
new file mode 100644
index 00000000..3a751768
Binary files /dev/null and b/static/img/get-game-transaction-request.png differ
diff --git a/static/img/logs-nft-indexer.png b/static/img/logs-nft-indexer.png
new file mode 100644
index 00000000..7d89c903
Binary files /dev/null and b/static/img/logs-nft-indexer.png differ
diff --git a/static/img/name-nft-indexer.png b/static/img/name-nft-indexer.png
new file mode 100644
index 00000000..de42eec3
Binary files /dev/null and b/static/img/name-nft-indexer.png differ
diff --git a/static/img/playground-21.png b/static/img/playground-21.png
index 782cdb50..c9c692e8 100644
Binary files a/static/img/playground-21.png and b/static/img/playground-21.png differ
diff --git a/static/img/playground-24.png b/static/img/playground-24.png
new file mode 100644
index 00000000..ff5b59cb
Binary files /dev/null and b/static/img/playground-24.png differ
diff --git a/static/img/query-nft-indexer.png b/static/img/query-nft-indexer.png
new file mode 100644
index 00000000..6e2244ea
Binary files /dev/null and b/static/img/query-nft-indexer.png differ
diff --git a/static/img/share-button-playground.png b/static/img/share-button-playground.png
new file mode 100644
index 00000000..df1362e9
Binary files /dev/null and b/static/img/share-button-playground.png differ
diff --git a/static/img/share-link-playground.png b/static/img/share-link-playground.png
new file mode 100644
index 00000000..53ea0854
Binary files /dev/null and b/static/img/share-link-playground.png differ
diff --git a/static/img/step-1-allowance.png b/static/img/step-1-allowance.png
new file mode 100644
index 00000000..9c981c13
Binary files /dev/null and b/static/img/step-1-allowance.png differ
diff --git a/static/img/step-10-allowance.png b/static/img/step-10-allowance.png
new file mode 100644
index 00000000..24fef26f
Binary files /dev/null and b/static/img/step-10-allowance.png differ
diff --git a/static/img/step-11-allowance.png b/static/img/step-11-allowance.png
new file mode 100644
index 00000000..3f1fc053
Binary files /dev/null and b/static/img/step-11-allowance.png differ
diff --git a/static/img/step-12-allowance.png b/static/img/step-12-allowance.png
new file mode 100644
index 00000000..40618c1b
Binary files /dev/null and b/static/img/step-12-allowance.png differ
diff --git a/static/img/step-13-allowance.png b/static/img/step-13-allowance.png
new file mode 100644
index 00000000..91605081
Binary files /dev/null and b/static/img/step-13-allowance.png differ
diff --git a/static/img/step-14-allowance.png b/static/img/step-14-allowance.png
new file mode 100644
index 00000000..06e48ce6
Binary files /dev/null and b/static/img/step-14-allowance.png differ
diff --git a/static/img/step-15-allowance.png b/static/img/step-15-allowance.png
new file mode 100644
index 00000000..11fca9af
Binary files /dev/null and b/static/img/step-15-allowance.png differ
diff --git a/static/img/step-16-allowance.png b/static/img/step-16-allowance.png
new file mode 100644
index 00000000..7bbff9d1
Binary files /dev/null and b/static/img/step-16-allowance.png differ
diff --git a/static/img/step-17-allowance.png b/static/img/step-17-allowance.png
new file mode 100644
index 00000000..048e48ba
Binary files /dev/null and b/static/img/step-17-allowance.png differ
diff --git a/static/img/step-2-allowance.png b/static/img/step-2-allowance.png
new file mode 100644
index 00000000..deda9d34
Binary files /dev/null and b/static/img/step-2-allowance.png differ
diff --git a/static/img/step-3-allowance.png b/static/img/step-3-allowance.png
new file mode 100644
index 00000000..22e087b7
Binary files /dev/null and b/static/img/step-3-allowance.png differ
diff --git a/static/img/step-4-allowance.png b/static/img/step-4-allowance.png
new file mode 100644
index 00000000..742ccafb
Binary files /dev/null and b/static/img/step-4-allowance.png differ
diff --git a/static/img/step-5-allowance.png b/static/img/step-5-allowance.png
new file mode 100644
index 00000000..45a06687
Binary files /dev/null and b/static/img/step-5-allowance.png differ
diff --git a/static/img/step-6-allowance.png b/static/img/step-6-allowance.png
new file mode 100644
index 00000000..b9c41842
Binary files /dev/null and b/static/img/step-6-allowance.png differ
diff --git a/static/img/step-7-allowance.png b/static/img/step-7-allowance.png
new file mode 100644
index 00000000..ad768c35
Binary files /dev/null and b/static/img/step-7-allowance.png differ
diff --git a/static/img/step-8-allowance.png b/static/img/step-8-allowance.png
new file mode 100644
index 00000000..40363cfa
Binary files /dev/null and b/static/img/step-8-allowance.png differ
diff --git a/static/img/step-9-allowance.png b/static/img/step-9-allowance.png
new file mode 100644
index 00000000..2ba45b05
Binary files /dev/null and b/static/img/step-9-allowance.png differ
diff --git a/static/img/subscription-nft-indexer.png b/static/img/subscription-nft-indexer.png
new file mode 100644
index 00000000..329b7956
Binary files /dev/null and b/static/img/subscription-nft-indexer.png differ
diff --git a/static/img/test-button-playground.png b/static/img/test-button-playground.png
new file mode 100644
index 00000000..7fe3fef1
Binary files /dev/null and b/static/img/test-button-playground.png differ
diff --git a/static/img/token-claim-success.png b/static/img/token-claim-success.png
new file mode 100644
index 00000000..03348676
Binary files /dev/null and b/static/img/token-claim-success.png differ
diff --git a/static/pdf/aelf_whitepaper_v2.0.pdf b/static/pdf/aelf_whitepaper_v2.0.pdf
index 01f5e210..7d285946 100644
Binary files a/static/pdf/aelf_whitepaper_v2.0.pdf and b/static/pdf/aelf_whitepaper_v2.0.pdf differ