Skip to content

Commit 3ec6ef0

Browse files
feat(frontend): try to improve onboarding and selection or website/application (#2478)
1 parent a53f1f6 commit 3ec6ef0

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

src/frontend/src/lib/components/modals/factory/create/SatelliteCreateModal.svelte

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@
153153
value="website"
154154
bind:group={satelliteKind}
155155
/>
156-
{$i18n.satellites.website}
156+
<span class="option">
157+
<span>{$i18n.satellites.website}</span>
158+
<span>{$i18n.satellites.website_description}</span>
159+
</span>
157160
</label>
158161

159162
<label>
@@ -164,7 +167,10 @@
164167
value="application"
165168
bind:group={satelliteKind}
166169
/>
167-
{$i18n.satellites.application}
170+
<span class="option">
171+
<span>{$i18n.satellites.application}</span>
172+
<span>{$i18n.satellites.application_description}</span>
173+
</span>
168174
</label>
169175
</div>
170176
</Value>
@@ -222,5 +228,21 @@
222228
.options {
223229
display: flex;
224230
flex-direction: column;
231+
gap: var(--padding);
232+
padding: var(--padding-0_5x) 0 var(--padding-6x);
233+
}
234+
235+
.option {
236+
display: inline-flex;
237+
flex-direction: column;
238+
239+
span:last-child {
240+
font-size: var(--font-size-very-small);
241+
font-style: italic;
242+
}
243+
}
244+
245+
input {
246+
vertical-align: text-top;
225247
}
226248
</style>

src/frontend/src/lib/i18n/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@
316316
"satellite_name": "Satellite name",
317317
"what_are_you_building": "What are you building",
318318
"website": "Website",
319+
"website_description": "Landing pages, blogs, portfolios",
319320
"application": "Application",
321+
"application_description": "Data storage, user management, serverless functions",
320322
"environment": "Environment",
321323
"tags": "Tags",
322324
"tags_placeholder": "Comma-separated or one per line. Leave empty for no tags.",

src/frontend/src/lib/i18n/zh-cn.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@
316316
"satellite_name": "卫星名称",
317317
"what_are_you_building": "您正在构建什么",
318318
"website": "网站",
319+
"website_description": "落地页、博客、作品集",
319320
"application": "应用程序",
321+
"application_description": "数据存储、用户管理、无服务器函数",
320322
"environment": "运行环境",
321323
"tags": "标签",
322324
"tags_placeholder": "逗号分隔或每行一个,留空则不添加标签。",

src/frontend/src/lib/types/i18n.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ interface I18nSatellites {
324324
satellite_name: string;
325325
what_are_you_building: string;
326326
website: string;
327+
website_description: string;
327328
application: string;
329+
application_description: string;
328330
environment: string;
329331
tags: string;
330332
tags_placeholder: string;

0 commit comments

Comments
 (0)