├── src ├── assets │ ├── logo.png │ ├── codedeck.png │ └── logo-small.png ├── components │ ├── ModalTypes │ │ ├── Loading.jsx │ │ ├── index.js │ │ ├── NewFolder.jsx │ │ ├── EditFolder.jsx │ │ ├── EditPlaygroundTitle.jsx │ │ ├── NewPlayground.jsx │ │ └── NewPlaygroundAndFolder.jsx │ └── Modal.jsx ├── index.js ├── style │ └── global.js ├── screens │ ├── Error404 │ │ └── index.jsx │ ├── Playground │ │ ├── OutputConsole.jsx │ │ ├── Navbar.jsx │ │ ├── InputConsole.jsx │ │ ├── CodeEditor.jsx │ │ ├── index.jsx │ │ └── EditorContainer.jsx │ └── Home │ │ ├── index.jsx │ │ ├── LeftComponent.jsx │ │ └── RightComponent.jsx ├── index.css ├── App.js └── context │ ├── ModalContext.jsx │ └── PlaygroundContext.jsx ├── .gitignore ├── public └── index.html ├── README.md └── package.json /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vishal-raj-1/code_deck/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /src/assets/codedeck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vishal-raj-1/code_deck/HEAD/src/assets/codedeck.png -------------------------------------------------------------------------------- /src/assets/logo-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vishal-raj-1/code_deck/HEAD/src/assets/logo-small.png -------------------------------------------------------------------------------- /src/components/ModalTypes/Loading.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | const Loading = () => { 4 | return ( 5 |
Loading...
6 | ) 7 | } 8 | 9 | export default Loading; -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | 6 | const root = ReactDOM.createRoot(document.getElementById('root')); 7 | root.render( 8 | 9 | 10 | 11 | ); -------------------------------------------------------------------------------- /src/style/global.js: -------------------------------------------------------------------------------- 1 | import { createGlobalStyle } from "styled-components"; 2 | 3 | export const GlobalStyle = createGlobalStyle` 4 | *{ 5 | padding: 0; 6 | margin: 0; 7 | box-sizing: border-box; 8 | font-family: 'Play', sans-serif; 9 | } 10 | 11 | a{ 12 | text-decoration: none; 13 | } 14 | ` -------------------------------------------------------------------------------- /src/components/ModalTypes/index.js: -------------------------------------------------------------------------------- 1 | import NewFolder from './NewFolder'; 2 | import NewPlayground from './NewPlayground' 3 | import NewPlaygroundAndFolder from './NewPlaygroundAndFolder' 4 | import EditFolder from './EditFolder' 5 | import EditPlaygroundTitle from './EditPlaygroundTitle' 6 | import Loading from './Loading' 7 | export { NewFolder, NewPlayground, NewPlaygroundAndFolder, EditFolder, EditPlaygroundTitle, Loading }; -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /src/screens/Error404/index.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect } from 'react' 2 | import { useNavigate } from 'react-router-dom' 3 | 4 | const Error404 = () => { 5 | const navigate = useNavigate(); 6 | useEffect(() => { 7 | setTimeout(() => { 8 | navigate('/'); 9 | }, 3000) 10 | }, []) 11 | return ( 12 |
No Page Found, Redirecting to home page
13 | ) 14 | } 15 | 16 | export default Error404 -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /src/screens/Playground/OutputConsole.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { Console, Header, TextArea } from './InputConsole' 3 | import { BiExport } from 'react-icons/bi' 4 | 5 | const OutputConsole = ({ currentOutput }) => { 6 | return ( 7 | 8 |
9 | Output: 10 | 11 | 12 | Export Output 13 | 14 | 15 |
16 |