tailwind模仿chatgpt对话聊天窗口布局代码
代码语言:html
所属分类:布局界面
代码描述:tailwind模仿chatgpt对话聊天窗口布局代码
代码标签: tailwind 模仿 chatgp t对话 聊天 窗口 布局 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html> <head> <meta charset="utf-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/tailwind.2.2.7.css"> <style> body{ color: #d1d5db; } pre{ background: rgba(0,0,0,.5); padding: 10px; margin: 10px 0; } #chatbody{ height: 400px; overflow-y: scroll; } </style> </head> <body> <div > <div class="bg-gray-900 flex flex-col h-full"> <main class="flex-grow-1 h-full"> <div class="h-full w-full"> <div class="relative w-full h-full flex flex-col "> <div class=" h-full" id="chatbody"> <div class="flex w-full bg-gray-800"> <div class="w-16 flex-shrink-0 flex justify-center py-3"> <div class="h-8 w-8 rounded-full bg-indigo-600 flex items-center justify-center"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="h-6 w-6 text-white"><path stroke-linecap="round" stroke-linejoin="round" d="M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 01-2.555-.337A5.972 5.972 0 015.41 20.97a5.969 5.969 0 01-.474-.065 4.48 4.48 0 00.978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25z"></path></svg></div> </div> <div class="p-3 prose prose-invert"> <p>你好,我是客服</p> </div> </div> <div class="flex w-full"> <div class="w-16 flex-shrink-0 flex justify-center py-3"> <div class="h-8 w-8 rounded-full bg-gray-600 flex items-center justify-center"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="h-6 w-6 text-white"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"></path></svg></div> </div> <div class="p-3 prose prose-invert"> <p>bfwsoa</p> </div> </div> <div class="flex w-full bg-gray-800"> <div class="w-16 flex-shrink-0 flex justify-center py-3"> <div class="h-8 w-8 rounded-full bg-indigo-600 flex items-center justify-center"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="h-6 w-6 text-white"><path stroke-linecap="round" stroke-linejoin="round" d="M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 01-2.555-.337A5.972 5.972 0 015.41 20.97a5.969 5.969 0 01-.474-.065 4.48 4.48 0 00.978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25z"></path></svg></div> </div> <div class="p-3 prose prose-invert"> <p>I'm sorry, but "bfwsoa" does not provide any context or information for me to answer any questions. Please provide more information or context for me to assist you.</p> </div> </div> <div class="flex w-full"> <div class="w-16 flex-shrink-0 flex justify-center py-3"> <div class="h-8 w-8 rounded-full bg-gray-600 flex items-center justify-center"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="h-6 w-6 text-white"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"></path></svg></div> </div> <div class="p-3 prose prose-invert"> <p>bfwsoa框架是啥</p> </div> </div> <div class="flex w-full bg-gray-800"> <div class="w-16 flex-shrink-0 flex justify-center py-3"> <div class="h-8 w-8 rounded-full bg-indigo-600 flex items-center justify-center"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="h-6 w-6 text-white"><path stroke-linecap="round" stroke-linejoin="round" d="M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 01-2.555-.337A5.972 5.972 0 015.41 20.97a5.969 5.969 0 01-.474-.065 4.48 4.48 0 00.978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25z"></path></svg></div> </div> <div class="p-3 prose prose-invert"> <p>bfwsoa框架是一种基于PHP语言的轻量级开发框架。它提供了一系列的工具和组件,使得开发者可以快速地构建Web应用程序和服务。bfwsoa框架采用了面向服务的架构(SOA),并支持RESTful API和SOAP协议。它还提供了一些常用的功能,如数据库访问、缓存、日志记录等。bfwsoa框架的设计理念是简单、易用、高效,适用于中小型Web应用程序的开发。</p> </div> </div> <div class="flex w-full"> <div class="w-16 flex-shrink-0 flex justify-center py-3"> <div class="h-8 w-8 rounded-full bg-gray-600 flex items-center justify-center"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="h-6 w-6 text-white"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"></path></svg></div> </div> <div class="p-3 prose prose-invert"> <p>bfwsoa的controller怎么写</p> </div> </div> <div class="flex w-full bg-g.........完整代码请登录后点击上方下载按钮下载查看
网友评论0