From 99ee09ff68a06f1a8f5d003e1d5dac73f5f3c4ee Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Tue, 19 Jan 2021 12:57:38 -0500 Subject: [PATCH] minor style and comments --- api/search-notion.ts | 1 + lib/config.ts | 4 ++-- package.json | 2 +- styles/notion.css | 11 ++++++++++- yarn.lock | 8 ++++---- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/api/search-notion.ts b/api/search-notion.ts index 15b1c7f..0996833 100644 --- a/api/search-notion.ts +++ b/api/search-notion.ts @@ -10,6 +10,7 @@ export default async (req: NextApiRequest, res: NextApiResponse) => { const searchParams: types.SearchParams = req.body + console.log('lambda search-notion', searchParams) const results = await search(searchParams) res.setHeader( diff --git a/lib/config.ts b/lib/config.ts index 0401008..c28d473 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -6,7 +6,7 @@ import { getEnv } from './get-env' -// this is the most important config value which specifies the site's root Notion page +// where it all starts -- the site's root Notion page export const rootNotionPageId = '78fc5a4b88d74b0e824e29407e9f1ec1' // general site config @@ -20,7 +20,7 @@ export const siteFavicon = `https://${siteDomain}/favicon.png` export const socialImageTitle = 'Transitive Bullshit' export const socialImageSubtitle = 'Hello World! 👋' -// default notion values for site-wide consistency (may be overridden on a per-page basis) +// default notion values for site-wide consistency (optional; may be overridden on a per-page basis) export const defaultPageIcon = 'https://ssfy.io/https%3A%2F%2Fwww.notion.so%2Fimage%2Fhttps%253A%252F%252Fs3-us-west-2.amazonaws.com%252Fsecure.notion-static.com%252F797768e4-f24a-4e65-bd4a-b622ae9671dc%252Fprofile-2020-280w-circle.png%3Ftable%3Dblock%26id%3D78fc5a4b-88d7-4b0e-824e-29407e9f1ec1%26cache%3Dv2' export const defaultPageCover = diff --git a/package.json b/package.json index ecfa021..754eeea 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "babel-eslint": "^10.0.3", "cross-env": "^7.0.2", "eslint": "^7.18.0", - "eslint-config-prettier": "^7.1.0", + "eslint-config-prettier": "^7.2.0", "eslint-config-standard": "^16.0.2", "eslint-config-standard-react": "^11.0.1", "eslint-plugin-import": "^2.21.2", diff --git a/styles/notion.css b/styles/notion.css index 104f341..226fd9d 100644 --- a/styles/notion.css +++ b/styles/notion.css @@ -1,3 +1,12 @@ +/** + * This file contains site-specifc style overrides for Notion elements from + * react-notion-x. + * + * react-notion-x's goal is to match styling as close as possible to Notion, + * whereas our goal with this blog is to adjust Notion's styling in a few key + * places to add some flare and make our site look more like a blog. + */ + .notion-page { margin: 0 12px; width: 720px; @@ -81,7 +90,7 @@ } .notion-callout { - margin-bottom: 0.5em; + margin: 0.75em 0; } .notion-hr { diff --git a/yarn.lock b/yarn.lock index 172596f..9075ca2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1682,10 +1682,10 @@ escape-string-regexp@^1.0.5: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= -eslint-config-prettier@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.1.0.tgz#5402eb559aa94b894effd6bddfa0b1ca051c858f" - integrity sha512-9sm5/PxaFG7qNJvJzTROMM1Bk1ozXVTKI0buKOyb0Bsr1hrwi0H/TzxF/COtf1uxikIK8SwhX7K6zg78jAzbeA== +eslint-config-prettier@^7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz#f4a4bd2832e810e8cc7c1411ec85b3e85c0c53f9" + integrity sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg== eslint-config-standard-react@^11.0.1: version "11.0.1"