Skip to content

Commit a11f416

Browse files
committed
polish(desktop): preview status dot + larger empty-state mark with peach aura
- Right-pane header: small status dot before 'No design yet' / 'Preview' (success green when a design is loaded, neutral otherwise) - Empty-state mark grows from 56px to 72px and gains a soft accent radial glow behind it for a more anchored entry - Bumps empty-state heading to 24px and copy to 14px so the canvas reads as the primary affordance, not an apology Signed-off-by: hqhq1025 <1506751656@qq.com>
1 parent f0d4f6f commit a11f416

1 file changed

Lines changed: 38 additions & 22 deletions

File tree

  • apps/desktop/src/renderer/src

‎apps/desktop/src/renderer/src/App.tsx‎

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,13 @@ export function App() {
164164

165165
<main className="flex flex-col">
166166
<header className="h-[52px] px-6 border-b border-[var(--color-border-muted)] flex items-center justify-between">
167-
<span className="text-[13px] text-[var(--color-text-secondary)] tracking-[-0.005em]">
167+
<span className="inline-flex items-center gap-2 text-[13px] text-[var(--color-text-secondary)] tracking-[-0.005em]">
168+
<span
169+
aria-hidden="true"
170+
className={`w-[6px] h-[6px] rounded-full ${
171+
previewHtml ? 'bg-[var(--color-success)]' : 'bg-[var(--color-border-strong)]'
172+
}`}
173+
/>
168174
{previewHtml ? 'Preview' : 'No design yet'}
169175
</span>
170176
<span
@@ -196,13 +202,22 @@ export function App() {
196202
function EmptyState() {
197203
return (
198204
<div className="h-full flex items-center justify-center">
199-
<div className="text-center max-w-[360px] flex flex-col items-center gap-5">
200-
<EmptyMark />
201-
<div className="flex flex-col gap-2">
202-
<h2 className="text-[20px] font-semibold text-[var(--color-text-primary)] tracking-[-0.01em] leading-[1.2]">
205+
<div className="text-center max-w-[400px] flex flex-col items-center gap-6">
206+
<div className="relative inline-flex items-center justify-center">
207+
<div
208+
aria-hidden="true"
209+
className="absolute inset-0 -m-6 rounded-full"
210+
style={{
211+
background: 'radial-gradient(circle, var(--color-accent-soft), transparent 70%)',
212+
}}
213+
/>
214+
<EmptyMark />
215+
</div>
216+
<div className="flex flex-col gap-2 relative">
217+
<h2 className="text-[24px] font-semibold text-[var(--color-text-primary)] tracking-[-0.01em] leading-[1.2]">
203218
A blank canvas, ready when you are.
204219
</h2>
205-
<p className="text-[13px] text-[var(--color-text-secondary)] leading-[1.6]">
220+
<p className="text-[14px] text-[var(--color-text-secondary)] leading-[1.6]">
206221
Pick a starter on the left, or describe what you want to design. The result renders here
207222
in a sandboxed preview.
208223
</p>
@@ -215,35 +230,36 @@ function EmptyState() {
215230
function EmptyMark() {
216231
return (
217232
<svg
218-
width="56"
219-
height="56"
220-
viewBox="0 0 56 56"
233+
width="72"
234+
height="72"
235+
viewBox="0 0 72 72"
221236
fill="none"
222237
xmlns="http://www.w3.org/2000/svg"
223238
aria-hidden="true"
239+
className="relative"
224240
>
225241
<title>open-codesign canvas</title>
226242
<rect
227-
x="8.5"
228-
y="8.5"
229-
width="39"
230-
height="39"
231-
rx="6"
243+
x="10.5"
244+
y="10.5"
245+
width="51"
246+
height="51"
247+
rx="8"
232248
stroke="var(--color-border-strong)"
233-
strokeDasharray="3 4"
249+
strokeDasharray="3 5"
234250
strokeWidth="1"
235251
/>
236252
<rect
237-
x="20"
238-
y="20"
239-
width="16"
240-
height="16"
241-
rx="3"
242-
fill="var(--color-accent-soft)"
253+
x="25"
254+
y="25"
255+
width="22"
256+
height="22"
257+
rx="4"
258+
fill="var(--color-surface)"
243259
stroke="var(--color-accent)"
244260
strokeWidth="1.4"
245261
/>
246-
<circle cx="28" cy="28" r="3" fill="var(--color-accent)" />
262+
<circle cx="36" cy="36" r="3.5" fill="var(--color-accent)" />
247263
</svg>
248264
);
249265
}

0 commit comments

Comments
 (0)