-
- + New Chat
-
+
+
+
+
+
+
- {chatHistoriesMetadata
- .slice()
- .reverse()
- .map((chatMetadata) => (
-
- ))}
+ {/* Recents Section */}
+
+
+
Recents
+
+
+ {isRecentsOpen && (
+
+ {chatHistoriesMetadata
+ .slice()
+ .reverse()
+ .map((chatMetadata, index) => (
+ -
+
+
+ ))}
+
+ )}
+
+
+
)
}
diff --git a/src/styles/chat.css b/src/styles/chat.css
new file mode 100644
index 00000000..dd9c6ba8
--- /dev/null
+++ b/src/styles/chat.css
@@ -0,0 +1,47 @@
+/* Main chat container */
+.markdown-content p {
+ padding: 0.25rem;
+ margin: 0;
+ word-wrap: break-word;
+}
+
+.chat-container {
+ line-height: 1.6;
+}
+
+
+/* User's message box */
+.user-chat-message {
+ background-color: rgb(50, 50, 50);
+ color: rgb(220, 220, 220);
+ border-radius: 10px;
+ margin: 10px 0;
+ padding: 0 4px;
+ font-size: 0.94rem;
+ line-height: 1.2rem;
+}
+
+/* AI's message box */
+.assistant-chat-message {
+ color: rgb(210, 210, 210);
+ margin: 10px 0;
+ padding: 0 4px;
+ font-size: 0.94rem;
+ line-height: 1.2rem;
+}
+
+@keyframes dropdown-fadeIn {
+ from {
+ opacity: 0;
+ transform: translateY(0);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(10px);
+ }
+}
+
+.animate-dropdown-fadeIn {
+ opacity: 0;
+ animation: dropdown-fadeIn 0.5s ease-out forwards;
+}
\ No newline at end of file
diff --git a/src/styles/global.css b/src/styles/global.css
index f14ec95c..a9ba1837 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -2,6 +2,11 @@
@import "tailwindcss/components";
@import "tailwindcss/utilities";
+:root {
+ --bg-000: 60 1.8% 22%;
+ --gen-100: 50 23.1% 94.9%;
+}
+
html,
body {
padding: 0;
@@ -47,11 +52,6 @@ button {
-webkit-app-region: no-drag;
}
-.markdown-content p {
- padding: 0.25rem;
- margin: 0;
-}
-
::-webkit-scrollbar {
width: 7px;
/* Adjust the width of the scrollbar */
diff --git a/src/utils/animations.tsx b/src/utils/animations.tsx
new file mode 100644
index 00000000..0c58ad44
--- /dev/null
+++ b/src/utils/animations.tsx
@@ -0,0 +1,13 @@
+import React from 'react'
+
+const LoadingDots = () => {
+ return (
+
+ .
+ .
+ .
+
+ )
+}
+
+export default LoadingDots
diff --git a/tailwind.config.js b/tailwind.config.js
index 45a579ef..8f25d5c1 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -17,14 +17,13 @@ export default {
'dark-gray-c-nine': '#343434',
'dark-gray-c-ten': '#383838',
'dark-gray-c-eleven': '#191919',
-
"dark-slate-gray": "#2F4F4F",
"light-arsenic": "#182c44",
"distinct-dark-purple": "#3a395e",
"moodly-blue": "#7f7dcb",
- },
- fontFamily: {
- // "material-icons": ["Material Icons"],
+ 'bg-000': 'hsl(var(--bg-000) / 1.0)',
+
+ 'text-gen-100': 'hsl(var(--gen-100) / 1.0)',
},
height: {
titlebar: "30px",
@@ -49,9 +48,14 @@ export default {
'0%': { transform: 'translateX(100%)', opacity: '0'},
'100%': { transform: 'translateX(0)', opacity: '1'},
},
+ bounce: {
+ '0%, 20%, 50%, 80%, 100%': { opacity: '1' },
+ '40%, 60%': { opacity: '0' },
+ }
},
animation: {
'slide-in': 'slideIn 0.3s ease-out',
+ 'bounce': 'bounce 1.4s infinite both',
},
},
},