1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-24 17:04:20 +00:00

Add fisica

This commit is contained in:
Steffo 2022-02-03 04:26:51 +01:00
parent 979f6be46f
commit 70b1fd3aaa
7 changed files with 1435 additions and 8 deletions

75
components/compat1.tsx Normal file
View file

@ -0,0 +1,75 @@
import * as Bluelib from "@steffo/bluelib-react"
import TeX from "@matejmazur/react-katex"
export const Split = ({title = undefined, children}) => {
return (
<Bluelib.Chapter>
{title ?
<Bluelib.Heading level={3}>
{title}
</Bluelib.Heading>
: null}
{children}
</Bluelib.Chapter>
)
}
export const Box = ({title = undefined, children}) => {
return (
<Bluelib.Box>
{title ?
<Bluelib.Heading level={4}>
{title}
</Bluelib.Heading>
: null}
{children}
</Bluelib.Box>
)
}
export const Plus = (props) => {
return (
<Bluelib.BaseElement builtinColor={"red"} kind="span" {...props}/>
)
}
export const Minus = (props) => {
return (
<Bluelib.BaseElement builtinColor={"blue"} kind="span" {...props}/>
)
}
export const Color = ({builtin, ...props}) => {
return (
<Bluelib.BaseElement builtinColor={builtin} kind="span" {...props}/>
)
}
export const LatexMath = ({children, ...props}) => {
return (
<TeX math={children} {...props}/>
)
}
export const P = (props) => {
return (
<p {...props}/>
)
}
export const B = (props) => {
return (
<Bluelib.BringAttention {...props}/>
)
}
export const Todo = (props) => {
return (
<Bluelib.BaseElement todo={true} kind={"span"} {...props}/>
)
}
export const Anchor = Bluelib.Anchor
export const r = String.raw

View file

@ -23,7 +23,7 @@ export const WarningBlocked = () => {
return ( return (
<Panel builtinColor="red"> <Panel builtinColor="red">
<B>🚫 Blocco:</B> questi materiali sono stati resi bloccati per via di fattori esterni a questo sito, e non possono essere ri-aggiunti.<br/> <B>🚫 Blocco:</B> questi materiali sono stati resi bloccati per via di fattori esterni a questo sito, e non possono essere ri-aggiunti.<br/>
<small>Lamentati con chi li ha bloccati, non con me, non posso farci niente...</small> <small>Lamentati con chi li ha bloccati, non con me, io non posso farci niente...</small>
</Panel> </Panel>
) )
} }

View file

@ -8,7 +8,9 @@
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@steffo/bluelib-react": "^4.2.0", "@matejmazur/react-katex": "^3.1.3",
"@steffo/bluelib-react": "^4.3.0",
"katex": "^0.15.2",
"next": "12.0.10", "next": "12.0.10",
"react": "17.0.2", "react": "17.0.2",
"react-dom": "17.0.2" "react-dom": "17.0.2"

View file

@ -2,6 +2,7 @@ import { Heading, Chapter, Box, Idiomatic as I, Anchor as A, ListUnordered, List
import type { NextPage } from 'next' import type { NextPage } from 'next'
import Link from 'next/link' import Link from 'next/link'
const Home: NextPage = () => { const Home: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>
@ -67,12 +68,12 @@ const Home: NextPage = () => {
<ListUnordered> <ListUnordered>
<ListUnordered.Item> <ListUnordered.Item>
<Link href="/year2/fisica"> <Link href="/year2/fisica">
<A>Fisica</A> <A href="#">Fisica</A>
</Link> </Link>
</ListUnordered.Item> </ListUnordered.Item>
<ListUnordered.Item> <ListUnordered.Item>
<Link href="/year2/oggetti"> <Link href="/year2/oggetti">
<A>Programmazione a oggetti</A> <A href="#">Programmazione a oggetti</A>
</Link> </Link>
</ListUnordered.Item> </ListUnordered.Item>
<ListUnordered.Item> <ListUnordered.Item>

1307
pages/year2/fisica.tsx Normal file

File diff suppressed because it is too large Load diff

25
pages/year2/oggetti.tsx Normal file
View file

@ -0,0 +1,25 @@
import { Heading, Chapter, Box, Idiomatic as I, Anchor as A, ListUnordered, ListOrdered } from '@steffo/bluelib-react'
import type { NextPage } from 'next'
const Page: NextPage = () => {
return <>
<Heading level={2}>
Programmazione ad oggetti
</Heading>
<Chapter>
<Box>
<Heading level={3}>
Introduzione
</Heading>
<p>
<I>Programmazione ad oggetti</I> è stato un corso molto pratico, con laboratori e tanta scrittura di codice.
</p>
<p>
Non ho alcun appunto di teoria; ho però reso disponibile <A href="https://github.com/Steffo99/cleaver">su GitHub</A> l'intero codice sorgente documentato del mio progetto di esame.
</p>
</Box>
</Chapter>
</>
}
export default Page

View file

@ -46,6 +46,11 @@
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45"
integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==
"@matejmazur/react-katex@^3.1.3":
version "3.1.3"
resolved "https://registry.yarnpkg.com/@matejmazur/react-katex/-/react-katex-3.1.3.tgz#f07404c848b93bfef9ed9653a4bb080dc8bf2bf0"
integrity sha512-rBp7mJ9An7ktNoU653BWOYdO4FoR4YNwofHZi+vaytX/nWbIlmHVIF+X8VFOn6c3WYmrLT5FFBjKqCZ1sjR5uQ==
"@next/env@12.0.10": "@next/env@12.0.10":
version "12.0.10" version "12.0.10"
resolved "https://registry.yarnpkg.com/@next/env/-/env-12.0.10.tgz#561640fd62279218ccd2798ae907bae8d94a7730" resolved "https://registry.yarnpkg.com/@next/env/-/env-12.0.10.tgz#561640fd62279218ccd2798ae907bae8d94a7730"
@ -139,10 +144,10 @@
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.1.0.tgz#7f698254aadf921e48dda8c0a6b304026b8a9323" resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.1.0.tgz#7f698254aadf921e48dda8c0a6b304026b8a9323"
integrity sha512-JLo+Y592QzIE+q7Dl2pMUtt4q8SKYI5jDrZxrozEQxnGVOyYE+GWK9eLkwTaeN9DDctlaRAQ3TBmzZ1qdLE30A== integrity sha512-JLo+Y592QzIE+q7Dl2pMUtt4q8SKYI5jDrZxrozEQxnGVOyYE+GWK9eLkwTaeN9DDctlaRAQ3TBmzZ1qdLE30A==
"@steffo/bluelib-react@^4.2.0": "@steffo/bluelib-react@^4.3.0":
version "4.2.0" version "4.3.0"
resolved "https://registry.yarnpkg.com/@steffo/bluelib-react/-/bluelib-react-4.2.0.tgz#12d10517be68366519c4ddf0e21a3b341c9b47b4" resolved "https://registry.yarnpkg.com/@steffo/bluelib-react/-/bluelib-react-4.3.0.tgz#762c881db2324edc2cb8f04008e85943d94cdfb7"
integrity sha512-meWWsjiD4cjt7A2nbQHbtY6iFdVJyjlbzUUH5zcPCwVtL6H8gTZ5VTabw+38j5ydDToTd4u9/LNdl8DMq2EcQg== integrity sha512-sV8xpyhSMr/wQVQJxlemOQdZSebVp744Uab6kAM6ChGgG8uCss8/BZJJHRRm3b/QALUaJ1/tmDTyKUOzKEn8Xw==
dependencies: dependencies:
"@babel/runtime" "^7.15.3" "@babel/runtime" "^7.15.3"
classnames "^2.3.1" classnames "^2.3.1"
@ -394,6 +399,11 @@ color-string@^1.6.0:
color-convert "^2.0.1" color-convert "^2.0.1"
color-string "^1.6.0" color-string "^1.6.0"
commander@^8.0.0:
version "8.3.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66"
integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==
concat-map@0.0.1: concat-map@0.0.1:
version "0.0.1" version "0.0.1"
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
@ -1099,6 +1109,13 @@ json5@^1.0.1:
array-includes "^3.1.3" array-includes "^3.1.3"
object.assign "^4.1.2" object.assign "^4.1.2"
katex@^0.15.2:
version "0.15.2"
resolved "https://registry.yarnpkg.com/katex/-/katex-0.15.2.tgz#c05ece41ab497597b17abca2cecde3e4c0127f9d"
integrity sha512-FfZ/f6f8bQdLmJ3McXDNTkKenQkoXkItpW0I9bsG2wgb+8JAY5bwpXFtI8ZVrg5hc1wo1X/UIhdkVMpok46tEQ==
dependencies:
commander "^8.0.0"
language-subtag-registry@~0.3.2: language-subtag-registry@~0.3.2:
version "0.3.21" version "0.3.21"
resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.21.tgz#04ac218bea46f04cb039084602c6da9e788dd45a" resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.21.tgz#04ac218bea46f04cb039084602c6da9e788dd45a"