1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-25 09:24:21 +00:00

Idk but at least it works

This commit is contained in:
Steffo 2021-03-23 19:05:46 +01:00
parent 96ce456c1f
commit 49ca5d1eca
Signed by: steffo
GPG key ID: 6965406171929D01
8 changed files with 261 additions and 829 deletions

1032
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -3,11 +3,10 @@
"version": "0.11.0", "version": "0.11.0",
"description": "A website with everything I use to prepare for university exams", "description": "A website with everything I use to prepare for university exams",
"dependencies": { "dependencies": {
"@reach/router": "^1.3.4",
"@testing-library/jest-dom": "^5.11.9", "@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.3", "@testing-library/react": "^11.2.3",
"@testing-library/user-event": "^12.6.2", "@testing-library/user-event": "^12.6.2",
"bluelib": "^1.0.0", "bluelib": "^2.1.4",
"classnames": "^2.2.6", "classnames": "^2.2.6",
"prop-types": "^15.7.2", "prop-types": "^15.7.2",
"react": "^17.0.1", "react": "^17.0.1",

View file

@ -1,6 +1,6 @@
import React, {Fragment, useState} from "react"; import React, {Fragment, useState} from "react";
import {BaseLink, Bluelib, Main} from "bluelib/lib/components"; import {BaseLink, Bluelib, Main} from "bluelib/lib/components";
import {Router, } from "@reach/router"; import {Switch, Route} from "react-router-dom";
import Home from "./routes/Home"; import Home from "./routes/Home";
import Error404 from "./routes/Error404"; import Error404 from "./routes/Error404";
import Gestinfo from "./routes/Gestinfo"; import Gestinfo from "./routes/Gestinfo";
@ -19,21 +19,23 @@ export default function App() {
<Bluelib skin={skin} className={style.app}> <Bluelib skin={skin} className={style.app}>
<Router primary={false}> <MainTitle subtitle={subtitle}/>
<MainTitle default={true} subtitle={subtitle}/>
</Router>
<Main> <Main>
<Router primary={true}> <Switch>
<Home path={"/"} skin={skin} setSkin={setSkin}/> <Route exact path={"/"}>
<Gestinfo path={"/gestinfo"}/> <Home skin={skin} setSkin={setSkin}/>
<Error404 default/> </Route>
</Router> <Route path={"/gestinfo"}>
<Gestinfo/>
</Route>
<Route path={"*"}>
<Error404 />
</Route>
</Switch>
</Main> </Main>
<Router primary={false}> <Footer default={true}/>
<Footer default={true}/>
</Router>
</Bluelib> </Bluelib>

View file

@ -7,7 +7,7 @@ import style from "./MinusLI.module.css";
export default function MinusLI({children, className}) { export default function MinusLI({children, className}) {
return ( return (
<Color value={"red"}> <Color builtin={"red"}>
<ListItem className={classNames(style.minusli, className)}> <ListItem className={classNames(style.minusli, className)}>
{children} {children}
</ListItem> </ListItem>

View file

@ -7,7 +7,7 @@ import style from "./PlusLI.module.css";
export default function PlusLI({children, className}) { export default function PlusLI({children, className}) {
return ( return (
<Color value={"lime"}> <Color builtin={"lime"}>
<ListItem className={classNames(style.plusli, className)}> <ListItem className={classNames(style.plusli, className)}>
{children} {children}
</ListItem> </ListItem>

View file

@ -3,12 +3,15 @@ import ReactDOM from 'react-dom';
import './index.css'; import './index.css';
import App from './App'; import App from './App';
import reportWebVitals from './reportWebVitals'; import reportWebVitals from './reportWebVitals';
import {BrowserRouter} from "react-router-dom"
ReactDOM.render( ReactDOM.render(
<React.StrictMode> <React.StrictMode>
<App /> <BrowserRouter primary={true}>
</React.StrictMode>, <App />
document.getElementById('root') </BrowserRouter>
</React.StrictMode>,
document.getElementById('root')
); );
// If you want to start measuring performance in your app, pass a function // If you want to start measuring performance in your app, pass a function

View file

@ -7,13 +7,13 @@ import {Bold, Strike, Color} from "bluelib/lib/components";
export default function Token({children, indexTerm, stopword}) { export default function Token({children, indexTerm, stopword}) {
if(indexTerm) { if(indexTerm) {
return ( return (
<Bold><Color value={"yellow"}><span className={style.token}>{children}</span></Color></Bold> <Bold><Color builtin={"yellow"}><span className={style.token}>{children}</span></Color></Bold>
) )
} }
if(stopword) { if(stopword) {
return ( return (
<Strike><Color value={"red"}><span className={style.token}>{children}</span></Color></Strike> <Strike><Color builtin={"red"}><span className={style.token}>{children}</span></Color></Strike>
) )
} }

View file

@ -1476,27 +1476,27 @@ export default function Gestinfo() {
<tr> <tr>
<td>0</td> <td>0</td>
<td></td> <td></td>
<td><LatexMath>{r`4 \cdot 2^{0} =\ `}</LatexMath><Color value={"lime"}><LatexMath>{`+4.00`}</LatexMath></Color></td> <td><LatexMath>{r`4 \cdot 2^{0} =\ `}</LatexMath><Color builtin={"lime"}><LatexMath>{`+4.00`}</LatexMath></Color></td>
</tr> </tr>
<tr> <tr>
<td>1</td> <td>1</td>
<td></td> <td></td>
<td><LatexMath>{r`2 \cdot 2^{-1} =\ `}</LatexMath><Color value={"lime"}><LatexMath>{`+1.00`}</LatexMath></Color></td> <td><LatexMath>{r`2 \cdot 2^{-1} =\ `}</LatexMath><Color builtin={"lime"}><LatexMath>{`+1.00`}</LatexMath></Color></td>
</tr> </tr>
<tr> <tr>
<td>2</td> <td>2</td>
<td></td> <td></td>
<td><LatexMath>{r`3 \cdot 2^{-2} =\ `}</LatexMath><Color value={"lime"}><LatexMath>{`+0.75`}</LatexMath></Color></td> <td><LatexMath>{r`3 \cdot 2^{-2} =\ `}</LatexMath><Color builtin={"lime"}><LatexMath>{`+0.75`}</LatexMath></Color></td>
</tr> </tr>
<tr> <tr>
<td>3</td> <td>3</td>
<td></td> <td></td>
<td><LatexMath>{r`5 \cdot 2^{-3} =\ `}</LatexMath><Color value={"lime"}><LatexMath>{`+0.63`}</LatexMath></Color></td> <td><LatexMath>{r`5 \cdot 2^{-3} =\ `}</LatexMath><Color builtin={"lime"}><LatexMath>{`+0.63`}</LatexMath></Color></td>
</tr> </tr>
<tr> <tr>
<td><B>Tot</B></td> <td><B>Tot</B></td>
<td><B>-----</B></td> <td><B>-----</B></td>
<td><B><LatexMath>{r`4 + 1 + 0.75 + 0.63 =\ `}</LatexMath><Color value={"lime"}><LatexMath>{`+6.38`}</LatexMath></Color></B></td> <td><B><LatexMath>{r`4 + 1 + 0.75 + 0.63 =\ `}</LatexMath><Color builtin={"lime"}><LatexMath>{`+6.38`}</LatexMath></Color></B></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>