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
112 changes: 112 additions & 0 deletions src/sections/Kanvas/Kanvas-collaborate/collaboration-feature-review.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
import React from "react";
import styled from "styled-components";
import CollaborateSvg from "../Kanvas-collaborate/images/collaborate.svg";
import { useInView } from "react-intersection-observer";
import { useState } from "react";
import Button from "../../../reusecore/Button";

const CollaborationFeatureWrapper = styled.div`
display: flex;
flex-direction: row;
justify-content: center;
padding: 5% 5% 8%;

.hero-div {
position: relative;
transition: 0.5s;
display: flex;
flex-direction: row; /* Changed to row to place image on left, text on right */
background-color: ${props => props.theme.grey121212ToWhite};
max-width: 90%;
height: fit-content;
justify-content: space-between;
align-items: center;
padding: 1% 3% 1%;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
@media only screen and (max-width: 767px) {
text-align: center;
flex-direction: column; /* Stack image above text on mobile */
}
}

.hero-text {
display: flex;
flex-direction: column;
flex: 0 0 40%;
max-width: 40%;
@media only screen and (max-width: 767px) {
max-width: 100%;
}
}

h2 {
span {
color: ${props => props.theme.text};
}
}

.hero-image {
flex: 0 0 50%;
max-width: 50%;
}

img {
opacity: 0;
transition: opacity ease-out 0.5s;
}

svg {
opacity: 0;
transition: opacity ease-out 0.5s;
.collab4-colorMode_svg__colorMode1 {
fill: ${props => props.theme.whiteToBlack};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.collab4-colorMode_svg__colorMode2 {
fill: ${props => props.theme.greyB4B4B4ToGrey505050};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.collab4-colorMode_svg__colorMode3 {
fill: ${props => props.theme.blackToWhite};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media only screen and (max-width: 767px) {
width: 100%;
}
}

.visible {
opacity: 1;
transition: opacity ease-in 0.5s;
}
`;

const CollaborationFeatureReview = () => {
const [locatorRef, inView] = useInView({ threshold: 0.5 });
const [imageInView, setImageInView] = useState(false);
if (inView && !imageInView) {
setImageInView(true);
} else if (imageInView && !inView) {
setImageInView(false);
}
return (
<CollaborationFeatureWrapper>
<div className="hero-div">
<div className="hero-image">
<img className={imageInView ? "visible" : ""} src={CollaborateSvg} alt="" ref={locatorRef} />
</div>
<div className="hero-text">
<h2>
Review <span>Designs</span> at a glance
</h2>
<p>
Streamline your design review process with Kanvas, allowing you to quickly assess and provide feedback on designs, ensuring efficient collaboration and project progression.
</p>
<Button $primary className="button" title="Learn More" $url="https://docs.layer5.io/kanvas/designer/comments/" $external={true}/>
</div>
</div>
</CollaborationFeatureWrapper>
);
};

export default CollaborationFeatureReview;
130 changes: 130 additions & 0 deletions src/sections/Kanvas/Kanvas-collaborate/collaboration-feature-share.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
import React, { useState, useEffect } from "react";
import styled from "styled-components";
import { useInView } from "react-intersection-observer";
// ...existing imports...
import sharegraphic from "../Kanvas-collaborate/images/model-where.gif";
import Button from "../../../reusecore/Button";

const CollaborationFeatureWrapper = styled.div`

display: flex;
flex-direction: row;
/* background-color: ${props => props.theme.grey121212ToWhite};;
max-width: 90%; */
justify-content: center;
/* align-items: center; */
padding: 5% 5% 8%;
/* @media only screen and (max-width: 767px) {
text-align: center;
flex-direction: column-reverse;
} */

.hero-div {
position: relative;
transition: 0.5s;
display: flex;
flex-direction: row-reverse;
background-color: ${props => props.theme.grey121212ToWhite};;
max-width: 90%;
height: fit-content;
justify-content: space-between;
align-items: center;
padding: 1% 3% 1%;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
@media only screen and (max-width: 767px) {
text-align: center;
flex-direction: column-reverse;
}
}

.hero-text {
display: flex;
flex-direction: column;
flex: 0 0 40%;
max-width: 40%;
@media only screen and (max-width: 767px) {
max-width: 100%;
}
}

h2 {
span {
color: ${props => props.theme.text};
}
}

.hero-image {
flex: 0 0 50%;
max-width: 50%;
}

.hero-image img {
opacity: 0;
transition: opacity ease-out 0.5s;
display: block;
width: 100%;
height: auto;
}

svg {
opacity: 0;
transition: opacity ease-out 0.5s;
.collab4-colorMode_svg__colorMode1
{
fill: ${props => props.theme.whiteToBlack};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.collab4-colorMode_svg__colorMode2{
fill: ${props => props.theme.greyB4B4B4ToGrey505050};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.collab4-colorMode_svg__colorMode3{
fill: ${props => props.theme.blackToWhite};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media only screen and (max-width: 767px) {
width: 100%;
}
}

.hero-image.visible img {
opacity: 1;
transition: opacity ease-in 0.5s;
}

`;
const CollaborationFeatureShare = () => {
const [ref, inView] = useInView({
threshold: 0.2,
triggerOnce: true,
});
const [hasBeenInView, setHasBeenInView] = useState(false);

useEffect(() => {
if (inView && !hasBeenInView) {
setHasBeenInView(true);
}
}, [inView, hasBeenInView]);

return (
<CollaborationFeatureWrapper ref={ref}>
<div className="hero-div">
<div className={`hero-image ${hasBeenInView ? "visible" : ""}`}>
<img src={sharegraphic} alt="Share and Collaborate Seamlessly" />
</div>
<div className="hero-text">
<h2>
<span>Share</span> Your Designs Seamlessly
</h2>
<p>
Effortlessly share your projects and collaborate with team members in real-time, enhancing productivity and teamwork.
</p>
<Button $primary className="button" title="Learn More" $url="https://docs.layer5.io/kanvas/designer/sharing/" $external={true}/>
</div>
</div>
</CollaborationFeatureWrapper>
);
};

export default CollaborationFeatureShare;

120 changes: 120 additions & 0 deletions src/sections/Kanvas/Kanvas-collaborate/collaboration-feature-tags.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
import styled from "styled-components";
import React from "react";
import { useInView } from "react-intersection-observer";
import GroupComponents from "../Kanvas-collaborate/images/group-components.png";
import { useState } from "react";
import Button from "../../../reusecore/Button";

const CollaborationFeatureWrapper = styled.div`
display: flex;
flex-direction: row;
justify-content: center;
padding: 5% 5% 8%;

.hero-div {
position: relative;
transition: 0.5s;
display: flex;
flex-direction: row-reverse; /* Changed to row to place image on left, text on right */
background-color: ${props => props.theme.grey121212ToWhite};
max-width: 90%;
height: fit-content;
justify-content: space-between;
align-items: center;
padding: 1% 3% 1%;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
@media only screen and (max-width: 767px) {
text-align: center;
flex-direction: column; /* Stack image above text on mobile */
}
}

.hero-text {
display: flex;
flex-direction: column;
flex: 0 0 40%;
max-width: 40%;
@media only screen and (max-width: 767px) {
max-width: 100%;
}
}

h2 {
span {
color: ${props => props.theme.text};
}
}

.hero-image {
flex: 0 0 30%;
max-width: 30%;
}

img {
opacity: 0;
transition: opacity ease-out 0.5s;
}

svg {
opacity: 0;
transition: opacity ease-out 0.5s;
.collab4-colorMode_svg__colorMode1 {
fill: ${props => props.theme.whiteToBlack};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.collab4-colorMode_svg__colorMode2 {
fill: ${props => props.theme.greyB4B4B4ToGrey505050};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.collab4-colorMode_svg__colorMode3 {
fill: ${props => props.theme.blackToWhite};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media only screen and (max-width: 767px) {
width: 100%;
}
}

.visible {
opacity: 1;
transition: opacity ease-in 0.5s;
}
.button {
width: fit-content;}
`;

const CollaborationFeatureTag = () => {
const [locatorRef, inView] = useInView({ threshold: 0.5 });
// const [sectionRef, sectionView] = useInView({ threshold: 1.0 });
const [imageInView, setimageInView] = useState(false);
// const [sectionInView, setSectionInView] = useState(false);
if (inView && !imageInView)
setimageInView(true);
else if (imageInView && !inView)
setimageInView(false);
// if (sectionView && !sectionInView)
// setSectionInView(true);
// if (sectionInView && !sectionView)
// setSectionInView(false);

return (
<CollaborationFeatureWrapper>
<div className="hero-div">
<div className="hero-image">
<img className={imageInView ? "visible" : ""} src={GroupComponents} alt="" ref={locatorRef} />
</div>
<div className="hero-text">
<h2>
<span>Group</span> your components with Tags
</h2>
<p>
Use tags to organize and categorize components, with Labels for visible identification and Annotations for additional details and quick search.
</p>
<Button $primary className="button" title="Learn More" $url="https://docs.layer5.io/kanvas/designer/comments/" $external={true}/>
</div>
</div>
</CollaborationFeatureWrapper>
);
};

export default CollaborationFeatureTag;
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const CollaborationFeatureWrapper = styled.div`
max-width: 90%; */
justify-content: center;
/* align-items: center; */
padding: 5% 5% 8%;
padding: 5% 3% 1%;
/* @media only screen and (max-width: 767px) {
text-align: center;
flex-direction: column-reverse;
Expand All @@ -22,13 +22,13 @@ const CollaborationFeatureWrapper = styled.div`
position: relative;
transition: 0.5s;
display: flex;
flex-direction: row-reverse;
flex-direction: row;
background-color: ${props => props.theme.grey121212ToWhite};;
max-width: 90%;
height: fit-content;
justify-content: space-between;
align-items: center;
padding: 2% 5% 8%;
padding: 1% 3% 1%;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
@media only screen and (max-width: 767px) {
text-align: center;
Expand Down
Loading