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:
parent
96ce456c1f
commit
49ca5d1eca
8 changed files with 261 additions and 829 deletions
1032
package-lock.json
generated
1032
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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",
|
||||||
|
|
24
src/App.js
24
src/App.js
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -3,10 +3,13 @@ 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>
|
||||||
|
<BrowserRouter primary={true}>
|
||||||
<App />
|
<App />
|
||||||
|
</BrowserRouter>
|
||||||
</React.StrictMode>,
|
</React.StrictMode>,
|
||||||
document.getElementById('root')
|
document.getElementById('root')
|
||||||
);
|
);
|
||||||
|
|
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue