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

Final Products page. #5097

Closed
wants to merge 8 commits into from
Closed
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
17 changes: 17 additions & 0 deletions src/pages/products/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";
import SEO from "../../components/seo";
import ProductPage from "../../sections/Products";

const Products = () => {
return (
<>
<ProductPage />
</>
);
};
export default Products;
export const Head = () => {
return <SEO title="Kubernetes management made collaborative"
description="Layer5, empowerer of engineers. At Layer5, we believe collaboration enables innovation, and infrastructure enables collaboration."
image="/images/Layer5-overview.svg" />;
};
2 changes: 0 additions & 2 deletions src/sections/General/Navigation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ const Navigation = () => {
<div className="mobile-dropdown">
<ul className="mobile-collapsed">
{Data.menuItems.map((menu, index) => (


<li
key={index}
className={
Expand Down
2 changes: 1 addition & 1 deletion src/sections/General/Navigation/utility/menu-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const Data = {
},
{
name: "Products",
path: "/projects",
path: "/products",
subItems: [
{
name: "Meshery",
Expand Down
85 changes: 85 additions & 0 deletions src/sections/Products/collapsible-details.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import React from "react";
import styled from "styled-components";
import { MdExpandMore } from "@react-icons/all-files/md/MdExpandMore";
import { RiArrowRightSLine } from "@react-icons/all-files/ri/RiArrowRightSLine";

const FeatureDetailsWrapper = styled.div`
display: inline;
cursor: pointer;
.open{
margin: 0rem;
list-style: none;
height:auto !important;
opacity:1 !important;
margin-bottom: 2rem;
transition:all .4s !important;
}
.toggle-icon{
width: 1.2rem;
height: 1.2rem;
fill: ${props => props.theme.primaryColor};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
p{
font-size: 0.9rem;
color: ${props => props.theme.greyC1C1C1ToGreyB3B3B3};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toggle-btn{
display:inline-block;
float: left;
vertical-align: middle;;
}
.closed{
opacity:1;
height:0;
transition:none;
visibility:hidden;
}
.open{
visibility:visible;
}
h5{
display: inline-block;
vertical-align: middle;
}
`;

const FeatureDetails = (props) => {
const [expand, setExpand] = React.useState(false);

return (
<FeatureDetailsWrapper>
<div onClick={function () {
setExpand(!expand);
}}>
{props.description ?
<div className="toggle-btn">
{expand ? (
<MdExpandMore
className="toggle-icon"
onClick={function () {
setExpand(!expand);
}}
/>
) : (
<RiArrowRightSLine
className="toggle-icon"
onClick={function () {
setExpand(!expand);
}}
/>
)}
</div> : ""}
<h5>{props.category}</h5>
<div className="details">
<p className={`closed ${expand ? "open" : ""}`}>
{props.description}
</p>
</div>
</div>
</FeatureDetailsWrapper>
);
};

export default FeatureDetails;
27 changes: 27 additions & 0 deletions src/sections/Products/icons/collaboration.svg
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 src/sections/Products/icons/coming-soon.webp
Binary file not shown.
24 changes: 24 additions & 0 deletions src/sections/Products/icons/configuration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions src/sections/Products/icons/identity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
176 changes: 176 additions & 0 deletions src/sections/Products/icons/lifecycle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading