From 4a09da3a253c6d4168e2a93b5293289ed1e02c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=8F=8C=E6=98=8E?= Date: Mon, 2 Sep 2024 17:33:03 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat(Luma):=20=E5=8A=A0=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=89=8D=E5=90=8E=E5=B8=A7=E8=B0=83=E6=8D=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/assets/css/luma.styl | 10 ++++++++++ web/src/views/Luma.vue | 22 ++++++++++++++++------ 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/web/src/assets/css/luma.styl b/web/src/assets/css/luma.styl index 7d773b3f..62f82065 100644 --- a/web/src/assets/css/luma.styl +++ b/web/src/assets/css/luma.styl @@ -21,6 +21,7 @@ flex-flow row padding-bottom 10px justify-content center + align-items center .item { position relative @@ -45,8 +46,16 @@ } } } + + .btn-swap { + margin-right 10px + .icon{ + fill #fff + } + } } + .prompt-container { width: 100%; .input-container { @@ -131,6 +140,7 @@ .video-box { width 100% + aspect-ratio: 16/9; border-radius 10px video,img { width: 100%; diff --git a/web/src/views/Luma.vue b/web/src/views/Luma.vue index 6fa1df0d..b3760018 100644 --- a/web/src/views/Luma.vue +++ b/web/src/views/Luma.vue @@ -2,15 +2,21 @@
-
- - -
+
-
- +
{ images.value = images.value.filter(item => item !== img) } +const switchReverse = () => { + images.value = images.value.reverse() +} + From 151017ed47c9f63957963d98084ee135db3520b6 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 2/3] =?UTF-8?q?feat:=20=E7=94=9F=E6=88=90=E8=A7=86?= =?UTF-8?q?=E9=A2=91=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}} +
+ 正在生成视频 +
+
+ + + +
+
+
+
+ + +
From 3f6890da272ee86d4e7d195d0a3d5d258f4157ae 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 11:56:02 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E7=94=9F=E6=88=90=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E9=A1=B5=E9=9D=A22?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/assets/css/luma.styl | 18 ++++-- web/src/components/ui/BlackDialog.vue | 12 +++- web/src/utils/libs.js | 9 +++ web/src/views/Luma.vue | 80 ++++++++++----------------- 4 files changed, 60 insertions(+), 59 deletions(-) diff --git a/web/src/assets/css/luma.styl b/web/src/assets/css/luma.styl index 9d529a3a..b50fb16a 100644 --- a/web/src/assets/css/luma.styl +++ b/web/src/assets/css/luma.styl @@ -139,6 +139,7 @@ .item { display flex flex-flow row + align-items center padding 5px 0 cursor pointer margin-bottom 10px @@ -149,11 +150,16 @@ .left { .container { - width 60px - height 90px + width 160px position relative + .video{ + width 160px + border-radius 5px + } + .el-image { + width 160px height 90px border-radius 5px } @@ -172,7 +178,7 @@ .play { position absolute - width: 56px; + width: 100% height 100% top: 0; left: 50%; @@ -202,14 +208,13 @@ 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 - + color rgb(250 247 245) a { color rgb(250 247 245) &:hover { @@ -241,7 +246,7 @@ } .right { - min-width 350px; + min-width 200px; font-size 14px padding 0 15px @@ -279,6 +284,7 @@ height 100px background-color #2A2525 display flex + align-items center margin-bottom 10px .left { display flex diff --git a/web/src/components/ui/BlackDialog.vue b/web/src/components/ui/BlackDialog.vue index 7794afb0..4e659ad2 100644 --- a/web/src/components/ui/BlackDialog.vue +++ b/web/src/components/ui/BlackDialog.vue @@ -20,10 +20,10 @@
-