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

Enriched the 3-D spinning in catalog cards carousel and fixed SVG Image issue. #6133

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
1 change: 0 additions & 1 deletion src/assets/images/AWS-Diagram/templates-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 71 additions & 0 deletions src/assets/images/kanvas/catalog-card-images/denial-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/assets/images/kanvas/catalog-card-images/http-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions src/assets/images/kanvas/catalog-card-images/jwt-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions src/assets/images/kanvas/catalog-card-images/multicluster-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions src/assets/images/kanvas/catalog-card-images/mutual-tls-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions src/assets/images/kanvas/catalog-card-images/node-agent-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/assets/images/kanvas/catalog-card-images/only-wagent-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions src/assets/images/kanvas/catalog-card-images/retries-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/assets/images/kanvas/catalog-card-images/singleton-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/assets/images/kanvas/catalog-card-images/traces-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/sections/AWS-Diagram/diagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const Aws = () => {
<Row className="catalog">
<Col md={8} className="diagram-image">
<div className="image-wrapper">
<img src={ConfigGIF} alt="AWS Diagrams for anything" className="AWS-image" />
<img src={ConfigGIF} alt="AWS Diagrams for anything" className="aws-image" />
</div>
</Col>
<Col md={4} className="diagram-detail">
Expand All @@ -165,14 +165,14 @@ const Aws = () => {
</Col>
<Col md={8} className="diagram-image">
<div className="image-wrapper">
<img src={DeployGIF} alt="AWS Diagrams for anything" className="AWS-image" />
<img src={DeployGIF} alt="AWS Diagrams for anything" className="aws-image" />
</div>
</Col>
</Row>
<Row className="catalog">
<Col md={8} className="diagram-image">
<div className="image-wrapper">
<img src={DragDropGIF} alt="AWS Diagrams for anything" className="AWS-image" />
<img src={DragDropGIF} alt="AWS Diagrams for anything" className="aws-image" />
</div>
</Col>
<Col md={4} className="diagram-detail">
Expand All @@ -192,14 +192,14 @@ const Aws = () => {
</Col>
<Col md={8} className="diagram-image">
<div className="image-wrapper">
<img src={IconLibraryGIF} alt="AWS Diagrams for anything" className="AWS-image" />
<img src={IconLibraryGIF} alt="AWS Diagrams for anything" className="aws-image" />
</div>
</Col>
</Row>
<Row className="catalog">
<Col md={8} className="diagram-image">
<div className="image-wrapper">
<img src={isDark ? TemplateDark : TemplateDark} alt="Designing AWS Diagrams with Kanvas" className="AWS-image" />
<img src={isDark ? TemplateDark : TemplateDark} alt="Designing AWS Diagrams with Kanvas" className="aws-image" />
</div>
</Col>
<Col md={4} className="diagram-detail">
Expand Down
47 changes: 32 additions & 15 deletions src/sections/Cloud-Native-Catalog/patterns.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
import React from "react";
import styled from "styled-components";
import Mutual_tls from "../../assets/images/kanvas/catalog-card-images/mutual-tls.svg";
import Mutual_tls_dark from "../../assets/images/kanvas/catalog-card-images/mutual-tls-dark.svg";
import Retries from "../../assets/images/kanvas/catalog-card-images/retries.svg";
import Retries_dark from "../../assets/images/kanvas/catalog-card-images/retries-dark.svg";
import Traces from "../../assets/images/kanvas/catalog-card-images/traces.svg";
import Traces_dark from "../../assets/images/kanvas/catalog-card-images/traces-dark.svg";
import Denial from "../../assets/images/kanvas/catalog-card-images/denial.svg";
import Denial_dark from "../../assets/images/kanvas/catalog-card-images/denial-dark.svg";
import Correlate_event from "../../assets/images/kanvas/catalog-card-images/correlate-event.svg";
import Correlate_event_dark from "../../assets/images/kanvas/catalog-card-images/correlate-event-dark.svg";
import Only_wagent from "../../assets/images/kanvas/catalog-card-images/only-wagent.svg";
import Only_wagent_dark from "../../assets/images/kanvas/catalog-card-images/only-wagent-dark.svg";
import Node_agent from "../../assets/images/kanvas/catalog-card-images/node-agent.svg";
import Node_agent_dark from "../../assets/images/kanvas/catalog-card-images/node-agent-dark.svg";
import Single_tenant from "../../assets/images/kanvas/catalog-card-images/single-tenant.svg";
import Single_tenant_dark from "../../assets/images/kanvas/catalog-card-images/single-tenant-dark.svg";
import Pre_provison from "../../assets/images/kanvas/catalog-card-images/pre-provision.svg";
import Pre_provison_dark from "../../assets/images/kanvas/catalog-card-images/pre-provision-dark.svg";
import Circuit_breaker from "../../assets/images/kanvas/catalog-card-images/circuit-breaker.svg";
import Circuit_breaker_dark from "../../assets/images/kanvas/catalog-card-images/circuit-breaker-dark.svg";
import Retry_deadline from "../../assets/images/kanvas/catalog-card-images/retry-deadline.svg";
import Retry_deadline_dark from "../../assets/images/kanvas/catalog-card-images/retry-deadline-dark.svg";
import Singleton from "../../assets/images/kanvas/catalog-card-images/singleton.svg";
import Singleton_dark from "../../assets/images/kanvas/catalog-card-images/singleton-dark.svg";
import Jwt_transformer from "../../assets/images/kanvas/catalog-card-images/jwt.svg";
import Jwt_transformer_dark from "../../assets/images/kanvas/catalog-card-images/jwt-dark.svg";
import Multicluster from "../../assets/images/kanvas/catalog-card-images/multicluster.svg";
import Multicluster_dark from "../../assets/images/kanvas/catalog-card-images/multicluster-dark.svg";
import Http_metrics from "../../assets/images/kanvas/catalog-card-images/http.svg";
import Http_metrics_dark from "../../assets/images/kanvas/catalog-card-images/http-dark.svg";
import { Container } from "../../reusecore/Layout";
import { useStyledDarkMode } from "../../theme/app/useStyledDarkMode";

const CatalogWrapper = styled.div`
margin: 0;
Expand Down Expand Up @@ -255,6 +271,7 @@ const CatalogWrapper = styled.div`
`;

const Catalog = () => {
const { isDark } = useStyledDarkMode();
return (
<CatalogWrapper>
<a href="https://meshery.io/catalog">
Expand All @@ -263,49 +280,49 @@ const Catalog = () => {
<div className="container">
<div id="carousel">
<div className="slide one">
<img src={Mutual_tls} />
<img src={isDark ? Mutual_tls_dark : Mutual_tls} />
</div>
<div className="slide two">
<img src={Retries} />
<img src={isDark ? Retries_dark : Retries} />
</div>
<div className="slide three">
<img src={Traces} />
<img src={isDark ? Traces_dark : Traces} />
</div>
<div className="slide four">
<img src={Denial} />
<img src={isDark ? Denial_dark : Denial} />
</div>
<div className="slide five">
<img src={Correlate_event} />
<img src={isDark ? Correlate_event_dark : Correlate_event} />
</div>
<div className="slide six">
<img src={Only_wagent} />
<img src={isDark ? Only_wagent_dark : Only_wagent} />
</div>
<div className="slide seven">
<img src={Node_agent} />
<img src={isDark ? Node_agent_dark : Node_agent} />
</div>
<div className="slide eight">
<img src={Single_tenant} />
<img src={isDark ? Single_tenant_dark : Single_tenant} />
</div>
<div className="slide nine">
<img src={Pre_provison} />
<img src={isDark ? Pre_provison_dark : Pre_provison} />
</div>
<div className="slide ten">
<img src={Circuit_breaker} />
<img src={isDark ? Circuit_breaker_dark : Circuit_breaker} />
</div>
<div className="slide eleven">
<img src={Retry_deadline} />
<img src={isDark ? Retry_deadline_dark : Retry_deadline} />
</div>
<div className="slide twelve">
<img src={Singleton} />
<img src={isDark ? Singleton_dark : Singleton} />
</div>
<div className="slide thirteen">
<img src={Jwt_transformer} />
<img src={isDark ? Jwt_transformer_dark : Jwt_transformer} />
</div>
<div className="slide fourteen">
<img src={Multicluster} />
<img src={isDark ? Multicluster_dark : Multicluster} />
</div>
<div className="slide fifteen">
<img src={Http_metrics} />
<img src={isDark ? Http_metrics_dark : Http_metrics} />
</div>
</div>
</div>
Expand Down
49 changes: 33 additions & 16 deletions src/sections/Kanvas/kanvas-catalog.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,42 @@
import React from "react";
import styled from "styled-components";
import Mutual_tls from "../../assets/images/kanvas/catalog-card-images/mutual-tls.svg";
import Mutual_tls_dark from "../../assets/images/kanvas/catalog-card-images/mutual-tls-dark.svg";
import Retries from "../../assets/images/kanvas/catalog-card-images/retries.svg";
import Retries_dark from "../../assets/images/kanvas/catalog-card-images/retries-dark.svg";
import Traces from "../../assets/images/kanvas/catalog-card-images/traces.svg";
import Traces_dark from "../../assets/images/kanvas/catalog-card-images/traces-dark.svg";
import Denial from "../../assets/images/kanvas/catalog-card-images/denial.svg";
import Denial_dark from "../../assets/images/kanvas/catalog-card-images/denial-dark.svg";
import Correlate_event from "../../assets/images/kanvas/catalog-card-images/correlate-event.svg";
import Correlate_event_dark from "../../assets/images/kanvas/catalog-card-images/correlate-event-dark.svg";
import Only_wagent from "../../assets/images/kanvas/catalog-card-images/only-wagent.svg";
import Only_wagent_dark from "../../assets/images/kanvas/catalog-card-images/only-wagent-dark.svg";
import Node_agent from "../../assets/images/kanvas/catalog-card-images/node-agent.svg";
import Node_agent_dark from "../../assets/images/kanvas/catalog-card-images/node-agent-dark.svg";
import Single_tenant from "../../assets/images/kanvas/catalog-card-images/single-tenant.svg";
import Single_tenant_dark from "../../assets/images/kanvas/catalog-card-images/single-tenant-dark.svg";
import Pre_provison from "../../assets/images/kanvas/catalog-card-images/pre-provision.svg";
import Pre_provison_dark from "../../assets/images/kanvas/catalog-card-images/pre-provision-dark.svg";
import Circuit_breaker from "../../assets/images/kanvas/catalog-card-images/circuit-breaker.svg";
import Circuit_breaker_dark from "../../assets/images/kanvas/catalog-card-images/circuit-breaker-dark.svg";
import Retry_deadline from "../../assets/images/kanvas/catalog-card-images/retry-deadline.svg";
import Retry_deadline_dark from "../../assets/images/kanvas/catalog-card-images/retry-deadline-dark.svg";
import Singleton from "../../assets/images/kanvas/catalog-card-images/singleton.svg";
import Singleton_dark from "../../assets/images/kanvas/catalog-card-images/singleton-dark.svg";
import Jwt_transformer from "../../assets/images/kanvas/catalog-card-images/jwt.svg";
import Jwt_transformer_dark from "../../assets/images/kanvas/catalog-card-images/jwt-dark.svg";
import Multicluster from "../../assets/images/kanvas/catalog-card-images/multicluster.svg";
import Multicluster_dark from "../../assets/images/kanvas/catalog-card-images/multicluster-dark.svg";
import Http_metrics from "../../assets/images/kanvas/catalog-card-images/http.svg";
import Http_metrics_dark from "../../assets/images/kanvas/catalog-card-images/http-dark.svg";

import Wasm from "../../assets/images/webassembly/webssembly_icon.svg";
import Patterns from "../../assets/images/service-mesh-patterns/service-mesh-pattern.svg";
import Ebpf from "../../assets/images/kanvas/ebpf.svg";
import Opa from "../../assets/images/kanvas/opa.svg";
import { Container } from "../../reusecore/Layout";
import { useStyledDarkMode } from "../../theme/app/useStyledDarkMode";

const CatalogWrapper = styled.div`

Expand Down Expand Up @@ -418,12 +434,13 @@ h3.containerCaption {
`;

const Catalog = () => {
const { isDark } = useStyledDarkMode();
return (
<CatalogWrapper>
<Container className="catalog-container">
<div className="patterns">
<p className="caption descr">
Kanvas is a sophisticated and delightfully intuitive tool for designing and operating cloud native infrastructure for Kubernetes. Choose freestyle composition of your infrastructure by drawing shapes, lines, text, and icons to represent the components and relationships of your Kubernetes clusters or quickstart by selecting a pattern the catalog of predefined templates.
Kanvas is a sophisticated and delightfully intuitive tool for designing and operating cloud native infrastructure for Kubernetes. Choose freestyle composition of your infrastructure by drawing shapes, lines, text, and icons to represent the components and relationships of your Kubernetes clusters or quickstart by selecting a pattern the catalog of predefined templates.
</p>
</div>
</Container>
Expand Down Expand Up @@ -467,49 +484,49 @@ const Catalog = () => {
<div className="container">
<div id="carousel">
<div className="slide one">
<img src={Mutual_tls} />
<img src={isDark ? Mutual_tls_dark : Mutual_tls} />
</div>
<div className="slide two">
<img src={Retries} />
<img src={isDark ? Retries_dark : Retries} />
</div>
<div className="slide three">
<img src={Traces} />
<img src={isDark ? Traces_dark : Traces} />
</div>
<div className="slide four">
<img src={Denial} />
<img src={isDark ? Denial_dark : Denial} />
</div>
<div className="slide five">
<img src={Correlate_event} />
<img src={isDark ? Correlate_event_dark : Correlate_event} />
</div>
<div className="slide six">
<img src={Only_wagent} />
<img src={isDark ? Only_wagent_dark : Only_wagent} />
</div>
<div className="slide seven">
<img src={Node_agent} />
<img src={isDark ? Node_agent_dark : Node_agent} />
</div>
<div className="slide eight">
<img src={Single_tenant} />
<img src={isDark ? Single_tenant_dark : Single_tenant} />
</div>
<div className="slide nine">
<img src={Pre_provison} />
<img src={isDark ? Pre_provison_dark : Pre_provison} />
</div>
<div className="slide ten">
<img src={Circuit_breaker} />
<img src={isDark ? Circuit_breaker_dark : Circuit_breaker} />
</div>
<div className="slide eleven">
<img src={Retry_deadline} />
<img src={isDark ? Retry_deadline_dark : Retry_deadline} />
</div>
<div className="slide twelve">
<img src={Singleton} />
<img src={isDark ? Singleton_dark : Singleton} />
</div>
<div className="slide thirteen">
<img src={Jwt_transformer} />
<img src={isDark ? Jwt_transformer_dark : Jwt_transformer} />
</div>
<div className="slide fourteen">
<img src={Multicluster} />
<img src={isDark ? Multicluster_dark : Multicluster} />
</div>
<div className="slide fifteen">
<img src={Http_metrics} />
<img src={isDark ? Http_metrics_dark : Http_metrics} />
</div>
</div>
</div>
Expand Down
Loading