diff --git a/app/layout.tsx b/app/layout.tsx index 3c2edd7..0704918 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -4,6 +4,7 @@ import "@steffo/bluelib/dist/glass.root.css" import "@steffo/bluelib/dist/fun.root.css" import "@steffo/bluelib/dist/colors-royalblue.root.css" import "@steffo/bluelib/dist/fonts-fira-ghpages.root.css" +import "../styles/global.css" import React from "react" diff --git a/app/page.tsx b/app/page.tsx index 00b320e..3cdce7f 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -6,20 +6,39 @@ export default function Page() { return (

- Il mio sito di appunti. + Il mio sito di appunti aggiornato sperimentale.

- } + + +

+ idk magari hai una qualche configurazione strana del browser e si vede tutto rotto +

+
+ +

+ idk magari fa schifissimo +

+
+ +

+ lo sfondo è wip perchè è overused +

+
+
+ } sidebar={ -
- sus -
+ +
    + {[...Array(1000).keys()].map((n) =>
  1. )} +
+
} /> diff --git a/components/Layout.module.css b/components/Layout.module.css index 5514cec..b7a845e 100644 --- a/components/Layout.module.css +++ b/components/Layout.module.css @@ -1,17 +1,30 @@ .layout { - padding: 8px; - height: calc(100vh - 16px); + height: 100vh; overflow: hidden; display: grid; grid-template-areas: - "heading empty" + "heading side" "main side" ; - grid-template-rows: auto 1fr; + grid-template-rows: 68px 1fr; grid-template-columns: 1fr 320px; align-content: stretch; - column-gap: 8px; +} + +@media screen and (max-width: 1328px) { + + .layout { + grid-template-areas: + "heading" + "main" + ; + grid-template-columns: 1fr; + } + + .layout > .sidebar { + display: none; + } } .layout > .heading { @@ -21,14 +34,25 @@ .layout > .main { grid-area: main; overflow-y: scroll; + + padding: 8px; + padding-right: 7px; } .layout > .sidebar { grid-area: side; overflow-y: scroll; + + padding: 8px; + padding-top: 68px; + padding-left: 1px; } -.layout :where(:global(.chapter-0), :global(.chapter-1), :global(.chapter-2), :global(.chapter-3), :global(.chapter-4), :global(.chapter-5), :global(.chapter-6), :global(.chapter-7), :global(.chapter-8), :global(.chapter-9)):first-child { +.layout > .main > :where(:global(.chapter-0), :global(.chapter-1), :global(.chapter-2), :global(.chapter-3), :global(.chapter-4), :global(.chapter-5), :global(.chapter-6), :global(.chapter-7), :global(.chapter-8), :global(.chapter-9)) > :global(.panel) { + max-width: 500px; +} + +.layout :where(:global(.chapter-0), :global(.chapter-1), :global(.chapter-2), :global(.chapter-3), :global(.chapter-4), :global(.chapter-5), :global(.chapter-6), :global(.chapter-7), :global(.chapter-8), :global(.chapter-9)):first-child, .layout :where(:global(.chapter-0), :global(.chapter-1), :global(.chapter-2), :global(.chapter-3), :global(.chapter-4), :global(.chapter-5), :global(.chapter-6), :global(.chapter-7), :global(.chapter-8), :global(.chapter-9)):first-child :where(h1, h2, h3, h4, h5, h6) { margin-top: 0; } diff --git a/styles/global.css b/styles/global.css index c141b3d..42bb3d5 100644 --- a/styles/global.css +++ b/styles/global.css @@ -1,7 +1,5 @@ body { - margin: 0; + background-image: url("https://www.steffo.eu/space_default.jpg"); + background-attachment: fixed; + background-size: cover; } - -#root { - min-height: 100vh; -} \ No newline at end of file