|
68 | 68 | </script> |
69 | 69 |
|
70 | 70 | <Card> |
71 | | - <h1>{t('onboarding.featured_heading')}</h1> |
72 | | - <p>{t('onboarding.featured_desc')}</p> |
| 71 | + <div class="step"> |
| 72 | + <p class="step__kicker">{t('onboarding.featured_title')}</p> |
| 73 | + <h1 class="step__title">{t('onboarding.featured_heading')}</h1> |
| 74 | + <p class="step__lede">{t('onboarding.featured_desc')}</p> |
73 | 75 |
|
74 | | - {#if loading} |
75 | | - <LoadingState message={t('common.loading')} /> |
76 | | - {:else if extensions.length === 0} |
77 | | - <EmptyState message={t('onboarding.featured_store_error')}> |
78 | | - <Button onclick={load}>Retry</Button> |
79 | | - </EmptyState> |
80 | | - {:else} |
81 | | - <ul class="list"> |
82 | | - {#each extensions as ext (ext.id)} |
83 | | - <li> |
84 | | - <label> |
85 | | - <input |
86 | | - type="checkbox" |
87 | | - checked={selected.has(ext.id)} |
88 | | - onchange={() => toggle(ext.id)} |
89 | | - disabled={installingIds.has(ext.id)} |
90 | | - /> |
91 | | - <span class="name">{ext.name}</span> |
92 | | - {#if installingIds.has(ext.id)}<span class="hint">Installing…</span>{/if} |
93 | | - {#if failedIds.has(ext.id)}<span class="error">Failed</span>{/if} |
94 | | - </label> |
95 | | - </li> |
96 | | - {/each} |
97 | | - </ul> |
98 | | - {/if} |
| 76 | + {#if loading} |
| 77 | + <LoadingState message={t('common.loading')} /> |
| 78 | + {:else} |
| 79 | + {#if extensions.length === 0} |
| 80 | + <EmptyState message={t('onboarding.featured_store_error')} compact> |
| 81 | + <Button onclick={load}>{t('common.retry')}</Button> |
| 82 | + </EmptyState> |
| 83 | + {:else} |
| 84 | + <ul class="list"> |
| 85 | + {#each extensions as ext (ext.id)} |
| 86 | + <li> |
| 87 | + <label> |
| 88 | + <input |
| 89 | + type="checkbox" |
| 90 | + checked={selected.has(ext.id)} |
| 91 | + onchange={() => toggle(ext.id)} |
| 92 | + disabled={installingIds.has(ext.id)} |
| 93 | + /> |
| 94 | + <span class="name">{ext.name}</span> |
| 95 | + {#if installingIds.has(ext.id)}<span class="hint">Installing…</span>{/if} |
| 96 | + {#if failedIds.has(ext.id)}<span class="error">Failed</span>{/if} |
| 97 | + </label> |
| 98 | + </li> |
| 99 | + {/each} |
| 100 | + </ul> |
| 101 | + {/if} |
| 102 | + |
| 103 | + <div class="step__tip"> |
| 104 | + <span class="step__tip-badge">💡 {t('onboarding.featured_empty_tip_badge')}</span> |
| 105 | + <p class="step__tip-text"> |
| 106 | + {t('onboarding.featured_empty_store_tip')} |
| 107 | + </p> |
| 108 | + </div> |
| 109 | + {/if} |
| 110 | + </div> |
99 | 111 | </Card> |
100 | 112 |
|
101 | 113 | <style> |
| 114 | + .step { |
| 115 | + display: flex; |
| 116 | + flex-direction: column; |
| 117 | + gap: var(--space-3); |
| 118 | + } |
| 119 | + .step__kicker { |
| 120 | + margin: 0; |
| 121 | + font-size: var(--font-size-sm); |
| 122 | + font-weight: 600; |
| 123 | + text-transform: uppercase; |
| 124 | + letter-spacing: var(--tracking-wide); |
| 125 | + color: var(--asyar-brand); |
| 126 | + } |
| 127 | + .step__title { |
| 128 | + margin: 0; |
| 129 | + font-size: var(--font-size-display); |
| 130 | + font-weight: 600; |
| 131 | + letter-spacing: var(--tracking-display); |
| 132 | + color: var(--text-primary); |
| 133 | + } |
| 134 | + .step__lede { |
| 135 | + margin: 0; |
| 136 | + color: var(--text-secondary); |
| 137 | + font-size: var(--font-size-xl); |
| 138 | + line-height: 1.6; |
| 139 | + } |
102 | 140 | .list { |
103 | 141 | list-style: none; |
104 | 142 | padding: 0; |
105 | | - margin: var(--space-4) 0; |
| 143 | + margin: var(--space-2) 0; |
106 | 144 | } |
107 | 145 | .list li { |
108 | 146 | padding: var(--space-2) 0; |
|
120 | 158 | color: var(--accent-danger); |
121 | 159 | font-size: var(--font-size-sm); |
122 | 160 | } |
| 161 | + .step__tip { |
| 162 | + display: flex; |
| 163 | + flex-direction: column; |
| 164 | + gap: var(--space-1); |
| 165 | + border: 1px solid var(--separator); |
| 166 | + border-radius: var(--radius-md); |
| 167 | + padding: var(--space-3); |
| 168 | + background: var(--bg-tertiary); |
| 169 | + } |
| 170 | + .step__tip-badge { |
| 171 | + align-self: flex-start; |
| 172 | + font-size: var(--font-size-sm); |
| 173 | + font-weight: 600; |
| 174 | + color: var(--asyar-brand); |
| 175 | + } |
| 176 | + .step__tip-text { |
| 177 | + margin: 0; |
| 178 | + color: var(--text-secondary); |
| 179 | + font-size: var(--font-size-md); |
| 180 | + line-height: 1.5; |
| 181 | + } |
123 | 182 | </style> |
0 commit comments