Skip to content

Commit 60ae0b0

Browse files
authored
Merge pull request #223 from Peefy/add-integrations-in-index-page
feat: add integration logos at index page
2 parents 08f70ca + 4280e1d commit 60ae0b0

File tree

11 files changed

+89
-0
lines changed

11 files changed

+89
-0
lines changed

i18n/en/code.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,9 @@
494494
"Trusted By": {
495495
"message": "Trusted By"
496496
},
497+
"Integrate with Your Favorite Tools": {
498+
"message": "Integrate with Your Favorite Tools"
499+
},
497500
"KCL is in": {
498501
"message": "KCL is in"
499502
},

i18n/zh-CN/code.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@
323323
"Trusted By": {
324324
"message": "工程师信赖的技术产品"
325325
},
326+
"Integrate with Your Favorite Tools": {
327+
"message": "与您最喜欢的工具集成"
328+
},
326329
"KCL is in": {
327330
"message": "KCL 已经加入"
328331
},

src/pages/index.module.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,23 @@
162162
}
163163
}
164164

165+
.integrationLogoWrapper {
166+
display: flex;
167+
justify-content: center;
168+
align-items: center;
169+
height: 120px;
170+
}
171+
172+
.integrationLogoWrapper img {
173+
height: 80%;
174+
}
175+
176+
@media screen and (max-width: 768px) {
177+
.integrationLogoWrapper {
178+
height: 80px;
179+
}
180+
}
181+
165182
.cncfLogo {
166183
height: 96px;
167184
}

src/pages/index.tsx

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,70 @@ function ExampleSection() {
199199
);
200200
}
201201

202+
function IntegrationSection() {
203+
const integrations = [
204+
{
205+
name: "Kubernetes",
206+
img: "/img/logos/k8s.svg",
207+
},
208+
{
209+
name: "Kustomize",
210+
img: "/img/logos/kustomize.png",
211+
},
212+
{
213+
name: "Helm",
214+
img: "/img/logos/helm.png",
215+
},
216+
{
217+
name: "Helmfile",
218+
img: "/img/logos/helmfile.png",
219+
},
220+
{
221+
name: "KPT",
222+
img: "/img/logos/kpt.png",
223+
},
224+
{
225+
name: "Argo",
226+
img: "/img/logos/argo.png",
227+
},
228+
{
229+
name: "CrossPlane",
230+
img: "/img/logos/crossplane.png",
231+
},
232+
{
233+
name: "Terraform",
234+
img: "/img/logos/terraform.png",
235+
},
236+
];
237+
238+
return (
239+
<section>
240+
<div className="container">
241+
<h2
242+
className={clsx("text--center")}
243+
style={{ color: "var(--ifm-color-primary)" }}
244+
>
245+
<Translate>Integrate with Your Favorite Tools</Translate>
246+
</h2>
247+
<div className={styles.whiteboard}>
248+
<div className="row">
249+
{integrations.map((w) => (
250+
<div
251+
key={w.name}
252+
className={clsx("col col--3", styles.whiteboardCol)}
253+
>
254+
<a className={styles.integrationLogoWrapper} target="_blank">
255+
<img src={useBaseUrl(w.img)} alt={w.name} />
256+
</a>
257+
</div>
258+
))}
259+
</div>
260+
</div>
261+
</div>
262+
</section>
263+
);
264+
}
265+
202266
function PartnerSection() {
203267
const partners = [
204268
{
@@ -323,6 +387,8 @@ export default function Home(): JSX.Element {
323387
<BreakSection />
324388
<ExampleSection />
325389
<BreakSection />
390+
<IntegrationSection />
391+
<BreakSection />
326392
<PartnerSection />
327393
<BreakSection />
328394
<CNCFSection />

static/img/logos/argo.png

12.6 KB
Loading

static/img/logos/crossplane.png

5.99 KB
Loading

static/img/logos/helm.png

72.2 KB
Loading

static/img/logos/helmfile.png

13.1 KB
Loading

static/img/logos/kpt.png

25.7 KB
Loading

static/img/logos/kustomize.png

2.61 KB
Loading

0 commit comments

Comments
 (0)