20 |
21 |
About Project
22 |
23 | ×
24 |
25 |
26 |
27 | {`
28 | Welcome to Online Compiler
29 | Currently, the Project supports for
30 | Python
31 | ,C++,
32 | JavaScript
33 | and
34 | Java
35 | This is an
36 | open-source project
37 | and contributions are appreciated. If interested or you have any
38 | suggestion click the
39 | GitHub
40 | icon at the bottom and raise an
41 | issue.
42 | `}
43 |
44 |
49 |
50 | )}
51 |
52 | );
53 | };
54 |
55 | export default PopUpText;
56 |
--------------------------------------------------------------------------------
/src/components/Popup/index.module.css:
--------------------------------------------------------------------------------
1 | .modal {
2 | padding: 1rem;
3 | border: none;
4 | background-color:black;
5 | color: var(--lighttext);
6 | position: relative;
7 | }
8 |
9 | .close {
10 | position: absolute;
11 | right: 0;
12 | top: 0px;
13 | width: 40px;
14 | height: 40px;
15 | background-color: var(--darkPanel);
16 | color: var(--lighttext);
17 | outline:hidden;
18 | }
19 |
20 | .heading {
21 | font-size: 2rem;
22 | padding: 1rem 2rem;
23 | }
24 |
25 | .header {
26 | margin-top: 0.5rem;
27 | display: flex;
28 | align-items: center;
29 | justify-content: space-between;
30 | margin-bottom: 1.25rem;
31 | }
32 |
33 | .content {
34 | padding: 0rem 2rem;
35 | line-height: 1.5rem;
36 | }
37 |
38 | .actions {
39 | display: flex;
40 | margin: 1rem 2rem;
41 | padding: 1rem;
42 | color: white;
43 | justify-content:center;
44 | border: 1px solid white;
45 | }
46 |
47 | /* Media Queries */
48 | @media screen and (max-width: 600px) {
49 | .popup-content {
50 | width: 90%;
51 | }
52 | }
--------------------------------------------------------------------------------
/src/components/Prompt/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import Popup from 'reactjs-popup';
3 | import PropTypes from 'prop-types';
4 | import styles from './index.module.css';
5 | import Reset from '../../icons/Reset';
6 |
7 | const baseCSSStyles = {
8 | background: 'none',
9 | border: 'none',
10 | };
11 |
12 | const ResetPrompt = ({ handleResetCode }) => (
13 |
46 |
{
55 | setBoilerplateCode({ type: 'CPP' });
56 | handleClick(e, 'cpp');
57 | }}
58 | />
59 |
{
68 | setBoilerplateCode({ type: 'JAVA' });
69 | handleClick(e, 'java');
70 | }}
71 | />
72 |
{
81 | setBoilerplateCode({ type: 'PYTHON' });
82 | handleClick(e, 'py');
83 | }}
84 | />
85 |
{
94 | setBoilerplateCode({ type: 'JAVASCRIPT' });
95 | handleClick(e, 'js');
96 | }}
97 | />
98 |
99 | );
100 | };
101 | SelectBar.propTypes = {
102 | changeLanguage: PropTypes.func.isRequired,
103 | };
104 | export default SelectBar;
105 |
--------------------------------------------------------------------------------
/src/components/SplashScreen/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import PropagateLoader from 'react-spinners/PropagateLoader';
3 | import styles from './index.module.css';
4 |
5 | const Preloader = () => (
6 |