From 8b14eeadf48011e39d4595507d9a0a57fa28cd4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=8F=8C=E6=98=8E?= Date: Thu, 5 Sep 2024 08:50:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=9F=E6=88=90=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/assets/css/luma.styl | 199 +++++++++++++++++++ web/src/components/ui/Generating.vue | 4 +- web/src/views/Luma.vue | 275 +++++++++++++++++++++++++-- 3 files changed, 464 insertions(+), 14 deletions(-) diff --git a/web/src/assets/css/luma.styl b/web/src/assets/css/luma.styl index 62f82065..9d529a3a 100644 --- a/web/src/assets/css/luma.styl +++ b/web/src/assets/css/luma.styl @@ -134,6 +134,192 @@ text-align left } + .list-box { + padding 0 0 0 20px + .item { + display flex + flex-flow row + padding 5px 0 + cursor pointer + margin-bottom 10px + + &:hover { + background-color #2A2525 + } + + .left { + .container { + width 60px + height 90px + position relative + + .el-image { + height 90px + border-radius 5px + } + + .duration { + position absolute + bottom 0 + right 0 + background-color rgba(14,8,8,.7) + padding 0 3px + font-family 'Input Sans' + font-size 14px + font-weight 700 + border-radius .125rem + } + + .play { + position absolute + width: 56px; + height 100% + top: 0; + left: 50%; + border none + border-radius 5px + background rgba(100, 100, 100, 0.3) + cursor pointer + color #ffffff + opacity 0 + transform: translate(-50%, 0px); + transition opacity 0.3s ease 0s + } + + &:hover { + .play { + opacity 1 + //display block + } + } + } + } + + .center { + width 100% + //border 1px solid saddlebrown + display flex + justify-content center + align-items flex-start + flex-flow column + height 90px + padding 0 20px + + .title { + padding 6px 0 + font-size 16px + font-weight 700 + + a { + color rgb(250 247 245) + &:hover { + text-decoration underline + } + } + + .model { + color #E2E8F0 + background-color #1C1616 + border 1px solid #8f8f8f + font-weight normal + font-size 14px + padding 1px 3px + border-radius 5px + margin-left 10px + + .iconfont { + font-size 12px + } + } + } + + .tags { + font-size 14px + color #d1d1d1 + padding 3px 0 + } + } + + .right { + min-width 350px; + font-size 14px + padding 0 15px + + .tools { + display flex + justify-content left + align-items center + flex-flow row + height 90px + + .btn-publish { + padding 2px 10px + + .text { + margin-right 10px + } + } + + .btn-icon { + background none + padding 6px + transition background 0.6s ease 0s + color #726E6C + + &:hover { + background #3C3737 + } + } + } + } + } + + + .task { + height 100px + background-color #2A2525 + display flex + margin-bottom 10px + .left { + display flex + justify-content left + align-items center + padding 20px + width 320px + .title { + font-size 14px + color #e1e1e1 + white-space: nowrap; /* 防止文字换行 */ + overflow: hidden; /* 隐藏溢出的内容 */ + text-overflow: ellipsis; /* 用省略号表示溢出的内容 */ + } + } + .center { + display flex + width 100% + justify-content center + .failed { + display flex + align-items center + color #E4696B + font-size 14px + } + } + .right { + display flex + width 100px + justify-content center + align-items center + } + } + } + + .pagination { + padding 10px 20px + display flex + justify-content center + } + .videos { .item { margin-bottom 20px @@ -197,4 +383,17 @@ } } + .btn { + margin-right 10px + background-color #363030 + border none + border-radius 5px + padding 5px 10px + cursor pointer + + &:hover { + background-color #5F5958 + } + } + } \ No newline at end of file diff --git a/web/src/components/ui/Generating.vue b/web/src/components/ui/Generating.vue index de3d4ddd..b1dbeb0c 100644 --- a/web/src/components/ui/Generating.vue +++ b/web/src/components/ui/Generating.vue @@ -12,7 +12,9 @@
-
正在生成歌曲
+
+ 正在生成歌曲 +
diff --git a/web/src/views/Luma.vue b/web/src/views/Luma.vue index b3760018..43600a85 100644 --- a/web/src/views/Luma.vue +++ b/web/src/views/Luma.vue @@ -30,11 +30,11 @@ -
+
@@ -42,20 +42,22 @@
循环参考图 - +
提示词优化 - +
- + + +

你的作品

- + + +
+
+
+
+
+ + + +
+
+
+ +
{{item.prompt_ext}}
+
+
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ +
+
+
+ {{item.title}} + {{item.prompt}} +
+
+
+
+ {{item.err_msg}} +
+ 正在生成视频 +
+
+ + + +
+
+
+
+ + +