feat: UI animation enhancements across all major pages
P1 - Critical UX feedback: - Add scale-in + slide-up-in entrance animations to profile popover and notification panel - Port SmoothedProgressBar to EcommercePage (4 generation tools: clone, detail, tryOn, productSet) - Add result-reveal stagger animation to ecommerce result grids - Add heart-pop spring animation to CommunityPage favorite toggle P2 - Visual polish: - Add scroll-entrance IntersectionObserver animations for HomePage feature sections and experience section - Add chat-message-in entrance animation to WorkbenchPage message rows - Fix prefers-reduced-motion accessibility in WelcomeSplash canvas (skip animation, instant entry) P3 - CSS consolidation: - Remove conflicting .page-motion definition from legacy-pages.css (keep translateY version from legacy-components.css) - Consolidate skeleton-shimmer: remove opacity-pulse keyframe from primitives.css, unify with gradient sweep - Wire up --ease-spring token for heart-pop animation - Add :active press states (scale 0.97) to topbar buttons, brand lockup Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -477,8 +477,9 @@ function CommunityPage({ projects, isAuthenticated, onStartCreate, onOpenProject
|
|||||||
<div className="community-card-actions">
|
<div className="community-card-actions">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={isFavorite ? "is-active" : ""}
|
className={isFavorite ? "is-active heart-animate" : ""}
|
||||||
aria-pressed={isFavorite}
|
aria-pressed={isFavorite}
|
||||||
|
key={isFavorite ? `fav-${cardId}` : `unfav-${cardId}`}
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
void handleToggleFavorite(item, cardId);
|
void handleToggleFavorite(item, cardId);
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import {
|
|||||||
SkinOutlined,
|
SkinOutlined,
|
||||||
} from "@ant-design/icons";
|
} from "@ant-design/icons";
|
||||||
import { useEffect, useRef, useState, type CSSProperties, type ChangeEvent, type DragEvent, type ReactNode } from "react";
|
import { useEffect, useRef, useState, type CSSProperties, type ChangeEvent, type DragEvent, type ReactNode } from "react";
|
||||||
|
import { EcommerceProgressBar } from "./EcommerceProgressBar";
|
||||||
|
|
||||||
const OSS_MUBAN = "https://stringtest.oss-cn-hangzhou.aliyuncs.com/muban";
|
const OSS_MUBAN = "https://stringtest.oss-cn-hangzhou.aliyuncs.com/muban";
|
||||||
const ecommerceGenerated = `${OSS_MUBAN}/ecommerce-carousel-generated.png`;
|
const ecommerceGenerated = `${OSS_MUBAN}/ecommerce-carousel-generated.png`;
|
||||||
@@ -2402,6 +2403,7 @@ function ProductClonePage(_props: ProductClonePageProps = {}) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer className="product-clone-panel__footer">
|
<footer className="product-clone-panel__footer">
|
||||||
|
{detailStatus === "generating" ? <EcommerceProgressBar status="generating" label="A+详情页" /> : null}
|
||||||
<button type="button" className="product-clone-primary" disabled={!canGenerateDetail} onClick={handleDetailGenerate}>
|
<button type="button" className="product-clone-primary" disabled={!canGenerateDetail} onClick={handleDetailGenerate}>
|
||||||
{detailStatus === "generating" ? <LoadingOutlined /> : null}
|
{detailStatus === "generating" ? <LoadingOutlined /> : null}
|
||||||
{detailPrimaryLabel}
|
{detailPrimaryLabel}
|
||||||
@@ -2547,6 +2549,7 @@ function ProductClonePage(_props: ProductClonePageProps = {}) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer className="product-clone-panel__footer">
|
<footer className="product-clone-panel__footer">
|
||||||
|
{tryOnStatus === "generating" ? <EcommerceProgressBar status="generating" label="服饰穿戴图" /> : null}
|
||||||
<button type="button" className="product-clone-primary" disabled={!canGenerateTryOn} onClick={handleTryOnGenerate}>
|
<button type="button" className="product-clone-primary" disabled={!canGenerateTryOn} onClick={handleTryOnGenerate}>
|
||||||
{tryOnStatus === "generating" ? <LoadingOutlined /> : null}
|
{tryOnStatus === "generating" ? <LoadingOutlined /> : null}
|
||||||
{tryOnPrimaryLabel}
|
{tryOnPrimaryLabel}
|
||||||
@@ -2592,7 +2595,7 @@ function ProductClonePage(_props: ProductClonePageProps = {}) {
|
|||||||
<span>{productSetPreviewCards[0].label}</span>
|
<span>{productSetPreviewCards[0].label}</span>
|
||||||
</button>
|
</button>
|
||||||
<div className="product-set-flow-arrow" aria-hidden="true" />
|
<div className="product-set-flow-arrow" aria-hidden="true" />
|
||||||
<div className="product-set-card-grid">
|
<div className="product-set-card-grid result-reveal">
|
||||||
{productSetPreviewCards.slice(1).map((card) => (
|
{productSetPreviewCards.slice(1).map((card) => (
|
||||||
<button key={card.id} type="button" onClick={() => openProductSetPreview(card)}>
|
<button key={card.id} type="button" onClick={() => openProductSetPreview(card)}>
|
||||||
<img src={card.src} alt={card.label} />
|
<img src={card.src} alt={card.label} />
|
||||||
@@ -2605,6 +2608,7 @@ function ProductClonePage(_props: ProductClonePageProps = {}) {
|
|||||||
<section className="product-set-empty-preview" aria-live="polite">
|
<section className="product-set-empty-preview" aria-live="polite">
|
||||||
{productSetStatus === "generating" ? <LoadingOutlined /> : <FileImageOutlined />}
|
{productSetStatus === "generating" ? <LoadingOutlined /> : <FileImageOutlined />}
|
||||||
<strong>{productSetStatus === "generating" ? "正在生成" : "等待生成"}</strong>
|
<strong>{productSetStatus === "generating" ? "正在生成" : "等待生成"}</strong>
|
||||||
|
{productSetStatus === "generating" ? <EcommerceProgressBar status="generating" label="商品套图" /> : null}
|
||||||
<span>{productSetStatus === "generating" ? "AI 正在整理主图、场景、细节与卖点图。" : "上传商品原图并填写信息后,AI 将为您生成专业的电商商品图"}</span>
|
<span>{productSetStatus === "generating" ? "AI 正在整理主图、场景、细节与卖点图。" : "上传商品原图并填写信息后,AI 将为您生成专业的电商商品图"}</span>
|
||||||
</section>
|
</section>
|
||||||
)}
|
)}
|
||||||
@@ -2650,7 +2654,7 @@ function ProductClonePage(_props: ProductClonePageProps = {}) {
|
|||||||
<span>原图素材</span>
|
<span>原图素材</span>
|
||||||
</button>
|
</button>
|
||||||
<div className="clone-ai-flow-arrow" aria-hidden="true" />
|
<div className="clone-ai-flow-arrow" aria-hidden="true" />
|
||||||
<div className="clone-ai-result-grid">
|
<div className="clone-ai-result-grid result-reveal">
|
||||||
{clonePreviewCards.map((card) => (
|
{clonePreviewCards.map((card) => (
|
||||||
<button key={card.id} type="button" onClick={() => openProductSetPreview(card)}>
|
<button key={card.id} type="button" onClick={() => openProductSetPreview(card)}>
|
||||||
<img src={card.src} alt={card.label} />
|
<img src={card.src} alt={card.label} />
|
||||||
@@ -2663,6 +2667,7 @@ function ProductClonePage(_props: ProductClonePageProps = {}) {
|
|||||||
<section className="clone-ai-empty-state" aria-live="polite">
|
<section className="clone-ai-empty-state" aria-live="polite">
|
||||||
{status === "generating" ? <LoadingOutlined /> : <FileImageOutlined />}
|
{status === "generating" ? <LoadingOutlined /> : <FileImageOutlined />}
|
||||||
<strong>{status === "generating" ? "正在生成" : "等待生成"}</strong>
|
<strong>{status === "generating" ? "正在生成" : "等待生成"}</strong>
|
||||||
|
{status === "generating" ? <EcommerceProgressBar status="generating" label={`${selectedCloneOutput.label}生成`} /> : null}
|
||||||
<span>
|
<span>
|
||||||
{status === "generating"
|
{status === "generating"
|
||||||
? `AI 正在为 ${platform} / ${market} 整理${selectedCloneOutput.label}。`
|
? `AI 正在为 ${platform} / ${market} 整理${selectedCloneOutput.label}。`
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import { useSmoothedProgress } from "../../hooks/useSmoothedProgress";
|
||||||
|
|
||||||
|
interface EcommerceProgressBarProps {
|
||||||
|
status: "idle" | "generating" | "done" | "failed" | string;
|
||||||
|
label?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
function mapStatus(status: string): "running" | "completed" | "failed" {
|
||||||
|
if (status === "done") return "completed";
|
||||||
|
if (status === "failed") return "failed";
|
||||||
|
if (status === "generating" || status === "modeling") return "running";
|
||||||
|
return "running";
|
||||||
|
}
|
||||||
|
|
||||||
|
export function EcommerceProgressBar({ status, label }: EcommerceProgressBarProps) {
|
||||||
|
const progress = mapStatus(status) === "running" ? 50 : 100;
|
||||||
|
const smoothed = useSmoothedProgress(progress, mapStatus(status));
|
||||||
|
|
||||||
|
if (status === "idle") return null;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="ecommerce-progress-bar">
|
||||||
|
<span className="ecommerce-progress-bar__label">{label || "AI 正在生成"}</span>
|
||||||
|
<div className="ecommerce-progress-bar__track">
|
||||||
|
<div className="ecommerce-progress-bar__fill" style={{ width: `${smoothed}%` }} />
|
||||||
|
</div>
|
||||||
|
<span className="ecommerce-progress-bar__value">{smoothed}%</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -9,6 +9,16 @@ import {
|
|||||||
} from "@ant-design/icons";
|
} from "@ant-design/icons";
|
||||||
import { useCallback, useEffect, useMemo, useRef, useState, type CSSProperties } from "react";
|
import { useCallback, useEffect, useMemo, useRef, useState, type CSSProperties } from "react";
|
||||||
import WelcomeSplash from "./WelcomeSplash";
|
import WelcomeSplash from "./WelcomeSplash";
|
||||||
|
import { useScrollEntrance } from "../../hooks/useScrollEntrance";
|
||||||
|
|
||||||
|
function ScrollEntrance({ children, className, ...rest }: { children: React.ReactNode; className?: string } & React.HTMLAttributes<HTMLElement>) {
|
||||||
|
const { ref, isVisible } = useScrollEntrance<HTMLElement>();
|
||||||
|
return (
|
||||||
|
<section ref={ref} className={`${className ?? ""} scroll-entrance${isVisible ? " is-visible" : ""}`} {...rest}>
|
||||||
|
{children}
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const OSS_MUBAN = "https://stringtest.oss-cn-hangzhou.aliyuncs.com/muban";
|
const OSS_MUBAN = "https://stringtest.oss-cn-hangzhou.aliyuncs.com/muban";
|
||||||
const heroImage1 = `${OSS_MUBAN}/hero-1.png`;
|
const heroImage1 = `${OSS_MUBAN}/hero-1.png`;
|
||||||
@@ -282,7 +292,7 @@ function HomePage({ onOpenGenerate, onOpenEcommerce, onOpenScriptReview, onOpenT
|
|||||||
|
|
||||||
<main className="omni-home__feature-pages" aria-label="OmniAI 功能介绍">
|
<main className="omni-home__feature-pages" aria-label="OmniAI 功能介绍">
|
||||||
{HOME_FEATURES.map((feature, index) => (
|
{HOME_FEATURES.map((feature, index) => (
|
||||||
<section key={feature.key} className={`omni-home__feature-page is-${feature.key}${index % 2 ? " is-alt" : ""}`}>
|
<ScrollEntrance key={feature.key} className={`omni-home__feature-page is-${feature.key}${index % 2 ? " is-alt" : ""}`}>
|
||||||
<div className="omni-home__feature-copy">
|
<div className="omni-home__feature-copy">
|
||||||
<span>
|
<span>
|
||||||
{feature.icon}
|
{feature.icon}
|
||||||
@@ -303,10 +313,10 @@ function HomePage({ onOpenGenerate, onOpenEcommerce, onOpenScriptReview, onOpenT
|
|||||||
<span key={item}>{item}</span>
|
<span key={item}>{item}</span>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</ScrollEntrance>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
<section className="omni-home__experience" aria-label="点击体验">
|
<ScrollEntrance className="omni-home__experience" aria-label="点击体验">
|
||||||
<div className="omni-home__experience-copy">
|
<div className="omni-home__experience-copy">
|
||||||
<span>
|
<span>
|
||||||
<ThunderboltOutlined />
|
<ThunderboltOutlined />
|
||||||
@@ -337,7 +347,7 @@ function HomePage({ onOpenGenerate, onOpenEcommerce, onOpenScriptReview, onOpenT
|
|||||||
体验电商生成
|
体验电商生成
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</ScrollEntrance>
|
||||||
</main>
|
</main>
|
||||||
</section>
|
</section>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ const MATRIX_CHARS =
|
|||||||
"01アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン" +
|
"01アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン" +
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+[]{};:?/\\|~`";
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+[]{};:?/\\|~`";
|
||||||
|
|
||||||
|
const prefersReducedMotion = typeof window !== "undefined"
|
||||||
|
? window.matchMedia("(prefers-reduced-motion: reduce)").matches
|
||||||
|
: false;
|
||||||
|
|
||||||
export default function WelcomeSplash({ onEnter }: WelcomeSplashProps) {
|
export default function WelcomeSplash({ onEnter }: WelcomeSplashProps) {
|
||||||
const canvasRef = useRef<HTMLCanvasElement>(null);
|
const canvasRef = useRef<HTMLCanvasElement>(null);
|
||||||
const rafRef = useRef(0);
|
const rafRef = useRef(0);
|
||||||
@@ -16,15 +20,27 @@ export default function WelcomeSplash({ onEnter }: WelcomeSplashProps) {
|
|||||||
|
|
||||||
const handleEnter = useCallback(() => {
|
const handleEnter = useCallback(() => {
|
||||||
setExiting(true);
|
setExiting(true);
|
||||||
setTimeout(onEnter, 700);
|
setTimeout(onEnter, prefersReducedMotion ? 0 : 700);
|
||||||
}, [onEnter]);
|
}, [onEnter]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const timer = setTimeout(() => setShowWelcome(true), 6000);
|
const timer = setTimeout(() => setShowWelcome(true), prefersReducedMotion ? 0 : 6000);
|
||||||
return () => clearTimeout(timer);
|
return () => clearTimeout(timer);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (prefersReducedMotion) {
|
||||||
|
const canvas = canvasRef.current;
|
||||||
|
if (!canvas) return;
|
||||||
|
const ctx = canvas.getContext("2d");
|
||||||
|
if (!ctx) return;
|
||||||
|
canvas.width = window.innerWidth;
|
||||||
|
canvas.height = window.innerHeight;
|
||||||
|
ctx.fillStyle = "rgba(0, 0, 0, 0.85)";
|
||||||
|
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const canvas = canvasRef.current;
|
const canvas = canvasRef.current;
|
||||||
if (!canvas) return;
|
if (!canvas) return;
|
||||||
const ctx = canvas.getContext("2d");
|
const ctx = canvas.getContext("2d");
|
||||||
|
|||||||
@@ -2914,7 +2914,7 @@ function WorkbenchPage({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{messages.map((message) => (
|
{messages.map((message) => (
|
||||||
<article key={message.id} className={`ai-chat-message-row${message.role === "user" ? " is-user" : ""}`}>
|
<article key={message.id} className={`ai-chat-message-row chat-message-enter${message.role === "user" ? " is-user" : ""}`}>
|
||||||
<div className={`ai-chat-avatar${message.role === "user" ? " ai-chat-avatar--user" : ""}`}>
|
<div className={`ai-chat-avatar${message.role === "user" ? " ai-chat-avatar--user" : ""}`}>
|
||||||
{message.role === "user" ? "我" : "AI"}
|
{message.role === "user" ? "我" : "AI"}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
import { useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
|
export function useScrollEntrance<T extends HTMLElement>(threshold = 0.15) {
|
||||||
|
const ref = useRef<T>(null);
|
||||||
|
const [isVisible, setIsVisible] = useState(false);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const el = ref.current;
|
||||||
|
if (!el) return;
|
||||||
|
|
||||||
|
if (typeof IntersectionObserver === "undefined") {
|
||||||
|
setIsVisible(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const observer = new IntersectionObserver(
|
||||||
|
([entry]) => {
|
||||||
|
if (entry.isIntersecting) {
|
||||||
|
setIsVisible(true);
|
||||||
|
observer.unobserve(el);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ threshold },
|
||||||
|
);
|
||||||
|
|
||||||
|
observer.observe(el);
|
||||||
|
return () => observer.disconnect();
|
||||||
|
}, [threshold]);
|
||||||
|
|
||||||
|
return { ref, isVisible };
|
||||||
|
}
|
||||||
@@ -48,6 +48,9 @@
|
|||||||
background: var(--surface-elevated);
|
background: var(--surface-elevated);
|
||||||
box-shadow: var(--shadow-elevated);
|
box-shadow: var(--shadow-elevated);
|
||||||
backdrop-filter: none;
|
backdrop-filter: none;
|
||||||
|
transform-origin: top right;
|
||||||
|
animation: scale-in 150ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both,
|
||||||
|
slide-up-in 150ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-popover__head {
|
.profile-popover__head {
|
||||||
|
|||||||
@@ -39,6 +39,78 @@
|
|||||||
to { opacity: 1; }
|
to { opacity: 1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Popover / panel entrance utilities */
|
||||||
|
.panel-enter {
|
||||||
|
animation: scale-in 150ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both,
|
||||||
|
slide-up-in 150ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.backdrop-enter {
|
||||||
|
animation: backdrop-in 140ms ease both;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Heart toggle spring animation */
|
||||||
|
@keyframes heart-pop {
|
||||||
|
0% { transform: scale(1); }
|
||||||
|
40% { transform: scale(1.3); }
|
||||||
|
70% { transform: scale(0.9); }
|
||||||
|
100% { transform: scale(1); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.heart-animate {
|
||||||
|
animation: heart-pop 420ms var(--ease-spring, cubic-bezier(0.34, 1.2, 0.64, 1)) both;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Result reveal stagger for generation output grids */
|
||||||
|
.result-reveal > * {
|
||||||
|
opacity: 0;
|
||||||
|
animation: slide-up-in 320ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-reveal > *:nth-child(1) { animation-delay: 0ms; }
|
||||||
|
.result-reveal > *:nth-child(2) { animation-delay: 80ms; }
|
||||||
|
.result-reveal > *:nth-child(3) { animation-delay: 160ms; }
|
||||||
|
.result-reveal > *:nth-child(4) { animation-delay: 240ms; }
|
||||||
|
.result-reveal > *:nth-child(5) { animation-delay: 320ms; }
|
||||||
|
.result-reveal > *:nth-child(n+6) { animation-delay: 400ms; }
|
||||||
|
|
||||||
|
/* Scroll-triggered entrance: hidden until revealed by IntersectionObserver */
|
||||||
|
.scroll-entrance {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(16px);
|
||||||
|
transition: opacity 480ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
|
||||||
|
transform 480ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-entrance.is-visible {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-entrance.is-visible > * {
|
||||||
|
animation: slide-up-in 380ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-entrance.is-visible > *:nth-child(1) { animation-delay: 60ms; }
|
||||||
|
.scroll-entrance.is-visible > *:nth-child(2) { animation-delay: 140ms; }
|
||||||
|
.scroll-entrance.is-visible > *:nth-child(3) { animation-delay: 220ms; }
|
||||||
|
|
||||||
|
/* Chat message entrance animation */
|
||||||
|
@keyframes chat-message-in {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(10px);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.chat-message-enter {
|
||||||
|
animation: chat-message-in 220ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
||||||
|
}
|
||||||
|
|
||||||
/* Stagger utility: apply to parent, children get delayed entrance */
|
/* Stagger utility: apply to parent, children get delayed entrance */
|
||||||
.motion-stagger > * {
|
.motion-stagger > * {
|
||||||
animation: list-item-in 280ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
animation: list-item-in 280ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
||||||
|
|||||||
@@ -29,7 +29,8 @@
|
|||||||
width: 40%;
|
width: 40%;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: var(--surface-elevated, #222);
|
background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04));
|
||||||
|
background-size: 220% 100%;
|
||||||
animation: skeleton-shimmer 1.4s ease infinite;
|
animation: skeleton-shimmer 1.4s ease infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,7 +43,8 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
height: 140px;
|
height: 140px;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
background: var(--surface-elevated, #222);
|
background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04));
|
||||||
|
background-size: 220% 100%;
|
||||||
animation: skeleton-shimmer 1.4s ease infinite;
|
animation: skeleton-shimmer 1.4s ease infinite;
|
||||||
animation-delay: 0.15s;
|
animation-delay: 0.15s;
|
||||||
}
|
}
|
||||||
@@ -51,16 +53,12 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
background: var(--surface-elevated, #222);
|
background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04));
|
||||||
|
background-size: 220% 100%;
|
||||||
animation: skeleton-shimmer 1.4s ease infinite;
|
animation: skeleton-shimmer 1.4s ease infinite;
|
||||||
animation-delay: 0.3s;
|
animation-delay: 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes skeleton-shimmer {
|
|
||||||
0%, 100% { opacity: 0.4; }
|
|
||||||
50% { opacity: 0.7; }
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-transition-wrap {
|
.page-transition-wrap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -9,6 +9,48 @@
|
|||||||
font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
|
font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ecommerce generation progress bar */
|
||||||
|
.ecommerce-progress-bar {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 10px 16px;
|
||||||
|
border-radius: var(--radius-sm, 10px);
|
||||||
|
background: rgba(var(--accent-rgb, 0, 255, 136), 0.08);
|
||||||
|
border: 1px solid rgba(var(--accent-rgb, 0, 255, 136), 0.18);
|
||||||
|
margin: 8px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ecommerce-progress-bar__label {
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--fg-muted, #aeb8b1);
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ecommerce-progress-bar__track {
|
||||||
|
flex: 1;
|
||||||
|
height: 6px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: rgba(var(--accent-rgb, 0, 255, 136), 0.12);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ecommerce-progress-bar__fill {
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: var(--accent, #00ff88);
|
||||||
|
transition: width 80ms linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ecommerce-progress-bar__value {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 900;
|
||||||
|
color: var(--accent, #00ff88);
|
||||||
|
min-width: 40px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
/* Product set page: target dark two-column workspace with floating detail input. */
|
/* Product set page: target dark two-column workspace with floating detail input. */
|
||||||
.product-clone-page[data-tool="set"] {
|
.product-clone-page[data-tool="set"] {
|
||||||
display: block;
|
display: block;
|
||||||
|
|||||||
@@ -14271,19 +14271,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ─── Page Motion Animation ─── */
|
/* ─── Page Motion Animation ─── */
|
||||||
.page-motion {
|
|
||||||
animation: pixel-page-enter 0.3s ease-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes pixel-page-enter {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ─── Workbench Page Layout Overrides ─── */
|
/* ─── Workbench Page Layout Overrides ─── */
|
||||||
.ai-workbench-page.is-active .ai-workbench-shell {
|
.ai-workbench-page.is-active .ai-workbench-shell {
|
||||||
grid-template-columns: 1fr auto;
|
grid-template-columns: 1fr auto;
|
||||||
@@ -14865,6 +14852,8 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
animation: scale-in 150ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both,
|
||||||
|
slide-up-in 150ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-center__header {
|
.notification-center__header {
|
||||||
|
|||||||
@@ -135,6 +135,11 @@
|
|||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: opacity 160ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-lockup:active {
|
||||||
|
opacity: 0.85;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-lockup__mark {
|
.brand-lockup__mark {
|
||||||
@@ -303,6 +308,15 @@
|
|||||||
background: var(--bg-hover);
|
background: var(--bg-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.creator-button:active,
|
||||||
|
.member-button:active,
|
||||||
|
.profile-button:active,
|
||||||
|
.icon-button:active,
|
||||||
|
.theme-toggle:active {
|
||||||
|
transform: scale(0.97);
|
||||||
|
transition-duration: 80ms;
|
||||||
|
}
|
||||||
|
|
||||||
.profile-button--guest:hover {
|
.profile-button--guest:hover {
|
||||||
background: rgba(var(--accent-rgb), 0.88);
|
background: rgba(var(--accent-rgb), 0.88);
|
||||||
color: #07100b;
|
color: #07100b;
|
||||||
|
|||||||
Reference in New Issue
Block a user