Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add integration logos at index page #223

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading