Skip to content
Open
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
109 changes: 53 additions & 56 deletions src/components/specs/data-card.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import styled from "styled-components";
import { Col, Row } from "../../reusecore/Layout";
import List_Icon from "../../assets/images/app/tick.svg";

const DataCardWrapper = styled.div`
Expand All @@ -11,73 +10,71 @@ const DataCardWrapper = styled.div`
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);

ul {
display: grid;
grid-template-columns: 1fr;
gap: 1.25rem;
list-style: none;
margin: 0;
padding: 0;

@media (min-width: 768px) {
grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: 1.5rem;
}
}
.col-1 li {

li {
display: flex;
align-items: center;
vertical-align: center;
margin-bottom: 1.5rem;
align-items: flex-start;
gap: 1rem;
min-width: 0;

img {
margin-right: 1rem;
width: 20px;
height: 20px;
flex: 0 0 20px;
margin-top: 0.15rem;
}

h5 {
min-width: 0;
margin: 0;
font-weight: 600;
line-height: 1.4;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
}

.col-2 li {
h3 {
color: ${(props) => props.theme.secondaryColor};
font-weight: 700;
}
p {
font-size: 16px;
}
}
`;

const DataCard = () => {
return (
<DataCardWrapper>
<Row $Vcenter>
<Col className="col-1" sm={6} lg={6}>
<ul>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Extensive library of integrations</h5>
</li>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Infrastructure orchestration</h5>
</li>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Multi-player editing</h5>
</li>
</ul>
</Col>
<Col className="col-1" sm={6} lg={6}>
<ul>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Ready-to-use templates</h5>
</li>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Visual drag & drop</h5>
</li>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Operate with No Code</h5>
</li>
</ul>
</Col>
</Row>
</DataCardWrapper>
);
};
const DataCard = () => (
<DataCardWrapper>
<ul>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Extensive library of integrations</h5>
</li>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Ready-to-use templates</h5>
</li>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Infrastructure orchestration</h5>
</li>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Visual drag & drop</h5>
</li>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Multi-player editing</h5>
</li>
<li>
<img src={List_Icon} alt="" aria-hidden="true" loading="lazy" />
<h5>Operate with No Code</h5>
</li>
</ul>
</DataCardWrapper>
);

export default DataCard;
12 changes: 4 additions & 8 deletions src/components/specs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,15 @@ const HowMesheryWorksSpecs = ({ title, desc, btnUrl }) => {
<SpecsWrapper>
<div className="management-plane">
<Container>
<Row $Vcenter>
<Col className="text" xs={12} lg={6}>
<Row className="management-plane-row" $Vcenter>
<Col className="text" $xs={12} $lg={6}>
<h2>{title}</h2>
<p>{desc}</p>
<VintageBox left={true} vintageTwo={true}>
<Button
$primary
$url={btnUrl}
title="Learn More"
/>
<Button $primary $url={btnUrl} title="Learn More" />
</VintageBox>
</Col>
<Col className="card" xs={12} lg={6}>
<Col className="card" $xs={12} $lg={6}>
<DataCard />
</Col>
</Row>
Expand Down
56 changes: 37 additions & 19 deletions src/components/specs/specs.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,55 @@ import styled from "styled-components";
import MesheryWhiteLogo from "../../assets/images/meshery/icon-only/meshery-logo.svg";

const SpecsWrapper = styled.div`

.management-plane{
.management-plane {
margin-top: 2rem;
color: white;
background: linear-gradient(to right, ${props => props.theme.secondaryColor} 50%, ${props => props.theme.highlightColor} 50%);
background: linear-gradient(
to right,
${(props) => props.theme.secondaryColor} 50%,
${(props) => props.theme.highlightColor} 50%
);
@media (max-width: 62rem) {
background: linear-gradient(to bottom, ${props => props.theme.secondaryColor} 50%, ${props => props.theme.highlightColor} 50%);
background: ${(props) => props.theme.highlightColor};
}

.text{

.management-plane-row {
@media (max-width: 62rem) {
flex-wrap: wrap;

> .text,
> .card {
flex: 0 0 100%;
max-width: 100%;
}
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
}

.text {
position: relative;
padding: 6rem;
overflow: visible;


@media (max-width: 62rem) {
background: ${(props) => props.theme.secondaryColor};
box-shadow: 0 0 0 100vmax ${(props) => props.theme.secondaryColor};
clip-path: inset(0 -100vmax);
}

@media (max-width: 36rem) {
padding-left: 2rem;
padding-bottom: 12rem;
}
h2{

h2 {
position: relative;
color: ${props => props.theme.white};
color: ${(props) => props.theme.white};
padding-bottom: 1rem;
z-index: 2;
}

&:before{
content: ' ';
&:before {
content: " ";
display: block;
position: absolute;
left: -300px;
Expand All @@ -41,18 +62,15 @@ const SpecsWrapper = styled.div`
opacity: 0.2;
}
}
.card{

.card {
@media (max-width: 62rem) {
padding-bottom: 2rem;
}
}
}



overflow: hidden;


overflow: hidden;
`;

export default SpecsWrapper;
Loading