88 @click =" toggleChat"
99 :class =" { 'chat-open': showChat }"
1010 >
11- <svg
11+ <img
1212 v-if =" !showChat"
13- viewBox =" 0 0 16 16"
14- xmlns =" http://www.w3.org/2000/svg"
15- fill =" #ffffff"
16- >
17- <g id =" SVGRepo_iconCarrier" >
18- <path fill-rule =" evenodd" clip-rule =" evenodd" d =" M8.48 4h4l.5.5v2.03h.52l.5.5V8l-.5.5h-.52v3l-.5.5H9.36l-2.5 2.76L6 14.4V12H3.5l-.5-.64V8.5h-.5L2 8v-.97l.5-.5H3V4.36L3.53 4h4V2.86A1 1 0 0 1 7 2a1 1 0 0 1 2 0 1 1 0 0 1-.52.83V4zM12 8V5H4v5.86l2.5.14H7v2.19l1.8-2.04.35-.15H12V8zm-2.12.51a2.71 2.71 0 0 1-1.37.74v-.01a2.71 2.71 0 0 1-2.42-.74l-.7.71c.34.34.745.608 1.19.79.45.188.932.286 1.42.29a3.7 3.7 0 0 0 2.58-1.07l-.7-.71zM6.49 6.5h-1v1h1v-1zm3 0h1v1h-1v-1z" ></path >
19- </g >
20- </svg >
13+ src =" ../assets/icons/bot-icon.webp"
14+ alt =" Bot icon"
15+ class =" bot-icon"
16+ />
2117 <svg
2218 v-else
2319 xmlns =" http://www.w3.org/2000/svg"
3430 </button >
3531
3632 <div v-if =" !showChat" class =" highlight-container" >
37- <div class =" tooltip-text" >Try our new Virtual Assistant! </div >
33+ <div class =" tooltip-text" >< b >Need help?</ b >< br >I'm an AI chatbot, trained to answer all your questions. </div >
3834 </div >
3935 </div >
4036
@@ -162,8 +158,8 @@ mobile-breakpoint = 768px
162158
163159.chat-toggle {
164160 position : relative
165- background : $primary-color
166- border : none
161+ background : white
162+ border : 2 px solid $primary-color
167163 border-radius : 50%
168164 width : 56px
169165 height : 56px
@@ -174,9 +170,18 @@ mobile-breakpoint = 768px
174170 box-shadow : 0 4px 12px rgba (0 ,0 ,0 ,0.15 )
175171 transition : transform 0.3s ease , box-shadow 0.3s ease
176172 z-index : 10000
173+ padding : 0
174+ overflow : hidden
175+
176+ .bot-icon {
177+ width : calc (100% - 4px )
178+ height : calc (100% - 4px )
179+ border-radius : 50%
180+ object-fit : cover
181+ }
177182
178183 svg {
179- color : white
184+ color : $primary-color
180185 width : 32px
181186 height : 32px
182187 }
@@ -201,18 +206,19 @@ mobile-breakpoint = 768px
201206}
202207
203208.tooltip-text {
204- background : $primary-color ;
205- color : white ;
206- padding : 8 px 16 px ;
209+ background : white ;
210+ color : black ;
211+ padding : 12 px 20 px ;
207212 border-radius : 20px ;
208213 font-size : 0.95rem ; /* Increase this value to make the tooltip text larger */
209214 animation : float 3s ease-in-out infinite ;
210215 position : relative ;
211- text-align : center ;
212- white-space : nowrap ;
216+ text-align : right ;
217+ white-space : normal ;
213218 font-weight : 500 ;
214- box-shadow : 0 4px 12px rgba (0 ,0 ,0 ,0.1 );
215- max-width : 90vw ;
219+ box-shadow : 0 0 15px $primary-color ;
220+ max-width : 250px ;
221+ min-width : 200px ;
216222 overflow : visible ;
217223 text-overflow : clip ;
218224}
@@ -384,8 +390,10 @@ mobile-breakpoint = 768px
384390
385391 .tooltip-text {
386392 font-size : 0.9rem ; /* Adjust this value to change the tooltip text size on mobile devices */
387- padding : 6px 12px ;
388- white-space : nowrap ;
393+ padding : 10px 16px ;
394+ white-space : normal ;
395+ max-width : 90vw ;
396+ min-width : 180px ;
389397 }
390398}
391399 </style >
0 commit comments