diff --git a/components/home/lovart-home.tsx b/components/home/lovart-home.tsx index 2a9f100e8..fc778fef5 100644 --- a/components/home/lovart-home.tsx +++ b/components/home/lovart-home.tsx @@ -72,6 +72,7 @@ import { normalizeLovartHomeSidebarConfig, type LovartHomeSidebarItemKey, } from "@/lib/home/lovart-sidebar-config"; +import { BrandTopBar } from "@/components/layout/brand-top-bar"; type ImageAnnotatorComponent = typeof import("@/components/image-annotator").ImageAnnotator; @@ -1436,30 +1437,12 @@ export function LovartHome({ return (
-
-
- - -
+ window.scrollTo({ top: 0, behavior: "smooth" })} + shouldInvertLogo={shouldInvertLogo} + siteName={siteName || "Lovart"} + > @@ -1705,9 +1688,7 @@ export function LovartHome({ 登录 )} -
-
-
+ -
-
-
-
- -
- {logo ? ( - {siteName} - ) : ( -
- -
- )} -
-
{siteName}
-
风格化 PRO
-
-
-
+ { + window.location.href = "/"; + }} + position="sticky" + siteName={siteName} + > + + + 执行者 + + + {generating ? ( + + ) : ( + + )} + 执行 + + { + setSelections({}); + setCurrentResult(null); + }} + > + + 重置 + + toast.info("个人中心入口已保留,可在首页打开完整账户面板")} + title="个人中心" + > + + + -
+
+
+
+
+ 上传图片 + 支持拖拽上传 +
- - - -
-
-
- -
-
-
-
-

- 风格化 PRO -

-

- 上传图片,选择下方按钮组合,按执行生成最终图片。 -

-
-
- - {selectedOptionLabels.length - ? `已选择 ${selectedOptionLabels.length} 项` - : "等待选择"} - - {disabledReason ? ( - - {disabledReason} - - ) : null} -
-
- -
-
-
-
- 上传图片 - 支持拖拽上传 -
- - { - void handleFile(event.target.files?.[0]); - event.currentTarget.value = ""; - }} - ref={fileInputRef} - type="file" + {sourceImageUrl ? ( + 上传图片 -
- -
-
- 历史记录 - 最近 4 条 -
-
- {history.length > 0 ? ( - history.map((item) => ( - - )) + ) : ( + + {uploading ? ( + ) : ( -
- 生成后会在这里保存历史。 -
+ )} -
-
-
- -
-
-
- 生图结果 -

- 生成后拖动滑块查看原图与结果图。 -

-
-
- - -
-
- -
+ 点击上传,或拖入图片 + + )} + + { + void handleFile(event.target.files?.[0]); + event.currentTarget.value = ""; + }} + ref={fileInputRef} + type="file" + />
{configLoading ? ( -
+
正在加载配置
@@ -836,38 +643,19 @@ export function StyleProWorkspace({ const selectedIds = selections[category.id] || []; return (
-
+
{category.title}
-
- {category.required ? ( - - 必选 - - ) : ( - - 可选 - - )} - - 已选 {selectedIds.length}/{category.maxSelections} - - {category.description ? ( - - {category.description} - - ) : null} -
{category.options.map((option) => { const selected = selectedIds.includes(option.id); return (
-
); @@ -895,56 +677,93 @@ export function StyleProWorkspace({ )}
-
-
-

- - 已选组合 -

-

- 按钮提示词只在服务端参与生成,前台仅展示按钮名称。 -

+
+
+
+
+ 生图结果 +

+ 生成后拖动滑块查看原图与结果图。 +

+
+
+ + +
+
+
-
- - + )) ) : ( - +
+ 生成后会在这里保存历史。 +
)} - 执行 - +
- {selectedOptionLabels.length > 0 ? ( -
- {selectedOptionLabels.map((label) => ( - - {label} - - ))} -
- ) : ( -
- 还没有选择按钮。 -
- )}