Skip to content

Commit 2b24bff

Browse files
committed
checkpoint
1 parent 9a14775 commit 2b24bff

5 files changed

Lines changed: 551 additions & 14 deletions

File tree

src/app/globals.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,40 @@ body,
2222
html {
2323
height: 100%;
2424
}
25+
26+
.flash-create {
27+
animation: flash-create 0.7s ease-out;
28+
}
29+
30+
.flash-update {
31+
animation: flash-update 0.6s ease-out;
32+
}
33+
34+
@keyframes flash-create {
35+
0% {
36+
box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.65);
37+
border-color: rgba(45, 212, 191, 0.9);
38+
background-color: rgba(15, 118, 110, 0.45);
39+
transform: translateY(-4px) scale(1.02);
40+
}
41+
60% {
42+
box-shadow: 0 0 0 16px rgba(45, 212, 191, 0);
43+
}
44+
100% {
45+
box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
46+
border-color: rgba(51, 65, 85, 1);
47+
background-color: rgba(15, 23, 42, 0.8);
48+
transform: translateY(0) scale(1);
49+
}
50+
}
51+
52+
@keyframes flash-update {
53+
0% {
54+
color: #fef3c7;
55+
text-shadow: 0 0 12px rgba(251, 191, 36, 0.7);
56+
}
57+
100% {
58+
color: inherit;
59+
text-shadow: none;
60+
}
61+
}

src/app/page.tsx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,39 @@ import { s } from "@hashbrownai/core";
99

1010
export default function CopilotKitPage() {
1111
const chatKit = useChatKit();
12-
const [themeColor] = useState("#6366f1");
12+
const [themeColor] = useState("#60a5fa");
1313
useCopilotReadable({
1414
description: "output_schema",
1515
value: s.toJsonSchema(chatKit.schema),
1616
});
1717

1818
return (
1919
<main
20+
className="relative min-h-screen w-screen bg-slate-950 text-slate-100"
2021
style={
21-
{ "--copilot-kit-primary-color": themeColor } as CopilotKitCSSProperties
22+
{
23+
"--copilot-kit-primary-color": themeColor,
24+
"--copilot-kit-contrast-color": "#0b1120",
25+
"--copilot-kit-background-color": "#0b1120",
26+
"--copilot-kit-input-background-color": "#111827",
27+
"--copilot-kit-secondary-color": "#1f2937",
28+
"--copilot-kit-secondary-contrast-color": "#e2e8f0",
29+
"--copilot-kit-separator-color": "#1f2937",
30+
"--copilot-kit-muted-color": "#94a3b8",
31+
"--copilot-kit-shadow-md": "0 12px 24px -12px rgba(0,0,0,0.6)",
32+
} as CopilotKitCSSProperties
2233
}
2334
>
35+
<a
36+
href="/parser"
37+
className="absolute right-6 top-6 z-10 rounded-full border border-slate-800 bg-slate-900/70 px-3 py-1 text-[10px] font-semibold uppercase tracking-[0.2em] text-slate-200 transition hover:border-slate-600 hover:text-white"
38+
>
39+
Parser Demo
40+
</a>
2441
<CopilotChat
2542
disableSystemMessage={true}
2643
RenderMessage={CustomMessageRenderer}
44+
className="h-screen w-screen"
2745
labels={{
2846
title: "Popup Assistant",
2947
}}

0 commit comments

Comments
 (0)