1- import { Main } from ' ./App.style.js' ;
1+ import { Main } from " ./App.style.js" ;
22import mesheryPlayground from "./assets/images/meshery-playground-kanvas.png" ;
33import Footer from "./components/Footer" ;
44import { ThemeProvider } from "styled-components" ;
5- import { darkTheme , GlobalStyle , lightTheme } from ' ./index.style.js' ;
5+ import { darkTheme , GlobalStyle , lightTheme } from " ./index.style.js" ;
66import { useDarkMode } from "./components/useDarkMode" ;
7- import ReactPlayer from ' react-player/youtube'
7+ import ReactPlayer from " react-player/youtube" ;
88import Navigation from "./components/Navigation" ;
9- import DiscussCallout from ' ./components/Discuss-Callout' ;
9+ import DiscussCallout from " ./components/Discuss-Callout" ;
1010import { useState } from "react" ;
11- import ArrowIcon from './ArrowIcon.js' ;
1211import Modal from "react-modal" ;
13- import Faq from './components/Faq/index.js' ;
14- import Button from './reusecore/Button/index.js' ;
15- import ResourcesSection from './Resources.js' ;
12+ import Faq from "./components/Faq/index.js" ;
13+ import Button from "./reusecore/Button/index.js" ;
14+ import ResourcesSection from "./Resources.js" ;
15+ import VendorSelection from "./components/VendorSelection" ;
1616
1717const App = ( ) => {
18-
19-
2018 const [ theme , toggleTheme ] = useDarkMode ( ) ;
21- const themeMode = theme === ' light' ? lightTheme : darkTheme ;
19+ const themeMode = theme === " light" ? lightTheme : darkTheme ;
2220 const [ showSignUpButton ] = useState ( true ) ;
2321
2422 const [ modalIsOpen , setIsOpen ] = useState ( false ) ;
@@ -34,54 +32,53 @@ const App = () => {
3432 < >
3533 < ThemeProvider theme = { themeMode } >
3634 < GlobalStyle />
37- < Navigation theme = { theme } toggleTheme = { toggleTheme } showSignUpButton = { showSignUpButton } />
35+ < Navigation
36+ theme = { theme }
37+ toggleTheme = { toggleTheme }
38+ showSignUpButton = { showSignUpButton }
39+ />
3840 < Main >
3941 < section className = "hero" >
40- < h1 >
41- The Cloud Native Playground
42- </ h1 >
42+ < h1 > A Cloud Native Playground</ h1 >
4343 < p className = "desc-text" >
44- Explore the Cloud Native Computing Foundation's graduated, incubation, and sandbox projects as well as many other popular open source projects. Use Meshery Playground to explore a new way of DevOps - visual and collaborative configuration management for your infrastructure.
44+ Explore the Cloud Native Computing Foundation's graduated,
45+ incubation, and sandbox projects as well as many other popular
46+ open source projects. Use a Meshery Playground to explore a new
47+ way of DevOps - visual and collaborative configuration management
48+ for your infrastructure.
4549 </ p >
4650 </ section >
4751 < section className = "playground-btn" >
4852 < div >
49- < Button className = "continue-btn open-playground-btn" style = { { background : "rgb(235, 192, 23)" } } role = "button" onClick = { openModal } >
50- Open Playground
51- </ Button >
52- < Modal
53- isOpen = { modalIsOpen }
54- onRequestClose = { closeModal }
55- className = "Modal"
56- overlayClassName = "Overlay"
57- ariaHideApp = { false }
58- contentLabel = "Content Form"
59- >
6053 < Button
61- className = "close-modal-btn"
62- onClick = { closeModal }
54+ className = "continue-btn open-playground-btn"
55+ style = { { background : "rgb(235, 192, 23)" } }
56+ role = "button"
57+ onClick = { openModal }
6358 >
64- ×
59+ Choose Your Playground
6560 </ Button >
66- < div class = "content" >
67- < Faq category = { [ "Meshery Playground" ] } />
68- < div className = "continue-btn-container"
61+ < Modal
62+ isOpen = { modalIsOpen }
63+ onRequestClose = { closeModal }
64+ className = "Modal"
65+ overlayClassName = "Overlay"
66+ ariaHideApp = { false }
67+ contentLabel = "Playground Selection"
6968 >
70- < a href = "https://playground.meshery.io" >
71- < Button className = "continue-btn" style = { { background : "rgb(235, 192, 23)" } } >
72- < ArrowIcon />
73- Continue
74- </ Button >
75- </ a >
69+ < Button className = "close-modal-btn" onClick = { closeModal } >
70+ ×
71+ </ Button >
72+ < div className = "content" >
73+ < Faq
74+ category = { [
75+ "Cloud Native Playgrounds" ,
76+ "Meshery Playground" ,
77+ ] }
78+ />
79+ < VendorSelection />
7680 </ div >
77- < p style = { {
78- textAlign : "center" ,
79- fontSize : "1rem" ,
80- color : `${ props => props . theme . text } ` ,
81- marginTop : "0.5rem"
82- } } >
83- On clicking the continue button you will be redirected to Meshery Playground.</ p > </ div >
84- </ Modal >
81+ </ Modal >
8582 </ div >
8683 </ section >
8784 < section className = "video" >
@@ -98,26 +95,28 @@ const App = () => {
9895 < section >
9996 < ResourcesSection />
10097 </ section >
101-
98+
10299 < div className = "community-discuss-wrapper" >
103- < section className = "join-community" >
104- < div >
105- < h1 > Join the community!</ h1 >
106- < p > Engage in the Meshery community by joining us on Slack</ p >
107- < Button url = "https://slack.meshery.io/" > Join Our Open Source Community</ Button >
108- </ div >
109- </ section >
110- < section >
111- < div className = 'desc-callout' >
112- < DiscussCallout />
113- </ div >
114- </ section >
100+ < section className = "join-community" >
101+ < div >
102+ < h1 > Join the community!</ h1 >
103+ < p > Engage in the Meshery community by joining us on Slack</ p >
104+ < Button url = "https://slack.meshery.io/" >
105+ Join Our Open Source Community
106+ </ Button >
107+ </ div >
108+ </ section >
109+ < section >
110+ < div className = "desc-callout" >
111+ < DiscussCallout />
112+ </ div >
113+ </ section >
115114 </ div >
116115 </ Main >
117116 < Footer />
118117 </ ThemeProvider >
119118 </ >
120119 ) ;
121- }
120+ } ;
122121
123122export default App ;
0 commit comments