Skip to content

Commit ae6fca1

Browse files
committed
Support Markdown format and Add icon
1 parent 61c19cb commit ae6fca1

File tree

8 files changed

+1483
-73
lines changed

8 files changed

+1483
-73
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image/png" href="/my-icon.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<meta name="description" content="AI Profile Assistant - Your Professional Profile" />
88
<meta name="author" content="Your Name" />

package-lock.json

Lines changed: 1471 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@
2828
"lucide-react": "^0.303.0",
2929
"react": "^18.2.0",
3030
"react-dom": "^18.2.0",
31+
"react-markdown": "^10.1.0",
3132
"react-router-dom": "^6.20.1",
33+
"remark-gfm": "^4.0.1",
3234
"sonner": "^1.3.1",
3335
"tailwind-merge": "^2.2.0",
3436
"tailwindcss-animate": "^1.0.7"
3537
},
3638
"devDependencies": {
39+
"@tailwindcss/typography": "^0.5.16",
3740
"@types/node": "^20.10.5",
3841
"@types/react": "^18.2.45",
3942
"@types/react-dom": "^18.2.18",

public/favicon.ico

-7.47 KB
Binary file not shown.
-217 KB
Binary file not shown.

public/my-icon.png

2.22 MB
Loading

src/components/MessageBubble.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import ReactMarkdown from 'react-markdown';
12

23
interface Message {
34
id: string;
@@ -20,7 +21,9 @@ const MessageBubble = ({ message }: MessageBubbleProps) => {
2021
: "bg-white/10 text-slate-100 border border-white/20"
2122
}`}
2223
>
23-
<p className="text-sm whitespace-pre-wrap leading-relaxed">{message.text}</p>
24+
<div className="prose prose-sm prose-invert max-w-none">
25+
<ReactMarkdown>{message.text}</ReactMarkdown>
26+
</div>
2427
<p className={`text-xs mt-2 ${message.isUser ? "text-cyan-100" : "text-slate-400"}`}>
2528
{message.timestamp.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}
2629
</p>

tailwind.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,8 @@ export default {
9292
}
9393
}
9494
},
95-
plugins: [require("tailwindcss-animate")],
95+
plugins: [
96+
require("tailwindcss-animate"),
97+
require("@tailwindcss/typography"),
98+
],
9699
} satisfies Config;

0 commit comments

Comments
 (0)