Skip to content

Commit a2c666a

Browse files
committed
feat: add tool image for the index page
Signed-off-by: peefy <xpf6677@163.com>
1 parent e6318b8 commit a2c666a

File tree

5 files changed

+63
-5
lines changed

5 files changed

+63
-5
lines changed

i18n/en/code.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,14 @@
494494
"Trusted By": {
495495
"message": "Trusted By"
496496
},
497-
"Integrate with Your Favorite Tools": {
498-
"message": "Integrate with Your Favorite Tools"
497+
"Integrate with Your Favorite Projects": {
498+
"message": "Integrate with Your Favorite Projects"
499+
},
500+
"Tools for Experience": {
501+
"message": "Tools for Experience"
502+
},
503+
"IDEs, SDKs, Sharing, Formatting, Testing, Documents": {
504+
"message": "IDEs, SDKs, Sharing, Formatting, Testing, Documents"
499505
},
500506
"KCL is in": {
501507
"message": "KCL is in"

i18n/zh-CN/code.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,14 @@
323323
"Trusted By": {
324324
"message": "工程师信赖的技术产品"
325325
},
326-
"Integrate with Your Favorite Tools": {
327-
"message": "与您最喜欢的工具集成"
326+
"Integrate with Your Favorite Projects": {
327+
"message": "与您最喜欢的项目集成"
328+
},
329+
"Tools for Experience": {
330+
"message": "使用工具提升体验"
331+
},
332+
"IDEs, SDKs, Sharing, Formatting, Testing, Documents": {
333+
"message": "IDEs, SDKs, Sharing, Formatting, Testing, Documents"
328334
},
329335
"KCL is in": {
330336
"message": "KCL 已经加入"

src/pages/index.module.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,16 @@
192192
height: 64px;
193193
}
194194
}
195+
196+
.toolLogo {
197+
display: block;
198+
margin: 20 auto;
199+
max-width: 100%;
200+
max-height: 840px;
201+
}
202+
203+
@media screen and (max-width: 768px) {
204+
.toolLogo {
205+
max-height: 700px;
206+
}
207+
}

src/pages/index.tsx

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,37 @@ function ExampleSection() {
199199
);
200200
}
201201

202+
function ToolSection() {
203+
return (
204+
<section>
205+
<div className="container">
206+
<div className="container text--center">
207+
<h2
208+
className={clsx("text--center")}
209+
style={{ color: "var(--ifm-color-primary)" }}
210+
>
211+
<Translate>Tools for Experience</Translate>
212+
</h2>
213+
<p className={clsx("text--center", styles.description)}>
214+
<Translate>IDEs, SDKs, Sharing, Formatting, Testing, Documents</Translate>
215+
</p>
216+
217+
<div>
218+
<ThemedImage
219+
className={styles.toolLogo}
220+
alt="Tool image"
221+
sources={{
222+
light: useBaseUrl("/img/registry-and-ide.png"),
223+
dark: useBaseUrl("/img/registry-and-ide.png"),
224+
}}
225+
/>
226+
</div>
227+
</div>
228+
</div>
229+
</section>
230+
);
231+
}
232+
202233
function IntegrationSection() {
203234
const integrations = [
204235
{
@@ -242,7 +273,7 @@ function IntegrationSection() {
242273
className={clsx("text--center")}
243274
style={{ color: "var(--ifm-color-primary)" }}
244275
>
245-
<Translate>Integrate with Your Favorite Tools</Translate>
276+
<Translate>Integrate with Your Favorite Projects</Translate>
246277
</h2>
247278
<div className={styles.whiteboard}>
248279
<div className="row">
@@ -387,6 +418,8 @@ export default function Home(): JSX.Element {
387418
<BreakSection />
388419
<ExampleSection />
389420
<BreakSection />
421+
<ToolSection />
422+
<BreakSection />
390423
<IntegrationSection />
391424
<BreakSection />
392425
<PartnerSection />

static/img/registry-and-ide.png

1.58 MB
Loading

0 commit comments

Comments
 (0)