Skip to content

Commit

Permalink
move files (app disbled)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyanthropos committed Mar 1, 2023
1 parent c9e8fe1 commit ab4c0b8
Show file tree
Hide file tree
Showing 16 changed files with 72 additions and 63 deletions.
68 changes: 38 additions & 30 deletions src/Tools/singlepage/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Doenet</title>
<link rel="shortcut icon" href="/favicon.ico" />
<script type="text/javascript" charset="UTF-8"
src="https://cdn.jsdelivr.net/npm/[email protected]/distrib/jsxgraphcore.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/distrib/jsxgraph.css" />
<script src="https://www.youtube.com/iframe_api"></script>
<script type="text/javascript" src="/media/geogebra/scripts/deployggb.js"></script>
<!-- <link rel="stylesheet" type="text/css" href="/src/css/handsontable.full.css" /> -->
<script
type="text/javascript"
charset="UTF-8"
src="https://cdn.jsdelivr.net/npm/[email protected]/distrib/jsxgraphcore.js"
></script>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/[email protected]/distrib/jsxgraph.css"
/>
<script src="https://www.youtube.com/iframe_api"></script>
<script
type="text/javascript"
src="/src/media/geogebra/scripts/deployggb.js"
></script>
<!-- <link rel="stylesheet" type="text/css" href="/src/css/handsontable.full.css" /> -->

<!-- <link
rel="stylesheet"
Expand All @@ -22,58 +32,56 @@
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src:
url('../../media/fonts/files/open-sans-v18-latin-light.woff2') format('woff2'),
url('../../media/fonts/files/open-sans-v18-latin-light.woff') format('woff');
src: url('./fonts/files/open-sans-v18-latin-light.woff2')
format('woff2'),
url('./fonts/files/open-sans-v18-latin-light.woff') format('woff');
}

@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 300;
src:
url('../../media/fonts/files/open-sans-v18-latin-light-italic.woff2') format('woff2'),
url('../../media/fonts/files/open-sans-v18-latin-light-italic.woff') format('woff');
src: url('./fonts/files/open-sans-v18-latin-light-italic.woff2')
format('woff2'),
url('./fonts/files/open-sans-v18-latin-light-italic.woff')
format('woff');
}

/* Regular fonts */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: normal;
src:
url('../../media/fonts/files/open-sans-v18-latin-regular.woff2') format('woff2'),
url('../../media/fonts/files/open-sans-v18-latin-regular.woff') format('woff');
src: url('./fonts/files/open-sans-v18-latin-regular.woff2')
format('woff2'),
url('./fonts/files/open-sans-v18-latin-regular.woff') format('woff');
}

@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: normal;
src:
url('../../media/fonts/files/open-sans-v18-latin-italic.woff2') format('woff2'),
url('../../media/fonts/files/open-sans-v18-latin-italic.woff') format('woff');
src: url('./fonts/files/open-sans-v18-latin-italic.woff2')
format('woff2'),
url('./fonts/files/open-sans-v18-latin-italic.woff') format('woff');
}

/* Bold fonts */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: url('../../media/fonts/files/open-sans-v18-latin-700.woff2')
format('woff2'),
url('../../media/fonts/files/open-sans-v18-latin-700.woff')
format('woff');
src: url('./fonts/files/open-sans-v18-latin-700.woff2') format('woff2'),
url('./fonts/files/open-sans-v18-latin-700.woff') format('woff');
}

@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 700;
src: url('../../media/fonts/files/open-sans-v18-latin-700italic.woff2')
src: url('./fonts/files/open-sans-v18-latin-700italic.woff2')
format('woff2'),
url('../../media/fonts/files/open-sans-v18-latin-700italic.woff')
format('woff');
url('./fonts/files/open-sans-v18-latin-700italic.woff') format('woff');
}
html {
font-family: 'Open Sans' !important;
Expand All @@ -94,15 +102,15 @@
--lightGreen: #a6f19f;
--lightYellow: #f5ed85;
--whiteBlankLink: #6d4445;
--mainYellow: #94610A;
--mainYellow: #94610a;
--mainPurple: #4a03d9;
}

[data-theme='dark'] {
font-family: 'Open Sans' !important;
--menuWidth: 220px;
--mainBlue: #1a5a99;
--lightBlue: hsl(209,54%,82%);
--lightBlue: hsl(209, 54%, 82%);
--solidLightBlue: #1a5a99;
--mainGray: #a9a9a9;
--donutBody: #eea177;
Expand All @@ -116,14 +124,14 @@
--canvastext: white;
--lightGreen: #a6f19f;
--lightYellow: #f5ed85;
--whiteBlankLink: #A9ABE5;
--whiteBlankLink: #a9abe5;
--mainYellow: #efab34;
--mainPurple: #4a03d9;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/index.js"></script>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
File renamed without changes.
33 changes: 0 additions & 33 deletions src/Tools/singlepage/index.jsx

This file was deleted.

34 changes: 34 additions & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { RecoilRoot } from 'recoil';

import ToolRoot from './Tools/_framework/NewToolRoot';
import { MathJaxContext } from 'better-react-mathjax';
import { mathjaxConfig } from './Core/utils/math';
import DarkmodeController from './Tools/_framework/DarkmodeController';

ReactDOM.render(
<div>hello2</div>,
// <RecoilRoot>
// <Router>
// <Routes>
// <Route
// path="*"
// element={
// <DarkmodeController>
// <MathJaxContext
// version={2}
// config={mathjaxConfig}
// onStartup={(mathJax) => (mathJax.Hub.processSectionDelay = 0)}
// >
// <ToolRoot />
// </MathJaxContext>
// </DarkmodeController>
// }
// />
// </Routes>
// </Router>
// </RecoilRoot>,
document.getElementById('root'),
);

0 comments on commit ab4c0b8

Please sign in to comment.