@ -21,6 +21,167 @@
< / head >
< body class = "bg-gray-200 font-poppinsLight relative" >
< div class = "w-[800px] h-[700px] bg-white rounded-md border border-gray-100 shadow-md z-50 fixed right-9 bottom-24 grid grid-cols-3 hidden"
id="chatContainer">
<!-- LEFT SIDE - CHATS -->
< div class = "h-full border-r border-gray-200 bg-gray-50 flex flex-col text-secondosiblue" >
<!-- HEADER -->
< div class = "w-full flex items-center gap-1 py-3 px-3 border-b border-gray-100 text-[17px]" >
< svg xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke-width = "1.5"
stroke="currentColor" class="w-5">
< path stroke-linecap = "round" stroke-linejoin = "round"
d="M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 0 1 .865-.501 48.172 48.172 0 0 0 3.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z" />
< / svg >
< p > Chats< / p >
< / div >
<!-- CHATS -->
< div class = "w-full flex flex-col gap-1 py-3 px-3 border-b border-gray-100 text-sm" >
< div class = "w-full flex justify-between items-center" >
< p class = "text-secondosiblue font-poppinsBold" > Nataly< / p >
< div
class="w-[20px] h-[20px] bg-osiblue rounded-full shadow-md flex justify-center items-center text-white text-[10px]">
< p > 22< / p >
< / div >
< / div >
< p class = "text-gray-500 text-xs" > Hi, i need help woth web hosting...< / p >
< p class = "text-gray-500 opacity-70 text-xs" > 12:00PM< / p >
< / div >
< / div >
<!-- RIGHT SIDE - CONVERSATION -->
< div class = "col-span-2 h-full" >
<!-- STARTUP CONTAINER -->
< div class = "w-full h-full flex flex-col justify-center items-center text-center hidden" >
< img src = "{% static 'images/ositcom_logos/osinablue.png' %}" alt = "" srcset = "" >
< p class = "text-gray-500" > Text Here< / p >
< / div >
< div class = "w-full h-full flex flex-col justify-between" >
<!-- HEADER -->
< div
class="w-full flex items-center gap-1 py-3 px-3 border-b border-gray-100 text-[17px] text-secondosiblue">
< div
class="w-[30px] h-[30px] rounded-full shadow-md text-white flex justify-center items-center bg-osiblue">
< svg xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke-width = "1.5"
stroke="currentColor" class="w-5">
< path stroke-linecap = "round" stroke-linejoin = "round"
d="M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z" />
< / svg >
< / div >
< p > Nataly< / p >
< / div >
<!-- CONVERSATION -->
< div class = "w-full h-full flex-l flex flex-col gap-3 overflow-y-auto p-3" >
< div class = "w-full flex items-end justify-end gap-2" >
< div
class="w-fit px-3 py-2 rounded-l-3xl rounded-tr-3xl text-white shadow-md text-sm leading-6 bg-opacity-70 bg-osiblue ">
< p class = "break-all" > hi how are you< / p >
< / div >
< div
class="w-[30px] h-[30px] rounded-full shadow-md text-white flex justify-center items-center bg-osiblue uppercase text-xs">
< p > nn< / p >
< / div >
< / div >
< div class = "w-full flex items-end justify-start gap-2" >
< div
class="w-[30px] h-[30px] rounded-full shadow-md text-white flex justify-center items-center bg-osiblue">
< svg xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke-width = "1.5"
stroke="currentColor" class="w-5">
< path stroke-linecap = "round" stroke-linejoin = "round"
d="M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z" />
< / svg >
< / div >
< div
class="w-fit bg-gray-50 px-3 py-2 rounded-r-3xl rounded-tl-3xl text-secondosiblue text-sm leading-7 bg-opacity-50 shadow-md border border-gray-100">
< p class = "break-all" > hi how are you< / p >
< / div >
< / div >
< / div >
<!-- INPUT FORM -->
< form class = "px-5 pb-5 bg-transparent relative" id = "sendMessage" >
<!-- INCLUDE TYPING HERE -->
< div class = "mb-2 flex justify-start items-center gap-2 absolute -top-11 " >
< div
class="w-[30px] h-[30px] rounded-full shadow-md text-white flex justify-center items-center bg-osiblue uppercase text-xs">
< p > nn< / p >
< / div >
< div
class="w-fit rounded-r-3xl rounded-tl-3xl px-2 py-2 bg-gray-50 border border-gray-100 shadow-md flex space-x-1 justify-start items-center">
< div class = "h-2 w-2 bg-secondosiblue rounded-full animate-typing" > < / div >
< div class = "h-2 w-2 bg-osiblue rounded-full animate-typing" style = "animation-delay: 0.2s;" >
< / div >
< div class = "h-2 w-2 bg-fifthosiblue rounded-full animate-typing"
style="animation-delay: 0.4s;">< / div >
< / div >
< / div >
<!-- END TYPING -->
< div
class="w-full bg-white h-fit rounded-md border border-gray-200 flex items-center justify-between">
< textarea name = "message" id = "dynamicTextarea" onkeyup = "adjustTextHeight(this);"
placeholder="Write your message..."
class="w-full outline-none p-3 resize-none h-[50px] max-h-[200px] duration-500">< / textarea >
< div class = "h-full right-0 top-0 px-3 flex items-center gap-2 text-osiblue" >
< div >
< svg xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24"
stroke-width="1.5" stroke="currentColor" class="w-5 notFilledSvg">
< path stroke-linecap = "round" stroke-linejoin = "round"
d="m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13" />
< / svg >
< / div >
< button type = "submit" class = "hidden" >
< svg xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24"
stroke-width="1.5" stroke="currentColor" class="w-5 notFilledSvg">
< path stroke-linecap = "round" stroke-linejoin = "round"
d="M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5" />
< / svg >
< / button >
< / div >
< / div >
< / form >
< / div >
< / div >
< / div >
< div class = "w-fit px-5 py-2 rounded-full shadow-md flex justify-center items-center bg-osiblue fixed bottom-5 right-9 z-30 gap-2 text-white text-sm border-4 border-white hover:shadow-2xl duration-500 cursor-pointer"
id="openChatContainer">
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" class = "w-6 text-white notFilledSvg" fill = "none" >
< path d = "M8 13.5H16M8 8.5H12" stroke = "currentColor" stroke-width = "1.5" stroke-linecap = "round"
stroke-linejoin="round" />
< path
d="M6.09881 19C4.7987 18.8721 3.82475 18.4816 3.17157 17.8284C2 16.6569 2 14.7712 2 11V10.5C2 6.72876 2 4.84315 3.17157 3.67157C4.34315 2.5 6.22876 2.5 10 2.5H14C17.7712 2.5 19.6569 2.5 20.8284 3.67157C22 4.84315 22 6.72876 22 10.5V11C22 14.7712 22 16.6569 20.8284 17.8284C19.6569 19 17.7712 19 14 19C13.4395 19.0125 12.9931 19.0551 12.5546 19.155C11.3562 19.4309 10.2465 20.0441 9.14987 20.5789C7.58729 21.3408 6.806 21.7218 6.31569 21.3651C5.37769 20.6665 6.29454 18.5019 6.5 17.5"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
< / svg >
< p > Osichat< / p >
< / div >
< div class = "w-[60px] h-[60px] rounded-full shadow-md flex justify-center items-center bg-osiblue fixed bottom-5 right-9 z-30 text-white text-sm border-4 border-white hidden hover:shadow-2xl duration-500 cursor-pointer"
id="closeChatContainer">
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" class = "w-6 text-white notFilledSvg" fill = "none" >
< path d = "M19.0005 4.99988L5.00049 18.9999M5.00049 4.99988L19.0005 18.9999" stroke = "currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
< / svg >
< / div >
<!-- USERS ACTIVITIES BUTTON ON MOBILE -->
@ -901,7 +1062,8 @@
<!-- MODULES SECTION -->
< div class = "w-full h-fit hidden xlg1:grid grid-cols-1 s:grid-cols-2 xlg1:grid-cols-3 gap-5 px-5 s:px-9 py-5" >
< div
class="w-full h-fit hidden xlg1:grid grid-cols-1 s:grid-cols-2 xlg1:grid-cols-3 gap-5 px-5 s:px-9 py-5">
< div class = "bg-white shadow-md rounded-md p-5" >
< div class = "w-full h-full flex flex-col justify-between items-center" >
< div class = "w-full flex justify-between items-center" >
@ -945,21 +1107,30 @@
<!-- TOP MODULES ON MOBILE -->
< div class = "block xlg1:hidden px-5 s:px-9 py-5" >
< div class = "bg-white shadow-sm rounded-md flex justify-between items-center text-secondosiblue text-[17px] py-5 px-3 cursor-pointer" id = "openAccessibilitiesDropDown" >
< div class = "bg-white shadow-sm rounded-md flex justify-between items-center text-secondosiblue text-[17px] py-5 px-3 cursor-pointer"
id="openAccessibilitiesDropDown">
< div class = "flex justify-start items-center gap-2" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" class = "w-6" fill = "none" >
< path d = "M15.5 6.5C15.5 8.433 13.933 10 12 10C10.067 10 8.5 8.433 8.5 6.5C8.5 4.567 10.067 3 12 3C13.933 3 15.5 4.567 15.5 6.5Z" stroke = "currentColor" stroke-width = "1.5" / >
< path d = "M22 17.5C22 19.433 20.433 21 18.5 21C16.567 21 15 19.433 15 17.5C15 15.567 16.567 14 18.5 14C20.433 14 22 15.567 22 17.5Z" stroke = "currentColor" stroke-width = "1.5" / >
< path d = "M9 17.5C9 19.433 7.433 21 5.5 21C3.567 21 2 19.433 2 17.5C2 15.567 3.567 14 5.5 14C7.433 14 9 15.567 9 17.5Z" stroke = "currentColor" stroke-width = "1.5" / >
< path
d="M15.5 6.5C15.5 8.433 13.933 10 12 10C10.067 10 8.5 8.433 8.5 6.5C8.5 4.567 10.067 3 12 3C13.933 3 15.5 4.567 15.5 6.5Z"
stroke="currentColor" stroke-width="1.5" />
< path
d="M22 17.5C22 19.433 20.433 21 18.5 21C16.567 21 15 19.433 15 17.5C15 15.567 16.567 14 18.5 14C20.433 14 22 15.567 22 17.5Z"
stroke="currentColor" stroke-width="1.5" />
< path
d="M9 17.5C9 19.433 7.433 21 5.5 21C3.567 21 2 19.433 2 17.5C2 15.567 3.567 14 5.5 14C7.433 14 9 15.567 9 17.5Z"
stroke="currentColor" stroke-width="1.5" />
< / svg >
< p > Accessibilites< / p >
< / div >
< svg xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke-width = "1.5" stroke = "currentColor" class = "w-5 arrowDown" >
< svg xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke-width = "1.5"
stroke="currentColor" class="w-5 arrowDown">
< path stroke-linecap = "round" stroke-linejoin = "round" d = "m19.5 8.25-7.5 7.5-7.5-7.5" / >
< / svg >
< svg xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke-width = "1.5" stroke = "currentColor" class = "w-5 arrowUp hidden" >
< svg xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke-width = "1.5"
stroke="currentColor" class="w-5 arrowUp hidden">
< path stroke-linecap = "round" stroke-linejoin = "round" d = "m4.5 15.75 7.5-7.5 7.5 7.5" / >
< / svg >
< / div >
@ -1241,6 +1412,10 @@
<!-- MODULES DROP DOWN ON MOBILE -->
< script type = "text/javascript" src = '{% static "js/accessibilities-dropdown.js" %}' > < / script >
< script type = "text/javascript" src = '{% static "js/osichat/textarea.js" %}' > < / script >
< script type = "text/javascript" src = '{% static "js/osichat/chat-toggle.js" %}' > < / script >
< / body >
< / html >