-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: lakshya <[email protected]>
- Loading branch information
Showing
9 changed files
with
358 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
2 changes: 1 addition & 1 deletion
2
src/pages/projects/sistent/components.js → ...ages/projects/sistent/components/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.