chore(config): Added base layout definitions

This commit is contained in:
Daniël Groothuis
2025-10-29 15:38:05 +01:00
parent 6e96ae4c98
commit 31ded813e0
3 changed files with 55 additions and 24 deletions

View File

View File

@@ -8,7 +8,7 @@ import * as Plugin from "./quartz/plugins"
*/ */
const config: QuartzConfig = { const config: QuartzConfig = {
configuration: { configuration: {
pageTitle: "Quartz 4", pageTitle: "Groothuis.io",
pageTitleSuffix: "", pageTitleSuffix: "",
enableSPA: true, enableSPA: true,
enablePopovers: true, enablePopovers: true,
@@ -34,18 +34,18 @@ const config: QuartzConfig = {
gray: "#b8b8b8", gray: "#b8b8b8",
darkgray: "#4e4e4e", darkgray: "#4e4e4e",
dark: "#2b2b2b", dark: "#2b2b2b",
secondary: "#284b63", secondary: "#2b2b2b",
tertiary: "#84a59d", tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)", highlight: "rgba(143, 159, 169, 0.15)",
textHighlight: "#fff23688", textHighlight: "#fff23688",
}, },
darkMode: { darkMode: {
light: "#161618", light: "#000000",
lightgray: "#393639", lightgray: "#393639",
gray: "#646464", gray: "#646464",
darkgray: "#d4d4d4", darkgray: "#d4d4d4",
dark: "#ebebec", dark: "#ebebec",
secondary: "#7b97aa", secondary: "#FFFFFF",
tertiary: "#84a59d", tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)", highlight: "rgba(143, 159, 169, 0.15)",
textHighlight: "#b3aa0288", textHighlight: "#b3aa0288",

View File

@@ -5,12 +5,44 @@ import * as Component from "./quartz/components"
export const sharedPageComponents: SharedLayout = { export const sharedPageComponents: SharedLayout = {
head: Component.Head(), head: Component.Head(),
header: [], header: [],
afterBody: [], afterBody: [
footer: Component.Footer({ Component.DesktopOnly(Component.Flex({
links: { components: [
GitHub: "https://github.com/jackyzha0/quartz", {
"Discord Community": "https://discord.gg/cRFFHYye7t", Component: Component.Graph(),
}, align: "start",
justify: "center",
basis: "50%",
},
{
Component: Component.Backlinks(),
align: "start",
justify: "center",
basis: "50%",
},
],
})),
],
footer: Component.Flex({
direction: "column",
components: [
{
Component: Component.Footer({
links: {
Repository: "https://git.dgse.cloud/dgroothuis/digital-garden"
},
}),
align: "start",
justify: "center",
basis: "100%",
},
{
Component: Component.Darkmode(),
align: "center",
justify: "center",
basis: "100%",
},
]
}), }),
} }
@@ -28,22 +60,21 @@ export const defaultContentPageLayout: PageLayout = {
left: [ left: [
Component.PageTitle(), Component.PageTitle(),
Component.MobileOnly(Component.Spacer()), Component.MobileOnly(Component.Spacer()),
Component.Flex({ Component.Search(),
components: [ Component.TableOfContents(),
{ Component.DesktopOnly(Component.Explorer({
Component: Component.Search(), title: "Explore",
grow: true, folderClickBehavior: "collapse",
}, folderDefaultState: "collapsed",
{ Component: Component.Darkmode() }, useSavedState: true,
{ Component: Component.ReaderMode() }, })),
], Component.RecentNotes({
}), title: "Recent notes",
Component.Explorer(), limit: 5,
filter: (f) => f.slug! !== "index",
})
], ],
right: [ right: [
Component.Graph(),
Component.DesktopOnly(Component.TableOfContents()),
Component.Backlinks(),
], ],
} }