CSS patch for better pages

This commit is contained in:
fedyna-k
2025-01-16 20:52:22 +01:00
parent 9db89b0343
commit b9094fce01
4 changed files with 20 additions and 8 deletions
+5 -3
View File
@@ -17,9 +17,11 @@ export default async function AppLayout(
return ( return (
<section id="app"> <section id="app">
<Navbar currentApp={currentApp} pages={properties.pages} /> <Navbar currentApp={currentApp} pages={properties.pages} />
<Partial name="body"> <section id="app-body">
<context.Component /> <Partial name="body">
</Partial> <context.Component />
</Partial>
</section>
</section> </section>
); );
} }
+1 -1
View File
@@ -18,7 +18,7 @@ export default async function App(
<title>PolyMPR</title> <title>PolyMPR</title>
<link <link
rel="stylesheet" rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap" href="https://fonts.googleapis.com/css2?family=Recursive:slnt,wght@-15..0,300..1000&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap"
/> />
<link <link
rel="stylesheet" rel="stylesheet"
+5 -1
View File
@@ -6,6 +6,10 @@
gap: 1em; gap: 1em;
} }
#app > #app-body {
padding: 0;
}
#app > nav { #app > nav {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -41,7 +45,7 @@
) 10%, ) 10%,
transparent transparent
); );
font-weight: 700; font-weight: var(--font-weight-bold);
} }
#app > nav > a[data-current="true"]::before { #app > nav > a[data-current="true"]::before {
+9 -3
View File
@@ -19,7 +19,9 @@
--light-strong-color: hsl(210, 70%, 50%); --light-strong-color: hsl(210, 70%, 50%);
--light-error-color: hsl(210, 70%, 50%); --light-error-color: hsl(210, 70%, 50%);
--font-family-text: "Inter", sans-serif; --font-family-text: "Recursive", sans-serif;
--font-weight-normal: 500;
--font-weight-bold: 900;
} }
* { * {
@@ -41,7 +43,11 @@ body {
var(--dark-background-color) var(--dark-background-color)
); );
color: light-dark(var(--light-foreground), var(--dark-foreground)); color: light-dark(var(--light-foreground), var(--dark-foreground));
font-weight: 300; font-weight: var(--font-weight-normal);
}
h1, h2, h3, h4, h5 {
font-weight: var(--font-weight-bold);
} }
header { header {
@@ -55,7 +61,7 @@ header {
var(--dark-foreground-dimmer) var(--dark-foreground-dimmer)
); );
font-weight: 700; font-weight: var(--font-weight-bold);
} }
header > h1 { header > h1 {