Skip to content

Commit 364a94c

Browse files
committed
feat: footnote
1 parent 5f73f2b commit 364a94c

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

apps/web/components/chat-input-area.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const ChatInputArea = ({
3636
<Textarea
3737
value={input}
3838
placeholder="How can I help with Yu-Gi-Oh! rulings?"
39-
className="pr-12 py-3 min-h-[60px] max-h-[120px] focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:outline-none border-0 resize-none"
39+
className="pr-12 p-5 min-h-[60px] max-h-[120px] focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:outline-none border-0 resize-none"
4040
disabled={isGeneratingResponse}
4141
autoFocus
4242
onChange={(event) => {

apps/web/components/chat-input.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { UseChatHelpers } from "@ai-sdk/react";
44
import ChatInputControls from "@/components/chat-input-controls";
55
import ChatInputArea from "@/components/chat-input-area";
6+
import Footnote from "./footnote";
67

78
interface ChatInputProps {
89
chatHelpers: UseChatHelpers;
@@ -26,10 +27,7 @@ const ChatInput = ({ chatHelpers, input, setInput }: ChatInputProps) => {
2627
setInput={setInput}
2728
/>
2829
</div>
29-
<div className="text-muted-foreground text-xs mt-2">
30-
This is an AI chatbot using RAG. It is trained on GOAT Format
31-
Yu-Gi-Oh! rulings only.
32-
</div>
30+
<Footnote />
3331
</div>
3432
</div>
3533
);

apps/web/components/footnote.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
const Footnote = () => {
2+
return (
3+
<div className="text-muted-foreground text-xs mt-2">
4+
This is an AI chatbot using{" "}
5+
<a
6+
className="underline text-primary"
7+
href="https://www.pinecone.io/learn/retrieval-augmented-generation/"
8+
target="_blank"
9+
rel="noreferrer"
10+
>
11+
RAG
12+
</a>
13+
. It is trained on{" "}
14+
<a
15+
className="underline text-primary"
16+
href="https://www.goatformat.com/whatisgoat.html"
17+
target="_blank"
18+
rel="noreferrer"
19+
>
20+
GOAT Format Yu-Gi-Oh!
21+
</a>{" "}
22+
rulings only.
23+
</div>
24+
);
25+
};
26+
27+
export default Footnote;

0 commit comments

Comments
 (0)