mirror of
https://github.com/Steffo99/unisteffo.git
synced 2024-11-25 09:24:21 +00:00
Upgrade bluelib-react
This commit is contained in:
parent
a66fffa9cf
commit
dc640b0fa0
3 changed files with 29 additions and 29 deletions
|
@ -10,7 +10,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@matejmazur/react-katex": "^3.1.3",
|
"@matejmazur/react-katex": "^3.1.3",
|
||||||
"@sentry/nextjs": "^6.17.4",
|
"@sentry/nextjs": "^6.17.4",
|
||||||
"@steffo/bluelib-react": "^4.3.0",
|
"@steffo/bluelib-react": "^4.4.2",
|
||||||
"katex": "^0.15.2",
|
"katex": "^0.15.2",
|
||||||
"next": "12.0.10",
|
"next": "12.0.10",
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
|
|
|
@ -2,38 +2,38 @@ import "../styles/global.css"
|
||||||
import type { AppProps } from 'next/app'
|
import type { AppProps } from 'next/app'
|
||||||
import { Link } from "../components/link"
|
import { Link } from "../components/link"
|
||||||
import {Bluelib, Heading, LayoutThreeCol, Anchor as A, Footer} from "@steffo/bluelib-react"
|
import {Bluelib, Heading, LayoutThreeCol, Anchor as A, Footer} from "@steffo/bluelib-react"
|
||||||
import { useState } from "react"
|
import { useState, useEffect, useRef } from "react"
|
||||||
import { BluelibTheme } from "@steffo/bluelib-react/dist/types"
|
import { BluelibTheme } from "@steffo/bluelib-react/dist/types"
|
||||||
import { Theme } from "../components/theme-switcher"
|
import { Theme } from "../components/theme-switcher"
|
||||||
|
|
||||||
function MyApp({ Component, pageProps }: AppProps) {
|
function MyApp({ Component, pageProps }: AppProps) {
|
||||||
const [theme, setTheme] = useState<BluelibTheme>("sophon")
|
const [theme, setTheme] = useState<BluelibTheme>("sophon")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Theme.Provider value={[theme, setTheme]}>
|
<Theme.Provider value={[theme, setTheme]}>
|
||||||
<Bluelib theme={theme} id="root">
|
<LayoutThreeCol>
|
||||||
<LayoutThreeCol>
|
<LayoutThreeCol.Center>
|
||||||
<LayoutThreeCol.Center>
|
<Heading level={1}>
|
||||||
<Heading level={1}>
|
<Link href="/">
|
||||||
<Link href="/">
|
Unisteffo
|
||||||
Unisteffo
|
</Link>
|
||||||
</Link>
|
</Heading>
|
||||||
</Heading>
|
<Component {...pageProps} />
|
||||||
<Component {...pageProps} />
|
<Footer>
|
||||||
<Footer>
|
<p>
|
||||||
<p>
|
© {new Date().getFullYear()} <A href="https://steffo.eu/">Stefano Pigozzi</A> - Tutto il contenuto del sito è reso disponibile con la licenza <A href="https://creativecommons.org/licenses/by-sa/3.0/it/">CC-BY-SA 3.0 IT</A>.
|
||||||
© {new Date().getFullYear()} <A href="https://steffo.eu/">Stefano Pigozzi</A> - Tutto il contenuto del sito è reso disponibile con la licenza <A href="https://creativecommons.org/licenses/by-sa/3.0/it/">CC-BY-SA 3.0 IT</A>.
|
</p>
|
||||||
</p>
|
<p>
|
||||||
<p>
|
Sito web <A href="https://github.com/Steffo99/appuntiweb-omega">open source</A> basato su <A href="https://github.com/Steffo99/bluelib">Bluelib</A> e <A href="https://github.com/Steffo99/bluelib-react">Bluelib React</A>
|
||||||
Sito web <A href="https://github.com/Steffo99/appuntiweb-omega">open source</A> basato su <A href="https://github.com/Steffo99/bluelib">Bluelib</A> e <A href="https://github.com/Steffo99/bluelib-react">Bluelib React</A>
|
</p>
|
||||||
</p>
|
<p>
|
||||||
<p>
|
Se il contenuto di questo sito ti è utile, <A href="https://ko-fi.com/steffo">offrimi un caffè</A>!
|
||||||
Se il contenuto di questo sito ti è utile, <A href="https://ko-fi.com/steffo">offrimi un caffè</A>!
|
</p>
|
||||||
</p>
|
</Footer>
|
||||||
</Footer>
|
</LayoutThreeCol.Center>
|
||||||
</LayoutThreeCol.Center>
|
</LayoutThreeCol>
|
||||||
</LayoutThreeCol>
|
|
||||||
</Bluelib>
|
|
||||||
</Theme.Provider>
|
</Theme.Provider>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -278,10 +278,10 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
"@sentry/cli" "^1.72.0"
|
"@sentry/cli" "^1.72.0"
|
||||||
|
|
||||||
"@steffo/bluelib-react@^4.3.0":
|
"@steffo/bluelib-react@^4.4.2":
|
||||||
version "4.3.0"
|
version "4.4.2"
|
||||||
resolved "https://registry.yarnpkg.com/@steffo/bluelib-react/-/bluelib-react-4.3.0.tgz#762c881db2324edc2cb8f04008e85943d94cdfb7"
|
resolved "https://registry.yarnpkg.com/@steffo/bluelib-react/-/bluelib-react-4.4.2.tgz#3a737ea2825530a51bdde66d4564d12e73feecda"
|
||||||
integrity sha512-sV8xpyhSMr/wQVQJxlemOQdZSebVp744Uab6kAM6ChGgG8uCss8/BZJJHRRm3b/QALUaJ1/tmDTyKUOzKEn8Xw==
|
integrity sha512-poi6kW7QLNPp/trOV2XXQ6wkYIft5ZG+b2vogFkm36+snPiMOm7nlhaHTqTGyQkJtd3L+DnG/osvDSLJvTlHWQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/runtime" "^7.15.3"
|
"@babel/runtime" "^7.15.3"
|
||||||
classnames "^2.3.1"
|
classnames "^2.3.1"
|
||||||
|
|
Loading…
Reference in a new issue