Skip to content

Commit 0d61727

Browse files
committed
feat: demo page
1 parent c61e158 commit 0d61727

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

apps/docs/app/demo/page.tsx

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import { ArrowLeftIcon } from '@phosphor-icons/react/ssr';
2+
import type { Metadata } from 'next';
3+
import Link from 'next/link';
4+
5+
export const metadata: Metadata = {
6+
title: 'Live Demo | Databuddy',
7+
description:
8+
'Experience Databuddy analytics in action with our live demo dashboard. See real-time analytics, insights, and privacy-first tracking.',
9+
};
10+
11+
export default function DemoPage() {
12+
return (
13+
<div className="fixed inset-0 h-full w-full">
14+
{/* Floating Navigation Header */}
15+
<div className="absolute top-4 right-4 left-4 z-50 flex items-center justify-between">
16+
<Link
17+
className="group flex items-center gap-2 rounded border border-border bg-card/90 px-4 py-2 font-medium text-sm shadow-lg backdrop-blur-sm transition-colors hover:bg-card"
18+
href="/"
19+
>
20+
<ArrowLeftIcon
21+
className="group-hover:-translate-x-0.5 h-4 w-4 text-foreground transition-transform"
22+
weight="fill"
23+
/>
24+
<span className="text-foreground">Back to Home</span>
25+
</Link>
26+
27+
<div className="flex items-center gap-2">
28+
<div className="flex items-center gap-2 rounded border border-border bg-card/90 px-3 py-2 shadow-lg backdrop-blur-sm">
29+
<div className="h-2 w-2 animate-pulse rounded-full bg-green-500" />
30+
<span className="font-medium text-foreground text-xs">
31+
Live Demo
32+
</span>
33+
</div>
34+
35+
<Link
36+
className="group flex items-center gap-2 rounded border border-border bg-primary/90 px-4 py-2 font-medium text-primary-foreground text-sm shadow-lg backdrop-blur-sm transition-colors hover:bg-primary"
37+
href="https://app.databuddy.cc/login"
38+
rel="noopener"
39+
target="_blank"
40+
>
41+
<span>Get Started Free</span>
42+
<ArrowLeftIcon
43+
className="h-4 w-4 rotate-180 transition-transform group-hover:translate-x-0.5"
44+
weight="fill"
45+
/>
46+
</Link>
47+
</div>
48+
</div>
49+
50+
{/* Demo iframe */}
51+
<iframe
52+
allow="fullscreen"
53+
className="h-full w-full border-0"
54+
loading="lazy"
55+
src="https://app.databuddy.cc/demo/OXmNQsViBT-FOS_wZCTHc"
56+
style={{
57+
colorScheme: 'light dark',
58+
}}
59+
title="Databuddy Analytics Demo Dashboard"
60+
/>
61+
</div>
62+
);
63+
}

0 commit comments

Comments
 (0)