Skip to content
Merged
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
7 changes: 2 additions & 5 deletions frontend/src/components/Header/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -475,12 +475,9 @@ const Chat: React.FC<ChatDropDownProps> = ({ showChat, setShowChat }) => {
) : (
<div
onClick={() => setShowChat(true)}
className="fixed bottom-9 left-10 h-16 w-16 inline-block cursor-pointer flex items-center justify-center rounded-full bg-blue-500 object-contain hover:cursor-pointer hover:bg-blue-300 md:bottom-20 md:right-20 no-print"
className="chat_button no-print"
>
<FaComments className="text-white h-10 w-10" />
<div className="absolute bottom-20 mt-2 hidden w-32 rounded bg-gray-700 px-2 py-1 text-sm text-white before:absolute before:-top-2 before:left-1/2 before:-translate-x-1/2 before:transform before:border-8 before:border-transparent before:border-b-gray-700 group-hover:block">
Any questions? Click here to to chat!
</div>
<FaComments className="relative text-white w-10 h-10 z-10" />
</div>
)}
</>
Expand Down
19 changes: 19 additions & 0 deletions frontend/src/components/Header/chat.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.chat_button {
@apply fixed bottom-9 left-10 h-16 w-16 cursor-pointer rounded-full bg-blue-500 hover:cursor-pointer hover:bg-blue-300 md:bottom-20 md:right-20 flex items-center justify-center animate-pulse-bounce;
}

.chat_button_animations {
@apply flex justify-center items-center;
}

.inside_chat {
@apply grow px-2 py-2 bg-neutral-100 overflow-y-auto overflow-x-hidden;
}
Expand Down Expand Up @@ -87,4 +95,15 @@ ul.chat_suggestion_list {

.scroll_down {
@apply z-40 absolute bottom-[90px] left-[45%] text-3xl text-gray-400 hover:text-blue-500 rounded-full border-2 border-white bg-white;
}

@keyframes pulse-bounce {
0%, 100% {
opacity: 1;
transform: translateY(0);
}
50% {
opacity: .5;
transform: translateY(-25%);
}
}
4 changes: 4 additions & 0 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export default {
lora: "'Lora', serif",
'quicksand': ['Quicksand', 'sans-serif']
},
animation: {
'pulse-bounce': 'pulse-bounce 2s infinite', // Adjust duration and iteration as needed
},
plugins: [],
},
},
plugins: [],
Expand Down