Skip to content

Commit 5528f2b

Browse files
committed
add favicon
1 parent b8edca2 commit 5528f2b

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

examples/demo/favicon.ico

14.7 KB
Binary file not shown.

examples/demo/src/app/(test)/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const layout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
55
<div className="relative py-10">
66
<LazyMotion features={domAnimation}>{children}</LazyMotion>
77

8-
<div className="fixed right-0 bottom-0 z-10 h-fit w-full rounded-lg bg-white/80 px-4 py-2 ring-1 ring-black/5 backdrop-blur-sm md:bg-white/20">
8+
{/* <div className="fixed right-0 bottom-0 z-10 h-fit w-full rounded-lg bg-white/80 px-4 py-2 ring-1 ring-black/5 backdrop-blur-sm md:bg-white/20">
99
<div className="pb-2 text-sm text-blue-500">(Layout.tsx) Global UI State Variables</div>
1010
<div className="active-zero:hidden text-sm text-gray-600">None</div>
1111
<div className="active-react:hidden flex flex-wrap gap-1 text-sm md:max-w-1/2 md:gap-2">
@@ -61,7 +61,7 @@ const layout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
6161
</div>
6262
</div>
6363
</div>
64-
</div>
64+
</div> */}
6565
</div>
6666
);
6767
};

examples/demo/src/app/components/ReactScan.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { useEffect } from 'react';
55

66
export function ReactScan() {
77
useEffect(() => {
8-
scan({ enabled: true });
8+
setTimeout(() => {
9+
scan({ enabled: true });
10+
}, 1000);
911
}, []);
1012

1113
return null;

examples/demo/src/app/layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { bodyAttributes } from '@zero-ui/attributes';
33
import './globals.css';
44
import { TopBarV2 } from './components/TopBar';
55
import { Analytics } from '@vercel/analytics/next';
6+
import Script from 'next/script';
67

78
export const metadata = { title: 'React Zero UI Demo', description: 'React Zero UI Demo', alternates: { canonical: process.env.NEXT_PUBLIC_URL } };
89

@@ -12,7 +13,10 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac
1213
<body
1314
className="flex h-full w-full items-center justify-center bg-gray-100 antialiased"
1415
{...bodyAttributes}>
15-
<script src="https://unpkg.com/react-scan/dist/auto.global.js" />
16+
<Script
17+
strategy="lazyOnload"
18+
src="https://unpkg.com/react-scan/dist/auto.global.js"
19+
/>
1620
<ReactScan />
1721
<TopBarV2 />
1822
{children}

0 commit comments

Comments
 (0)