diff --git a/src/components/SistentNavigation/content.js b/src/components/SistentNavigation/content.js index 5ca0281ae851..d615fdd11a25 100644 --- a/src/components/SistentNavigation/content.js +++ b/src/components/SistentNavigation/content.js @@ -58,4 +58,19 @@ export const content = [ link: "/projects/sistent/components/paper/code", text: "Paper", }, + { + id: 18, + link: "/projects/sistent/components/popper", + text: "Popper", + }, + { + id: 19, + link: "/projects/sistent/components/popper/guidance", + text: "Popper", + }, + { + id: 20, + link: "/projects/sistent/components/popper/code", + text: "Popper", + }, ]; diff --git a/src/pages/projects/sistent/components/popper/code.js b/src/pages/projects/sistent/components/popper/code.js new file mode 100644 index 000000000000..9327a30755d0 --- /dev/null +++ b/src/pages/projects/sistent/components/popper/code.js @@ -0,0 +1,8 @@ +import React from "react"; +import { PooperCode } from "../../../../../sections/Projects/Sistent/components/popper/code"; + +const PopperCodePage = () => { + return ; +}; + +export default PopperCodePage; diff --git a/src/pages/projects/sistent/components/popper/guidance.js b/src/pages/projects/sistent/components/popper/guidance.js new file mode 100644 index 000000000000..70cde98837c0 --- /dev/null +++ b/src/pages/projects/sistent/components/popper/guidance.js @@ -0,0 +1,8 @@ +import React from "react"; +import { PopperGuidance } from "../../../../../sections/Projects/Sistent/components/popper/guidance"; + +const PopperGuidancePage = () => { + return ; +}; + +export default PopperGuidancePage; diff --git a/src/pages/projects/sistent/components/popper/index.js b/src/pages/projects/sistent/components/popper/index.js new file mode 100644 index 000000000000..e75d22655e5f --- /dev/null +++ b/src/pages/projects/sistent/components/popper/index.js @@ -0,0 +1,8 @@ +import React from "react"; +import { SistentPopper } from "../../../../../sections/Projects/Sistent/components/popper"; + +const SistentPopperPage = () => { + return ; +}; + +export default SistentPopperPage; diff --git a/src/sections/Projects/Sistent/components/index.js b/src/sections/Projects/Sistent/components/index.js index d04c1db7cb27..ce03dfbf7ac9 100644 --- a/src/sections/Projects/Sistent/components/index.js +++ b/src/sections/Projects/Sistent/components/index.js @@ -37,6 +37,13 @@ const componentsData = [ "The Paper component offers an elevated surface with shadow effects, following Material Design’s elevation system.", url: "/projects/sistent/components/paper", }, + { + id: 5, + name: "Popper", + description: + "A popper is a tooltip that appears when a user interacts with an element.", + url: "/projects/sistent/components/popper", + }, ]; const SistentComponents = () => { diff --git a/src/sections/Projects/Sistent/components/popper/code.js b/src/sections/Projects/Sistent/components/popper/code.js new file mode 100644 index 000000000000..7983121f6aeb --- /dev/null +++ b/src/sections/Projects/Sistent/components/popper/code.js @@ -0,0 +1,347 @@ +import React, { useState } from "react"; +import { navigate } from "gatsby"; +import { useLocation } from "@reach/router"; +import { + SistentThemeProvider, + Popper, + Button, + Box, + Grid, +} from "@layer5/sistent"; +import { SistentLayout } from "../../sistent-layout"; +import { CodeBlock } from "../button/code-block"; +import TabButton from "../../../../../reusecore/Button"; +import { useStyledDarkMode } from "../../../../../theme/app/useStyledDarkMode"; + +const codes = [ + `