b6df383584
* Rawer landing page - Angular, clean docs styling inspired by Oxide - zero all border-radius globally (kill rounded corners) - sharp code blocks with subtle border - callouts: left-border accent instead of rounded pill - clean table grid lines, sharp search box and MUI buttons - tighter heading letter-spacing (-0.02em) - flat left-border sidebar active item instead of background blob * Add JetBrains Mono for headings/sidebar, push Oxide styling further - import JetBrains Mono via Google Fonts - apply mono font to headings, sidebar, nav bar, search, table headers - darken background (#181C1E), muted body text, h2 bottom border - subtle background tint on active sidebar item - inline code: background-only (no border), monospace table headers - fix active sidebar item font size (scope separator label rule) * Rework docs landing page: hero, ASCII cards, SDKs, get started - add hero section with subtitle covering all doc areas - replace PNG vector illustrations with ASCII art in primary green - add SDKs section with Rust and TypeScript links - add get started section: What is the Mixnet, Send a message, Run a node - add footer links to GitHub and Matrix - fix nav dropdown font (button + ul selectors) - add landing card hover style * Self-host JetBrains Mono, refine landing page - replace Google Fonts import with local @font-face (woff2) - add font files + OFL license to public/fonts/ - remove redundant "Nym Docs" hero heading (already in nav) - drop quick-links pills section - fix SDK box borders (negative margin collapse) - rewrite footer as simple link row (GitHub, Matrix, nym.com) * Light mode styling, dark-mode diagram invert, click-to-expand images - add full light mode CSS: pale grey bg, darker green links, mono fonts - invert diagram images in dark mode with mix-blend-mode: lighten - add click-to-expand overlay for content images - revert mermaid diagrams back to original PNGs * Fix Lychee config for fonts * Make light mode green darker * Animate landing page ASCII art, remove architecture diagram - Network: animated packet traversal through gw_e → M1/M2/M3 → gw_ex with diagonal cross-connections showing mixing paths - Developers: typewriter effect with blinking cursor - Operators: looping progress bar with continuously incrementing packet count - APIs: staged line-by-line response reveal - Remove architecture overview PNG from network/architecture.mdx * Small copy change to SDK headers * Fix links
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
import React, { useMemo, useEffect } from 'react';
|
|
import type { AppProps } from 'next/app';
|
|
import './styles.css';
|
|
import { ThemeProvider, createTheme } from '@mui/material/styles';
|
|
|
|
const MyApp: React.FC<AppProps> = ({ Component, pageProps }) => {
|
|
const muiTheme = useMemo(
|
|
() =>
|
|
createTheme({
|
|
palette: {
|
|
mode: 'dark',
|
|
primary: {
|
|
main: '#85E89D',
|
|
},
|
|
background: {
|
|
default: '#242B2D',
|
|
paper: '#2A3235',
|
|
},
|
|
},
|
|
}),
|
|
[],
|
|
);
|
|
useEffect(() => {
|
|
const handler = (e: MouseEvent) => {
|
|
const img = e.target as HTMLElement;
|
|
if (img.tagName === 'IMG' && img.closest('.nextra-content')) {
|
|
img.classList.toggle('img-expanded');
|
|
}
|
|
};
|
|
document.addEventListener('click', handler);
|
|
return () => document.removeEventListener('click', handler);
|
|
}, []);
|
|
|
|
const AnyComponent = Component as any;
|
|
return (
|
|
<ThemeProvider theme={muiTheme}>
|
|
<AnyComponent {...pageProps} />
|
|
</ThemeProvider>
|
|
);
|
|
};
|
|
|
|
export default MyApp;
|