Skip to content

Commit

Permalink
Merge pull request #223 from Peefy/add-integrations-in-index-page
Browse files Browse the repository at this point in the history
feat: add integration logos at index page
  • Loading branch information
Peefy authored Nov 28, 2023
2 parents 08f70ca + 4280e1d commit 60ae0b0
Show file tree
Hide file tree
Showing 11 changed files with 89 additions and 0 deletions.
3 changes: 3 additions & 0 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@
"Trusted By": {
"message": "Trusted By"
},
"Integrate with Your Favorite Tools": {
"message": "Integrate with Your Favorite Tools"
},
"KCL is in": {
"message": "KCL is in"
},
Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-CN/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@
"Trusted By": {
"message": "工程师信赖的技术产品"
},
"Integrate with Your Favorite Tools": {
"message": "与您最喜欢的工具集成"
},
"KCL is in": {
"message": "KCL 已经加入"
},
Expand Down
17 changes: 17 additions & 0 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,23 @@
}
}

.integrationLogoWrapper {
display: flex;
justify-content: center;
align-items: center;
height: 120px;
}

.integrationLogoWrapper img {
height: 80%;
}

@media screen and (max-width: 768px) {
.integrationLogoWrapper {
height: 80px;
}
}

.cncfLogo {
height: 96px;
}
Expand Down
66 changes: 66 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,70 @@ function ExampleSection() {
);
}

function IntegrationSection() {
const integrations = [
{
name: "Kubernetes",
img: "/img/logos/k8s.svg",
},
{
name: "Kustomize",
img: "/img/logos/kustomize.png",
},
{
name: "Helm",
img: "/img/logos/helm.png",
},
{
name: "Helmfile",
img: "/img/logos/helmfile.png",
},
{
name: "KPT",
img: "/img/logos/kpt.png",
},
{
name: "Argo",
img: "/img/logos/argo.png",
},
{
name: "CrossPlane",
img: "/img/logos/crossplane.png",
},
{
name: "Terraform",
img: "/img/logos/terraform.png",
},
];

return (
<section>
<div className="container">
<h2
className={clsx("text--center")}
style={{ color: "var(--ifm-color-primary)" }}
>
<Translate>Integrate with Your Favorite Tools</Translate>
</h2>
<div className={styles.whiteboard}>
<div className="row">
{integrations.map((w) => (
<div
key={w.name}
className={clsx("col col--3", styles.whiteboardCol)}
>
<a className={styles.integrationLogoWrapper} target="_blank">
<img src={useBaseUrl(w.img)} alt={w.name} />
</a>
</div>
))}
</div>
</div>
</div>
</section>
);
}

function PartnerSection() {
const partners = [
{
Expand Down Expand Up @@ -323,6 +387,8 @@ export default function Home(): JSX.Element {
<BreakSection />
<ExampleSection />
<BreakSection />
<IntegrationSection />
<BreakSection />
<PartnerSection />
<BreakSection />
<CNCFSection />
Expand Down
Binary file added static/img/logos/argo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/logos/crossplane.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/logos/helm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/logos/helmfile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/logos/kpt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/logos/kustomize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/logos/terraform.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 60ae0b0

Please sign in to comment.