- This Playground allows you to experiment with code without having to
- set up your own development environment. You can write HTML code to
- structure the content of your webpage, CSS code to style the
- appearance of your webpage, and JavaScript code to add interactivity
- to your webpage. The playground will then execute your code and
- display the results in a preview pane.
-
+ This Playground allows you to experiment with code without having to
+ set up your own development environment. You can write HTML code to
+ structure the content of your webpage, CSS code to style the appearance
+ of your webpage, and JavaScript code to add interactivity to your
+ webpage. The playground will then execute your code and display the
+ results in a preview pane.
+
+
+
+
+
+ );
+};
+
+export default CodePlayground;
diff --git a/src/index.js b/src/index.js
index 1d96eeb..0d75db3 100644
--- a/src/index.js
+++ b/src/index.js
@@ -5,13 +5,11 @@ import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { BrowserRouter as Router } from "react-router-dom";
import ReactGA from "react-ga4";
-import Modal from "react-modal";
// Initialize Google Analytics
ReactGA.initialize(process.env.REACT_APP_G_TAG_ID);
-// Set the app element for react-modal
-Modal.setAppElement('#root');
+
const root = ReactDOM.createRoot(document.getElementById("root"));
diff --git a/src/pages/code-playground/page.jsx b/src/pages/code-playground/page.jsx
new file mode 100644
index 0000000..2bbc481
--- /dev/null
+++ b/src/pages/code-playground/page.jsx
@@ -0,0 +1,12 @@
+import React from "react";
+import { GlobalLayout } from "../../components";
+import CodePlayground from "../../components/activities/code-playground";
+const CodePlaygroundPage = () => {
+ return (
+
+
+
+ );
+};
+
+export default CodePlaygroundPage;
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index 3552cc8..cde1d97 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -5,6 +5,7 @@ import CodingPage from "./activities/coding/page";
import RoboticsPage from "./activities/robotics/page";
import GameDevelopment from "./activities/game-development/page";
import ContactUsPage from "./contact-us/page";
+import CodePlaygroundPage from "./code-playground/page";
export {
HomePage,
@@ -14,4 +15,5 @@ export {
RoboticsPage,
GameDevelopment,
ContactUsPage,
+ CodePlaygroundPage
};
diff --git a/src/utils/appData.js b/src/utils/appData.js
index 76e4461..c89be45 100644
--- a/src/utils/appData.js
+++ b/src/utils/appData.js
@@ -33,6 +33,7 @@ export const navigationMenu = [
title: "Robotics",
url: "/activities/robotics",
},
+
],
},
{