Skip to content

Commit 83c6604

Browse files
authored
Merge pull request #8 from ResilientEcosystem/ask-a-page-widget-integration
Full UI Redesign
2 parents 0bd2437 + 36fb2dc commit 83c6604

24 files changed

+2080
-1747
lines changed

app/global.css

Lines changed: 175 additions & 411 deletions
Large diffs are not rendered by default.

app/layout.tsx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,20 @@ import '@gfazioli/mantine-text-animate/styles.layer.css';
2424

2525
import { ColorSchemeScript, mantineHtmlProps, MantineProvider } from '@mantine/core';
2626

27-
import '@mantine/core/styles.layer.css';
28-
2927
import { Layout } from 'nextra-theme-docs';
3028
import { Banner, Head } from 'nextra/components';
3129
import { getPageMap } from 'nextra/page-map';
3230
import { theme } from '../theme';
31+
import { Inter } from 'next/font/google';
3332

3433
import './global.css';
3534

3635
import { FloatingAssistant } from '@/components/FloatingAssistant';
36+
import { PocketFlowChatbot } from '@/components/PocketFlowChatbot';
3737
import { Providers } from './providers';
3838

39+
const inter = Inter({ subsets: ['latin'], variable: '--font-sans' });
40+
3941
export const metadata = {
4042
title: {
4143
default: 'Beacon - NextGen Docs for Nexres',
@@ -82,33 +84,34 @@ export default async function RootLayout({ children }: { children: any }) {
8284
const pageMap = await getPageMap();
8385

8486
return (
85-
<html lang="en" dir="ltr" {...mantineHtmlProps}>
87+
<html lang="en" dir="ltr" {...mantineHtmlProps} className={`${inter.className} ${inter.variable}`}>
8688
<Head>
8789
<ColorSchemeScript nonce="8IBTHwOdqNKAWeKl7plt8g==" defaultColorScheme="dark" />
88-
<link rel="shortcut icon" href="/lighthouse.png" />
90+
<link rel="shortcut icon" href="/favicon.svg" type="image/svg+xml" />
8991
<meta
9092
name="viewport"
9193
content="minimum-scale=1, initial-scale=1, width=device-width, user-scalable=no"
9294
/>
9395
</Head>
9496
<body>
9597
<Providers>
96-
<MantineProvider theme={theme} defaultColorScheme="auto">
98+
<MantineProvider theme={theme} defaultColorScheme="dark">
9799
<Layout
98-
banner={
99-
<Banner storageKey="mantine-nextjs-nextra">
100-
✨ AI powered documentation for ResilientDB Ecosystem and Apps
101-
</Banner>
102-
}
100+
// banner={
101+
// <Banner storageKey="mantine-nextjs-nextra">
102+
// ✨ AI powered documentation for ResilientDB Ecosystem and Apps
103+
// </Banner>
104+
// }
103105
navbar={<MantineNavBar />}
104106
pageMap={pageMap}
105107
docsRepositoryBase="https://github.com/shuding/nextra/tree/main/docs"
106108
footer={<MantineFooter />}
107-
sidebar={{ defaultMenuCollapseLevel: 1 }}
109+
sidebar={{ defaultMenuCollapseLevel: 1, toggleButton: true }}
108110
>
109111
{children}
110112
</Layout>
111113
<FloatingAssistant />
114+
{/* <PocketFlowChatbot /> */}
112115
</MantineProvider>
113116
</Providers>
114117
</body>

0 commit comments

Comments
 (0)