@@ -8,6 +8,10 @@ import ReactPlayer from 'react-player/youtube'
88import Navigation from "./components/Navigation" ;
99import DiscussCallout from './components/Discuss-Callout' ;
1010import { useState } from "react" ;
11+ import ArrowIcon from './ArrowIcon.js' ;
12+ import Modal from "react-modal" ;
13+ import Faq from './components/Faq/index.js' ;
14+ import Button from './reusecore/Button/index.js' ;
1115
1216const App = ( ) => {
1317
@@ -16,6 +20,15 @@ const App = () => {
1620 const themeMode = theme === 'light' ? lightTheme : darkTheme ;
1721 const [ showSignUpButton ] = useState ( true ) ;
1822
23+ const [ modalIsOpen , setIsOpen ] = useState ( false ) ;
24+
25+ const openModal = ( ) => {
26+ setIsOpen ( true ) ;
27+ } ;
28+
29+ const closeModal = ( ) => {
30+ setIsOpen ( false ) ;
31+ } ;
1932 return (
2033 < >
2134 < ThemeProvider theme = { themeMode } >
@@ -39,12 +52,53 @@ const App = () => {
3952 className = "embedVideo"
4053 />
4154 </ section >
55+ < section className = "playground-btn" >
56+
57+ < div >
58+ < Button className = "continue-btn" style = { { background : "rgb(235, 192, 23)" } } role = "button" onClick = { openModal } >
59+ Open Playground
60+ </ Button >
61+ < Modal
62+ isOpen = { modalIsOpen }
63+ onRequestClose = { closeModal }
64+ className = "Modal"
65+ overlayClassName = "Overlay"
66+ ariaHideApp = { false }
67+ contentLabel = "Content Form"
68+ >
69+ < Button
70+ className = "close-modal-btn"
71+ onClick = { closeModal }
72+ >
73+ ×
74+ </ Button >
75+ < div class = "content" >
76+ < Faq category = { [ "Meshery Playground" ] } />
77+ < div className = "continue-btn-container"
78+ >
79+ < a href = "https://playground.meshery.io" >
80+ < Button className = "continue-btn" style = { { background : "rgb(235, 192, 23)" } } >
81+ < ArrowIcon />
82+ Continue
83+ </ Button >
84+ </ a >
85+ </ div >
86+ < p style = { {
87+ textAlign : "center" ,
88+ fontSize : "1rem" ,
89+ color : `${ props => props . theme . text } ` ,
90+ marginTop : "0.5rem"
91+ } } >
92+ On clicking the continue button you will be redirected to Meshery Playground</ p > </ div >
93+ </ Modal >
94+ </ div >
95+ </ section >
4296 < div className = "community-discuss-wrapper" >
4397 < section className = "join-community" >
4498 < div >
4599 < h1 > Join the community!</ h1 >
46100 < p > Engage in the Meshery community by joining us on Slack</ p >
47- < a href = "https://slack.meshery.io/" > Join Our Open Source Community</ a >
101+ < Button href = "https://slack.meshery.io/" > Join Our Open Source Community</ Button >
48102 </ div >
49103 </ section >
50104 < section >
0 commit comments