Skip to content

clean up #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions functions/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ typings/

# Node.js dependency directory
node_modules/

ui-debug.log
firebase-debug.log
10 changes: 0 additions & 10 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@
}
}

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}

@layer utilities {
.text-balance {
text-wrap: balance;
Expand Down
23 changes: 4 additions & 19 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,13 @@ function InsideHome() {
handler: async ({ message }) => {
setMessage(message);
},
render: (props) => {
return (
<div style={{ backgroundColor: "black", color: "white" }}>
<div>Status: {props.status}</div>
<div>Message: {props.args.message}</div>
</div>
);
},
},
[]
);
return (
<>
<div>{message}</div>
<CopilotTextarea
value={text}
onChange={(e) => setText(e.target.value)}
autosuggestionsConfig={{
textareaPurpose: "an outline of a presentation about elephants",
chatApiConfigs: {},
}}
/>
</>
<div className="h-screen w-full flex items-center justify-center text-2xl">
{message}
</div>
);
}
export default function Home() {
Expand All @@ -65,6 +49,7 @@ export default function Home() {
title: "Presentation Copilot",
initial: "Hi you! 👋 I can give you a presentation on any topic.",
}}
clickOutsideToClose={false}
>
<InsideHome />
</CopilotSidebar>
Expand Down