From d8badc00bb2117607973926ca384b63fff85bf86 Mon Sep 17 00:00:00 2001 From: semanticdata Date: Wed, 22 Nov 2023 22:27:33 -0600 Subject: [PATCH] new fonts, adjust layout --- quartz.config.ts | 14 +++++----- quartz.layout.ts | 36 ++++++++++++-------------- quartz/components/Footer.tsx | 2 +- quartz/components/styles/explorer.scss | 4 +-- quartz/components/styles/popover.scss | 3 ++- quartz/components/styles/toc.scss | 4 ++- quartz/styles/base.scss | 15 +++++++---- quartz/styles/custom.scss | 8 ------ 8 files changed, 41 insertions(+), 45 deletions(-) diff --git a/quartz.config.ts b/quartz.config.ts index f1156f1eb..9ae5985be 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -14,20 +14,20 @@ const config: QuartzConfig = { defaultDateType: "created", theme: { typography: { - header: "Schibsted Grotesk", - body: "Source Sans Pro", - code: "IBM Plex Mono", + header: "Bitter", // Schibsted Grotesk + body: "Poppins", // Source Sans Pro + code: "Fira Mono", // IBM Plex Mono }, colors: { lightMode: { light: "#faf8f8", lightgray: "#e5e5e5", gray: "#b8b8b8", - // darkgray: "#4e4e4e", - darkgray: "#2e2e2e", + darkgray: "#4e4e4e", + // darkgray: "#2e2e2e", dark: "#2b2b2b", - // secondary: "#284b63", - secondary: "#152733", + secondary: "#284b63", + // secondary: "#152733", tertiary: "#84a59d", highlight: "#8f9fa926", }, diff --git a/quartz.layout.ts b/quartz.layout.ts index d1c518578..0525f64a6 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -31,27 +31,23 @@ export const defaultContentPageLayout: PageLayout = { Component.Search(), Component.Darkmode(), Component.DesktopOnly(Component.Explorer( - { - mapFn: (node) => { - // dont change name of root node - if (node.depth > 0) { - // set emoji for file/folder - if (node.file) { - node.displayName = "๐Ÿ“„ " + node.displayName - } - else { node.displayName = "๐Ÿ“ " + node.displayName } - } - }, - } + // { + // mapFn: (node) => { + // // dont change name of root node + // if (node.depth > 0) { + // // set emoji for file/folder + // if (node.file) { + // node.displayName = "๐Ÿ“„ " + node.displayName + // } + // else { node.displayName = "๐Ÿ“ " + node.displayName } + // } + // }, + // } )), - Component.DesktopOnly(Component.TableOfContents()), - // Component.RecentNotes(), ], - right: [ - Component.Graph(), - // Component.DesktopOnly(Component.Backlinks()), - // Component.MobileOnly(Component.Backlinks()), - Component.Backlinks(), + right: [ + Component.Graph(), + Component.Backlinks(), ], } @@ -63,6 +59,6 @@ export const defaultListPageLayout: PageLayout = { Component.MobileOnly(Component.Spacer()), Component.Search(), Component.Darkmode(), - ], + Component.DesktopOnly(Component.Explorer({ folderClickBehavior: "link", }))], right: [], } \ No newline at end of file diff --git a/quartz/components/Footer.tsx b/quartz/components/Footer.tsx index 3b705acb1..e01dbf008 100644 --- a/quartz/components/Footer.tsx +++ b/quartz/components/Footer.tsx @@ -13,7 +13,7 @@ export default ((opts?: Options) => { return (