Skip to content

Commit

Permalink
Merge pull request #93 from Mehak-Mattoo/chatbot
Browse files Browse the repository at this point in the history
Chatbot changes
  • Loading branch information
MastanSayyad authored Jul 10, 2024
2 parents 7f196b9 + 5290d75 commit 1899234
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 29 deletions.
78 changes: 56 additions & 22 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1825,17 +1825,30 @@ body {

.topbtn {
position: fixed;
width: 50px;
height: 50px;
background: #7971ea;
bottom: 11px;
right: 29px;
bottom: 50px;
left: 50px;
z-index: 1000;
}

.gotopbtn {
display: flex;
align-items: center;
justify-content: center;
width: 50px; /* Adjust the width as needed */
height: 50px; /* Adjust the height as needed */
background: rgb(219, 127, 219);
color: white; /* Icon color */
border-radius: 50%; /* Make it a circle */
text-decoration: none;
text-align: center;
line-height: 50px;
color: white !important;
font-size: 22px;
border-radius: 50%;
transition: background-color 0.3s ease;
}

.gotopbtn:hover {
background-color: #555; /* Change the background color on hover */
}

.gotopbtn i {
font-size: 24px; /* Adjust the icon size as needed */
}

.gotopbtn i {
Expand Down Expand Up @@ -1864,17 +1877,6 @@ body {
vertical-align: 0.255em;
}

/* .navbar-nav .nav-link {
color: #555;
font-weight: 500;
padding: 0.5rem 1rem;
transition: color 0.2s;
} */

/* .navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
color: #000;
} */

.dropdown-menu {
position: absolute;
top: 100%;
Expand All @@ -1886,7 +1888,6 @@ body {
padding: 0.5rem 0;
margin: 0.125rem 0 0;
font-size: 1rem;
color: #212529;
text-align: left;
list-style: none;
background-color: #fff;
Expand All @@ -1899,3 +1900,36 @@ body {
.nav-item.show .dropdown-menu {
display: block;
}

.chatbot-container {
position: relative;
display: inline-block;
margin-top: 10px;
}

.chatbot-button {
position: relative;
display: inline-block;
}

.tooltip-text {
position: absolute;
bottom: 110%;
left: 50%;
transform: translateX(-50%);
width: max-content;
max-width: 200px; /* Adjust max-width as needed */
padding: 7px;
text-align: center;
color: white;
background: rgb(219, 127, 219);
border-radius: 4px;
opacity: 0;
transition: opacity 0.3s;
z-index: 10;
}

.chatbot-button:hover .tooltip-text,
.chatbot-button:focus .tooltip-text {
opacity: 1;
}
Binary file removed images/chat-bot.gif
Binary file not shown.
Binary file added images/chatbot.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 14 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1019,13 +1019,20 @@ <h5>Legal</h5>
<script src="main.js"></script>

<!--&copy;<script>document.write(new Date().getFullYear());</script-->

<a href="chatbot.html"> <button class="chatbot-button">
<img src="./images/chat-bot.gif" alt="">


</button>
</a>
<a href="chatbot.html">
<div class="fixed bottom-0 right-2 chatbot-container">
<button class="chatbot-button group">
<img class="h-20" src="./images/chatbot.gif" alt="chatbot">
<span class="tooltip-text">
Welcome to Visual Sort! <br>
How can I help You? ^_^
</span>
</button>
</div>
</a>





</div> <!-- .site-wrap -->
Expand Down

0 comments on commit 1899234

Please sign in to comment.