From 37d0b103886fc59f89323d69da0a7f4ad1d83b41 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 4 Feb 2022 18:41:40 +0100 Subject: [PATCH] Add screen width warnings --- components/compat-old.tsx | 28 ++++---- components/warn.module.css | 11 ++++ components/warn.tsx | 21 ++++++ pages/_app.tsx | 22 +++---- pages/index.tsx | 2 + pages/year2/calcolo/index.tsx | 2 + pages/year2/database/index.tsx | 2 + pages/year2/fisica/index.tsx | 2 + pages/year2/ottimizzazione/index.tsx | 2 + pages/year2/statistica/index.tsx | 2 + pages/year3/gestione/index.tsx | 2 + pages/year3/gestione/teoria.tsx | 95 ++++++++++------------------ 12 files changed, 107 insertions(+), 84 deletions(-) create mode 100644 components/warn.module.css create mode 100644 components/warn.tsx diff --git a/components/compat-old.tsx b/components/compat-old.tsx index 57de84e..2e1c0fe 100644 --- a/components/compat-old.tsx +++ b/components/compat-old.tsx @@ -5,7 +5,7 @@ import 'katex/dist/katex.min.css'; export const Split = ({title = undefined, children}: any) => { - return ( + return <> {title ? @@ -14,9 +14,8 @@ export const Split = ({title = undefined, children}: any) => { : null} {children} - ) + } -export const Section = Split export const Box = ({title = undefined, children, color = undefined}: any) => { return ( @@ -31,12 +30,6 @@ export const Box = ({title = undefined, children, color = undefined}: any) => { ) } -export const Example = (props: any) => { - return ( - - ) -} - export const Plus = (props: any) => { return ( @@ -123,14 +116,27 @@ export const Image = (props: any) => { ) } -export const Latex = LatexMath + +export const Aside = (props: any) => { + return ( + + ) +} + +export const Example = (props: any) => { + return ( + @@ -658,7 +633,7 @@ const Page: NextPage = () => {

È quello che fa Google quando non è sicuro della correzione proposta:

- {"Google + {"Google
@@ -1173,26 +1148,22 @@ const Page: NextPage = () => { \\log \\frac{1 - P(k_i\\ |\\ \\overline{R}, \\vec{q})}{P(k_i\\ |\\ \\overline{R}, \\vec{q})} `} - - - - - - + +