diff --git a/public/styles/common.css b/public/styles/common.css new file mode 100644 index 0000000..37005a5 --- /dev/null +++ b/public/styles/common.css @@ -0,0 +1,165 @@ +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-Thin.ttf") format("truetype"); + font-weight: 100; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-ThinItalic.ttf") format("truetype"); + font-weight: 100; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-Extralight.ttf") format("truetype"); + font-weight: 200; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-ExtralightItalic.ttf") format("truetype"); + font-weight: 200; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-Light.ttf") format("truetype"); + font-weight: 300; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-LightItalic.ttf") format("truetype"); + font-weight: 300; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-Regular.ttf") format("truetype"); + font-weight: 400; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-RegularItalic.ttf") format("truetype"); + font-weight: 400; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-Medium.ttf") format("truetype"); + font-weight: 500; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-MediumItalic.ttf") format("truetype"); + font-weight: 500; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-Bold.ttf") format("truetype"); + font-weight: 700; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-BoldItalic.ttf") format("truetype"); + font-weight: 700; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-Black.ttf") format("truetype"); + font-weight: 900; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Signifier"; + src: url("/fonts/signifier/Signifier-BlackItalic.ttf") format("truetype"); + font-weight: 900; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: "Apercu Mono"; + src: url("/fonts/apercu-mono/ApercuMonoProLight.ttf") format("truetype"); + font-weight: 300; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Apercu Mono"; + src: url("/fonts/apercu-mono/ApercuMonoProRegular.ttf") format("truetype"); + font-weight: 400; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Apercu Mono"; + src: url("/fonts/apercu-mono/ApercuMonoProMedium.ttf") format("truetype"); + font-weight: 500; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Apercu Mono"; + src: url("/fonts/apercu-mono/ApercuMonoProBold.ttf") format("truetype"); + font-weight: 700; + font-style: normal; + font-display: swap; +} + +pre, +code, +pre code, +.astro-code, +code[class*="language-"] { + font-family: "Apercu Mono", monospace !important; +} + +html, +body { + font-family: "Signifier", serif; +} + +header, +footer { + padding: 30px 20px; + font-size: 1.5em; + display: flex; + align-items: center; + justify-content: space-between; +} diff --git a/public/styles/index.css b/public/styles/index.css index 37005a5..888e2e7 100644 --- a/public/styles/index.css +++ b/public/styles/index.css @@ -1,165 +1,5 @@ -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-Thin.ttf") format("truetype"); - font-weight: 100; - font-style: normal; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-ThinItalic.ttf") format("truetype"); - font-weight: 100; - font-style: italic; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-Extralight.ttf") format("truetype"); - font-weight: 200; - font-style: normal; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-ExtralightItalic.ttf") format("truetype"); - font-weight: 200; - font-style: italic; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-Light.ttf") format("truetype"); +header h1 { font-weight: 300; - font-style: normal; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-LightItalic.ttf") format("truetype"); - font-weight: 300; - font-style: italic; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-Regular.ttf") format("truetype"); - font-weight: 400; - font-style: normal; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-RegularItalic.ttf") format("truetype"); - font-weight: 400; - font-style: italic; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-Medium.ttf") format("truetype"); - font-weight: 500; - font-style: normal; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-MediumItalic.ttf") format("truetype"); - font-weight: 500; - font-style: italic; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-Bold.ttf") format("truetype"); - font-weight: 700; - font-style: normal; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-BoldItalic.ttf") format("truetype"); - font-weight: 700; - font-style: italic; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-Black.ttf") format("truetype"); - font-weight: 900; - font-style: normal; - font-display: swap; -} - -@font-face { - font-family: "Signifier"; - src: url("/fonts/signifier/Signifier-BlackItalic.ttf") format("truetype"); - font-weight: 900; - font-style: italic; - font-display: swap; -} - -@font-face { - font-family: "Apercu Mono"; - src: url("/fonts/apercu-mono/ApercuMonoProLight.ttf") format("truetype"); - font-weight: 300; - font-style: normal; - font-display: swap; -} - -@font-face { - font-family: "Apercu Mono"; - src: url("/fonts/apercu-mono/ApercuMonoProRegular.ttf") format("truetype"); - font-weight: 400; - font-style: normal; - font-display: swap; -} - -@font-face { - font-family: "Apercu Mono"; - src: url("/fonts/apercu-mono/ApercuMonoProMedium.ttf") format("truetype"); - font-weight: 500; - font-style: normal; - font-display: swap; -} - -@font-face { - font-family: "Apercu Mono"; - src: url("/fonts/apercu-mono/ApercuMonoProBold.ttf") format("truetype"); - font-weight: 700; - font-style: normal; - font-display: swap; -} - -pre, -code, -pre code, -.astro-code, -code[class*="language-"] { - font-family: "Apercu Mono", monospace !important; -} - -html, -body { - font-family: "Signifier", serif; -} - -header, -footer { - padding: 30px 20px; - font-size: 1.5em; - display: flex; - align-items: center; - justify-content: space-between; + font-size: 2em; + /* letter-spacing: 0.05em; */ } diff --git a/src/components/TableOfContents.astro b/src/components/TableOfContents.astro deleted file mode 100644 index b567f49..0000000 --- a/src/components/TableOfContents.astro +++ /dev/null @@ -1,80 +0,0 @@ ---- -// Auto-generated TOC from MDX headings - Left sidebar -interface Props { - headings: Array<{ - depth: number; - slug: string; - text: string; - }>; -} - -const { headings } = Astro.props; - -// Filter to only show h1 and h2 -const tocHeadings = headings.filter((h) => h.depth <= 2); ---- - -{ - tocHeadings.length > 0 && ( - - ) -} - - diff --git a/src/content/config.ts b/src/content/config.ts index 8c75f2a..639dfe1 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -8,7 +8,6 @@ const base = z.object({ useD3: z.boolean().optional(), scripts: z.array(z.string()).optional(), redirect: z.string().optional(), - showToc: z.boolean().optional(), }); export const collections = { diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 9dff095..4627356 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -10,7 +10,7 @@ const { title, description = "barrett ruth's website" } = Astro.props; - +