Skip to content

Commit

Permalink
responsiveness
Browse files Browse the repository at this point in the history
Signed-off-by: Yash Kamboj <[email protected]>
  • Loading branch information
YashKamboj committed Jun 9, 2022
1 parent 577efa0 commit 4545efe
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
16 changes: 6 additions & 10 deletions src/sections/Projects/Project-grid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PageHeader from "../../../reusecore/PageHeader";
import { ProjectWrapper } from "./projectGrid.style";
import DockerExtensionCTA from "../../Docker-Meshery/docker-extension-CTA";

import extension from "../../../assets/images/docker-extension/Docker_animated.svg"
import extension from "../../../assets/images/docker-extension/Docker_animated.svg";
import meshery from "../../../assets/images/meshery/icon-only/meshery-logo-light.svg";
import landscape from "../../../assets/images/landscape/layer5_landscape_green.svg";
import imagehub from "../../../assets/images/image-hub/layer5-image-hub.svg";
Expand Down Expand Up @@ -80,15 +80,11 @@ const ProjectPage = () => {
>
<div className="project__card-container-seven">
<Row>
<Col lg={4} md={12} sm={12} className="image">
<img
src={extension}
alt="Meshery Docker Extension"
/>
</Col>
<Col lg={8} md={12} sm={12}>
<h5> Meshery Docker Extension </h5>
</Col>
<img
src={extension}
alt="Meshery Docker Extension"
/>
<h5> Meshery Docker Extension </h5>
</Row>
</div>
</Link>
Expand Down
23 changes: 19 additions & 4 deletions src/sections/Projects/Project-grid/projectGrid.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,19 @@ export const ProjectWrapper = styled.div`
width: 150px;
align-self: center;
margin-top: 8px;
margin: auto;
@media only screen and (min-width: 780px) {
align-self: flex-start;
margin-top: 15px;
}
}
h5{
align-self: center;
margin-top: 1rem;
@media only screen and (min-width: 780px) {
align-self: flex-end;
padding-top: 40px;
padding-top: 0px;
}
}
}
Expand All @@ -206,10 +209,14 @@ export const ProjectWrapper = styled.div`
flex-direction: column;
justify-content: space-between;
img{
align-self: center;
max-width: 200%;
max-height: 100%;
}
h5{
top: 0;
font-weight: 600;
text-align: center;
Expand All @@ -235,7 +242,6 @@ export const ProjectWrapper = styled.div`
align-self: center;
margin-top: 1rem;
@media only screen and (min-width: 780px) {
align-self: flex-end;
}
}
}
Expand Down Expand Up @@ -363,6 +369,15 @@ export const ProjectWrapper = styled.div`
}
}
.project__card.seven{
img{
margin-top: 15px;
width: 150%;
}
h5{
margin-top:30px;
}
}
.project__card.eight{
img{
margin-top: 10px;
}
Expand Down

0 comments on commit 4545efe

Please sign in to comment.