feat: nav 4x2 button grid + hero stats from correct chains

- Replace nav menu with 4x2 mobile-app-style button grid (responsive)
- Fetch staking stats from Asset Hub instead of Relay Chain
- Governance stats (proposals, voters) remain on Relay Chain
- Trust score: show login prompt for guests, real score for users
- Full-width root container, centered hero, node globals shim fix
This commit is contained in:
2026-02-21 16:29:53 +03:00
parent e4abee939f
commit a5a9bcca91
5 changed files with 280 additions and 279 deletions
+24 -3
View File
@@ -32,12 +32,33 @@ export default defineConfig(() => ({
react(),
nodePolyfills({
globals: {
Buffer: true,
global: true,
process: true,
Buffer: false,
global: false,
process: false,
},
protocolImports: true,
}),
{
name: 'node-globals-shim',
transformIndexHtml() {
return [
{
tag: 'script',
children: `
window.global = window.global || window;
window.process = window.process || { env: {}, browser: true, version: "" };
`,
injectTo: 'head-prepend',
},
{
tag: 'script',
attrs: { type: 'module' },
children: `import { Buffer } from 'buffer'; window.Buffer = window.Buffer || Buffer;`,
injectTo: 'head-prepend',
},
];
},
},
].filter(Boolean),
resolve: {
mainFields: ['module', 'main', 'exports'],