Skip to content

Commit

Permalink
add components page
Browse files Browse the repository at this point in the history
Signed-off-by: lakshya <[email protected]>
  • Loading branch information
lakshz committed Feb 29, 2024
1 parent 5b4f1a0 commit 96ecf72
Show file tree
Hide file tree
Showing 9 changed files with 358 additions and 88 deletions.
8 changes: 8 additions & 0 deletions src/pages/projects/sistent/components/button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import SistentButton from "../../../../sections/Projects/Sistent/components/button";

const SistentButtonPage = () => {
return <SistentButton />;
};

export default SistentButtonPage;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import SistentComponents from "../../../sections/Projects/Sistent/components";
import SistentComponents from "../../../../sections/Projects/Sistent/components";

const SistentComponentsPage = () => {
return <SistentComponents />;
Expand Down
8 changes: 8 additions & 0 deletions src/pages/projects/sistent/components/text-input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import SistentTextInput from "../../../../sections/Projects/Sistent/components/text-input";

const SistentTextInputPage = () => {
return <SistentTextInput />;
};

export default SistentTextInputPage;
111 changes: 56 additions & 55 deletions src/sections/Products/products.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const ProductWrapper = styled.section`
width: 100vw;
overflow: hidden;
}
.headers {
display: flex;
flex-direction: column;
Expand All @@ -28,36 +28,36 @@ const ProductWrapper = styled.section`
text-align: center;
}
}
.paraInfo {
width: 80vw;
}
.paras{
.paras {
display: flex;
flex-direction: column;
align-items: center;
/* justify-content: center; */
}
.comparison-button{
.comparison-button {
margin-top: 75px;
padding: 0 1.5rem 2rem 1.5rem ;
padding: 0 1.5rem 2rem 1.5rem;
Button {
color: white;
font-size: 1.75rem;
font-weight: bold;
}
}
.gap {
padding: 5rem 20px;
}
.bot_gap{
margin-bottom: 4rem;
}
.bot_gap {
margin-bottom: 4rem;
}
.freeTry {
position: relative;
display: flex;
Expand All @@ -81,7 +81,7 @@ const ProductWrapper = styled.section`
width: 860px;
}
}
.rotate {
transform: rotate(-4deg);
width: 100vw;
Expand All @@ -100,15 +100,19 @@ const ProductWrapper = styled.section`
.product_hero {
display: flex;
justify-content:center;
align-items : center;
background: linear-gradient(180deg, rgba(0, 211, 169, 0.10) 0%, rgba(0, 179, 159, 0.00) 100%);
justify-content: center;
align-items: center;
background: linear-gradient(
180deg,
rgba(0, 211, 169, 0.1) 0%,
rgba(0, 179, 159, 0) 100%
);
}
.product_hero_text {
flex: 1;
margin: 2rem;
margin-left:10vw;
margin-left: 10vw;
}
.product_hero_text h1 {
font-family: Qanelas Soft;
Expand All @@ -131,26 +135,25 @@ const ProductWrapper = styled.section`
margin: 2rem 0;
}
.btn {
display: flex;
gap: 40px;
flex-direction: row;
}
display: flex;
gap: 40px;
flex-direction: row;
}
.btn Button {
font-size: 18px;
}
.product_hero_img {
margin:1rem;
> img {
width: 35rem;
height: 35rem;
position: relative;
}
margin: 1rem;
> img {
width: 35rem;
height: 35rem;
position: relative;
}
}
.heroImg path {
filter: red;
}
.product_cards {
min-height: 100%;
}
Expand All @@ -162,16 +165,16 @@ const ProductWrapper = styled.section`
}
.product_cards .card {
width: 540px;
height: 100%;
height: 100%;
border-radius: 20px;
background-color: ${(props) => props.theme.grey212121ToGreyF0F0F0};
padding: 2rem;
margin: 2rem;
}
.logo {
max-height: 3rem;
}
.cards {
.logo {
max-height: 3rem;
}
.cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
Expand Down Expand Up @@ -206,40 +209,39 @@ height: 100%;
display: flex;
align-items: flex-end;
justify-content: space-between;
margin:0;
margin: 0;
}
.learn {
.learn {
font-size: 1rem;
margin: 10px 0;
cursor: pointer;
color: ${(props) => props.theme.whiteToBlack};
&:hover {
text-decoration: underline;
text-decoration-color: ${(props) => props.theme.secondaryColor};
text-underline-offset: 8px;
&:hover {
text-decoration: underline;
text-decoration-color: ${(props) => props.theme.secondaryColor};
text-underline-offset: 8px;
}
}
.btns Button {
margin: 20px 0px;
font-size: 16px;
margin-bottom:0;
margin-bottom: 0;
}
.iconss {
display: flex;
gap: 16px;
position: absolute;
right: 0;
}
@media (max-width:1141px){
@media (max-width: 1141px) {
.product_hero_img {
margin:1rem;
margin: 1rem;
}
.product_hero_img img{
height:420px;
.product_hero_img img {
height: 420px;
}
}
@media (max-width: 968px) {
.product_hero {
display: flex;
Expand Down Expand Up @@ -295,9 +297,9 @@ height: 100%;
font-size: 40px;
}
}
@media (max-width: 600px){
.product_cards .card{
width:440px;
@media (max-width: 600px) {
.product_cards .card {
width: 440px;
}
}
@media (max-width: 509px) {
Expand Down Expand Up @@ -353,9 +355,8 @@ height: 100%;
width: 100%;
}
.product_cards .card {
width:280px;
width: 280px;
padding: 16px;
}
.card_head {
margin: 0;
Expand All @@ -366,7 +367,7 @@ height: 100%;
margin: 4px;
font-size: 16px;
} */
.btns{
.btns {
scale: 0.8;
}
.card .text {
Expand Down
32 changes: 0 additions & 32 deletions src/sections/Projects/Sistent/components.js

This file was deleted.

7 changes: 7 additions & 0 deletions src/sections/Projects/Sistent/components/button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

const SistentButton = () => {
return <div>SistentComponentsButton</div>;
};

export default SistentButton;
87 changes: 87 additions & 0 deletions src/sections/Projects/Sistent/components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import React, { useState } from "react";
import { Container } from "../../../../reusecore/Layout";
import SistentWrapper from "../sistent.style";
import TOC from "../../../../components/SistentNavigation";
import SistentPagination from "../../../../components/SistentNavigation/pagination";
import SearchBox from "../../../../reusecore/Search";
import useDataList from "../../../../utils/usedataList";

const componentsData = [
{
id: 1,
name: "Button",
description:
"A button is an interactive element that triggers a specific action and also lets users know what will happen next.",
url: "/projects/sistent/components/button",
},
{
id: 2,
name: "Text Input",
description:
"A text input is made up of multiple elements that combine to form a component that helps users to read, write, and edit text in an interface.",
url: "/projects/sistent/components/text-input",
},
];

const SistentComponents = () => {
const [searchQuery, setSearchQuery] = useState("");
const { queryResults, searchData } = useDataList(
componentsData,
setSearchQuery,
searchQuery,
["name", "description"],
"id"
);

return (
<SistentWrapper>
<div className="page-header-section">
<h1>Components</h1>
</div>
<TOC />
<div className="page-section">
<Container className="components-container">
<div className="content">
<a id="Identity">
<h2>Components</h2>
</a>
<p>
Components are reusable elements that serve as the building blocks
of the design system. They are curated using the established
identity principles and can be combined to form various elements,
patterns, and templates that can be used to design user
interfaces.
</p>
</div>
<div className="main-content">
<div className="search-container">
<SearchBox searchQuery={searchQuery} searchData={searchData} />
</div>
<div className="product_cards">
<div className="cards">
{queryResults.map((comp) => (
<div className="card" key={comp.id}>
<div className="card_head">
<div className="title">{comp.name}</div>
<div className="text">{comp.description}</div>
</div>
<div>
<div className="card_bottom">
<a className="learn" href={comp.url}>
Learn more
</a>
</div>
</div>
</div>
))}
</div>
</div>
</div>
<SistentPagination />
</Container>
</div>
</SistentWrapper>
);
};

export default SistentComponents;
7 changes: 7 additions & 0 deletions src/sections/Projects/Sistent/components/text-input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

const SistentTextInput = () => {
return <div>SistentTextInput</div>;
};

export default SistentTextInput;
Loading

0 comments on commit 96ecf72

Please sign in to comment.