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

Everything works!

This commit is contained in:
Steffo 2021-01-26 02:02:58 +01:00
parent 7154436857
commit 8853e36fa3
Signed by: steffo
GPG key ID: 6965406171929D01
9 changed files with 117 additions and 993 deletions

1029
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -3,10 +3,11 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@reach/router": "^1.3.4",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.3",
"@testing-library/user-event": "^12.6.2",
"bluelib": "^0.21.1",
"bluelib": "^0.24.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-router-dom": "^5.2.0",
@ -19,12 +20,6 @@
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",

View file

@ -4,12 +4,11 @@
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="theme-color" content="#1c2b4f" />
<meta
name="description"
content="Gli appunti di Steffo, disponibili per tutti!"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/

View file

@ -1,12 +1,16 @@
import React from "react";
import Title from "bluelib/src/components/Title";
import Bluelib from "bluelib/src/components/Bluelib";
import {Bluelib, Main} from "bluelib/lib/components";
import {Router} from "@reach/router";
import Home from "./routes/Home";
import Error404 from "./routes/Error404";
export default function App() {
return (
<Bluelib skin={"rygblue"}>
<Title size={"xxl"}>Unisteffo</Title>
<Title size={"xl"}>Gli appunti open source di <a href={"https://steffo.eu"}>Steffo</a></Title>
<Router>
<Home path={"/"}/>
<Error404 default/>
</Router>
</Bluelib>
);
}

View file

@ -0,0 +1,10 @@
import React from "react";
import {BaseLink, Bluelib, Title} from "bluelib/lib/components";
export default function Home() {
return (
<div>
</div>
)
}

15
src/components/Page.js Normal file
View file

@ -0,0 +1,15 @@
import React from "react";
import {BaseLink, Title, Main} from "bluelib/lib/components";
export default function Page({children}) {
return (
<div>
<Title size={"xxl"}><BaseLink href={"/"}>Unisteffo</BaseLink></Title>
<Title size={"xl"}>Gli appunti open source di <BaseLink href={"https://steffo.eu"}>Steffo</BaseLink></Title>
<Main>
{children}
</Main>
</div>
)
}

View file

@ -1,5 +1,4 @@
body {
margin: 0;
background-color: #0d193b;
color: #a0ccff;
}

17
src/routes/Error404.js Normal file
View file

@ -0,0 +1,17 @@
import React from "react";
import {Paragraph, Box, Title, Color} from "bluelib/lib/components";
import Page from "../components/Page";
export default function Error404() {
return (
<Page>
<Box>
<Title size={"l"}><Color value={"red"}>Non trovato</Color></Title>
<Paragraph>
Mi spiace, ma la pagina che hai richiesto non sembra esistere :(
</Paragraph>
</Box>
</Page>
)
}

14
src/routes/Home.js Normal file
View file

@ -0,0 +1,14 @@
import React from "react";
import {Box} from "bluelib/lib/components";
import Page from "../components/Page";
export default function Home() {
return (
<Page>
<Box>
Benvenuto a Unisteffo!
</Box>
</Page>
)
}