| | |
| | | <div class="chat-empty"> |
| | | <!-- title --> |
| | | <div class="center-container"> |
| | | <div class="title">工业大模型 AI</div> |
| | | <div class="avatar"><img src="@/assets/ai/zhuanlu/assistant.png" /></div> |
| | | <div class="gradient-text">欢迎来到转炉煤气调度大模型</div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | <script setup lang="ts"> |
| | | const promptList = [ |
| | | { |
| | | prompt: '今天气怎么样?' |
| | | }, |
| | | { |
| | | prompt: '写一首好听的诗歌?' |
| | | } |
| | | ] // prompt 列表 |
| | | |
| | | const emits = defineEmits(['onPrompt']) |
| | | |
| | | /** 选中 prompt 点击 */ |
| | | const handlerPromptClick = async ({ prompt }) => { |
| | | emits('onPrompt', prompt) |
| | | } |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | .chat-empty { |
| | |
| | | justify-content: center; |
| | | width: 100%; |
| | | height: 100%; |
| | | |
| | | .center-container { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | margin-top: 30%; |
| | | display: inline-block; |
| | | |
| | | .title { |
| | | font-size: 28px; |
| | | font-weight: bold; |
| | | text-align: center; |
| | | color: #8FD6FE; |
| | | div { |
| | | float: left; |
| | | } |
| | | |
| | | .role-list { |
| | | display: flex; |
| | | flex-direction: row; |
| | | flex-wrap: wrap; |
| | | align-items: center; |
| | | justify-content: center; |
| | | width: 460px; |
| | | margin-top: 20px; |
| | | |
| | | .role-item { |
| | | display: flex; |
| | | justify-content: center; |
| | | width: 180px; |
| | | line-height: 50px; |
| | | border: 1px solid #e4e4e4; |
| | | border-radius: 10px; |
| | | margin: 10px; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .role-item:hover { |
| | | background-color: rgba(243, 243, 243, 0.73); |
| | | } |
| | | .avatar { |
| | | background: transparent; |
| | | width: 50px; |
| | | height: 50px; |
| | | position: relative; |
| | | } |
| | | /* 渐变文字样式 */ |
| | | .gradient-text { |
| | | font-family: Alimama ShuHeiTi, Alimama ShuHeiTi; |
| | | font-weight: bold; |
| | | font-size: 24px; |
| | | background: linear-gradient(0deg, #49FFD3 0%, #4585FF 100%); |
| | | -webkit-background-clip: text; |
| | | color: transparent; |
| | | margin: 4px 0 0 10px; |
| | | } |
| | | } |
| | | } |