chatGPT界面

效果图:

代码:

复制代码
<!DOCTYPE html>
<html>
<head><title>复选框样式示例</title>
</head>
<style>
  * {
    padding:0;
    margin: 0;
  }
  .chatpdf{
    display: flex;
    height: 100vh;
    flex-direction: row;
  }
  .chatpdf .pannel{
    width: 255px;
    background-color: rgb(0, 21, 41);
  }
  .chatpdfBox{
    display: flex;
    flex-direction: column;
    flex: 1;
    background: linear-gradient(to bottom right,#dbe6fb, #f3f4f8);
    background-size: cover;
    background-attachment: fixed;
  }
  .chatpdfLine{
    flex: 1;
    width: 100%;
    max-width: 98%;
    margin: 0 auto;
    overflow-y: auto;
  }
  .chatpdfRow{
    margin: 20px 10px;
    display: flex;
  }
  .chatpdfAsk{
    justify-content: flex-end;
  }
  .chatpdfContent{
    display: inline-block;
    border-radius: 8px;
    padding: 6px 12px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    box-shadow:  0px 0.3px 0.9px rgba(0, 0, 0, 0.12), 0px 1.6px 3.6px rgba(0, 0, 0, 0.16);
  }
  .chatpdfAsk .chatpdfContent{
    background: linear-gradient(90deg, #2870EA 10.79%, #1B4AEF 87.08%);;
    color: #fff;
  }
  .chatpdfArea{
    display: flex;
    padding: 5px 10px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
  }
  .chatpdfArea textarea{
    flex: 1;
    border-color: #d9d9d9;
    resize: none;
    outline: none;
    padding: 0px 5px;
    height: 35px;
    line-height: 30px;
    color: #404040;
    border-radius: 10px 0px 0px 10px;
    transition: all 0.3s,height 0s;
  }
  .chatpdfArea textarea:hover{
    border-color: #4096ff;
  }
  .chatpdfArea button{
    height: 35px;
    color: #fff;
    background: linear-gradient(90deg, #2870EA 10.79%, #1B4AEF 87.08%);
    box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1);
    border: none;
    padding: 0 20px;
    border-radius: 0px 8px 8px 0px;
    cursor: pointer;
  }
  .chatpdfArea button:hover{
    background-color: #388aff;
  }
  .chatpdf .fileTitle{
    background-color: #1677ff;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin: 10px;
    font-size: 14px;
    cursor: pointer;
  }
  @media (max-width: 768px) {
    .pannel{
      display: none;
    }
  }
</style>
<body>

<div class="chatpdf">
  <div class="pannel">
    <div class="fileList">
      <div class="fileTitle">xxxx有限公司.docx</div>
      <div class="fileTitle">xxxx有限公司.pdf</div>
      <div class="fileTitle">xxxx有限公司.xlsx</div>
    </div>
  </div>
  <div class="chatpdfBox">
    <div class="chatpdfLine">
      <div class="chatpdfRow">
        <div class="chatpdfContent">我是知识库机器人,一个专门响应人类指令的大模型我是知识库机器人,一个专门响应人类指令的大模型我是知识库机器人,一个专门响应人类指令的大模型我是知识库机器人,一个专门响应人类指令的大模型我是知识库机器人,一个专门响应人类指令的大模型我是知识库机器人,一个专门响应人类指令的大模型我是知识库机器人,一个专门响应人类指令的大模型我是知识库机器人,一个专门响应人类指令的大模型我是知识库机器人,一个专门响应人类指令的大模型我是知识库机器人,一个专门响应人类指令的大模型我是知识库机器人,一个专门响应人类指令的大模型我是知识库机器人,一个专门响应人类指令的大模型</div>
      </div>
      <div class="chatpdfRow">
        <div class="chatpdfContent">我服务于人类,致力于让生活更美好</div>
      </div>
      <div class="chatpdfRow">
        <div class="chatpdfContent">我是知识库机器人,一个专门响应人类指令的大模型</div>
      </div>
      <div class="chatpdfRow chatpdfAsk">
        <div class="chatpdfContent">自建私有数据知识库 · 与知识库AI聊天</div>
      </div>
    </div>
    <div class="chatpdfArea">
      <textarea></textarea>
      <button>
        <svg t="1682141916531" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1271" width="16" height="16"><path d="M0 1024l106.496-474.112 588.8-36.864-588.8-39.936L0 0l1024 512z" fill="#ffffff" p-id="1272"></path></svg>
      </button>
    </div>
  </div>
</div>


<script>


</script>
</body>
</html>
相关推荐
charlie11451419124 分钟前
从零开始理解 CSS:让网页“活”起来的语言2
前端·css·笔记·学习·选择器·样式表·原生
浪裡遊34 分钟前
Next.js路由系统
开发语言·前端·javascript·react.js·node.js·js
mapbar_front37 分钟前
职场中的顶级能力—服务意识
前端
尽兴-1 小时前
[特殊字符] 微前端部署实战:Nginx 配置 HTTPS 与 CORS 跨域解决方案(示例版)
前端·nginx·https·跨域·cors·chrom
檀越剑指大厂2 小时前
【ChatGPT系列】ChatGPT Atlas:未来浏览器的智慧体验
chatgpt
JIngJaneIL2 小时前
助农惠农服务平台|助农服务系统|基于SprinBoot+vue的助农服务系统(源码+数据库+文档)
java·前端·数据库·vue.js·论文·毕设·助农惠农服务平台
云外天ノ☼2 小时前
待办事项全栈实现:Vue3 + Node.js (Koa) + MySQL深度整合,构建生产级任务管理系统的技术实践
前端·数据库·vue.js·mysql·vue3·koa·jwt认证
一位搞嵌入式的 genius2 小时前
前端实战开发(三):Vue+Pinia中三大核心问题解决方案!!!
前端·javascript·vue.js·前端实战
塞纳河畔的歌2 小时前
保姆级教程 | 麒麟系统安装Edge浏览器
前端·edge
多睡觉觉2 小时前
数据字典:从"猜谜游戏"到"优雅编程"的奇幻之旅
前端