Skip to content

Commit d2a9316

Browse files
authored
Merge pull request #1185 from MastanSayyad/main
Fixed and made Enhancements in Chatbot
2 parents c92323d + 1fd9b16 commit d2a9316

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

Website/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ <h3>Recommendation Models</h3>
192192
<!-- Chatbot Button -->
193193
<div class="chatbot-button" id="chatbot-button">
194194
<img src="assets/chatbot.png" height="50px" width="50px" id="chatbot-img" class="floating">
195-
<!-- <svg fill="#444" width="163px" height="163px" viewBox="-0.96 -0.96 25.92 25.92" xmlns="http://www.w3.org/2000/svg" stroke="#444" stroke-width="0.00024000000000000003"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="#fff" stroke-width="0.096"></g><g id="SVGRepo_iconCarrier"><path d="M21.928 11.607c-.202-.488-.635-.605-.928-.633V8c0-1.103-.897-2-2-2h-6V4.61c.305-.274.5-.668.5-1.11a1.5 1.5 0 0 0-3 0c0 .442.195.836.5 1.11V6H5c-1.103 0-2 .897-2 2v2.997l-.082.006A1 1 0 0 0 1.99 12v2a1 1 0 0 0 1 1H3v5c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5a1 1 0 0 0 1-1v-1.938a1.006 1.006 0 0 0-.072-.455zM5 20V8h14l.001 3.996L19 12v2l.001.005.001 5.995H5z"></path><ellipse cx="8.5" cy="12" rx="1.5" ry="2"></ellipse><ellipse cx="15.5" cy="12" rx="1.5" ry="2"></ellipse><path d="M8 16h8v2H8z"></path></g></svg> -->
195+
<div class="tooltip">Welcome to RecodeHive - Machine Learning Repos, How can we help you?</div>
196196
</div>
197197

198198
<!-- Chatbox -->

Website/styles.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,57 @@ button#toggle-languages:hover {
597597
animation: fadeIn 1s ease-in-out;
598598
}
599599

600+
.floating {
601+
animation: floating 3s ease-in-out infinite;
602+
}
603+
604+
@keyframes floating {
605+
0% {
606+
transform: translateY(0);
607+
}
608+
50% {
609+
transform: translateY(-7px);
610+
}
611+
100% {
612+
transform: translateY(0);
613+
}
614+
}
615+
616+
.tooltip {
617+
visibility: hidden;
618+
background-color: #0D6EFD;
619+
color: white;
620+
text-align: center;
621+
border-radius: 10px;
622+
padding: 9px;
623+
font-size: 15px;
624+
position: absolute;
625+
bottom: 70px;
626+
right: -130px;
627+
transform: translateX(-50%);
628+
width: 270px;
629+
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
630+
z-index: 1;
631+
opacity: 0;
632+
transition: opacity 0.3s;
633+
}
634+
635+
.chatbot-button:hover .tooltip {
636+
visibility: visible;
637+
opacity: 1;
638+
}
639+
640+
/* Hided tooltip on touch devices */
641+
@media (hover: none) and (pointer: coarse), (max-width: 767px) {
642+
.tooltip {
643+
display: none;
644+
}
645+
}
646+
600647
.chatbot.active {
601648
display: flex;
649+
margin-right: -18px;
650+
margin-bottom: 50px;
602651
}
603652

604653
.chatbot-header {

0 commit comments

Comments
 (0)