From 0dad3c9ecd4740428cc2646627d5246d5f017cc6 Mon Sep 17 00:00:00 2001 From: itsMapleLeaf <19603573+itsMapleLeaf@users.noreply.github.com> Date: Wed, 16 Aug 2023 20:33:53 -0500 Subject: [PATCH] style fixes and improvements --- packages/website/astro.config.mjs | 5 + packages/website/package.json | 3 +- .../website/src/components/app-footer.astro | 21 +-- .../src/components/landing-animation.tsx | 2 +- packages/website/src/components/layout.astro | 57 ++++---- packages/website/src/env.d.ts | 2 +- .../website/src/pages/guides/[slug].astro | 118 ++++++++++------ packages/website/src/pages/index.astro | 56 ++++---- packages/website/src/styles/prism-theme.css | 133 ------------------ packages/website/src/styles/tailwind.css | 12 ++ packages/website/tailwind.config.ts | 7 + pnpm-lock.yaml | 7 + tailwind.config.ts | 6 +- 13 files changed, 181 insertions(+), 248 deletions(-) delete mode 100644 packages/website/src/styles/prism-theme.css create mode 100644 packages/website/tailwind.config.ts diff --git a/packages/website/astro.config.mjs b/packages/website/astro.config.mjs index 42267c2..0e0e154 100644 --- a/packages/website/astro.config.mjs +++ b/packages/website/astro.config.mjs @@ -1,3 +1,5 @@ +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-nocheck import prefetch from "@astrojs/prefetch" import react from "@astrojs/react" import tailwind from "@astrojs/tailwind" @@ -12,4 +14,7 @@ export default defineConfig({ react(), prefetch(), ], + markdown: { + shikiConfig: {}, + }, }) diff --git a/packages/website/package.json b/packages/website/package.json index 7c59d2a..0f4efe5 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -22,7 +22,8 @@ "clsx": "^2.0.0", "reacord": "workspace:*", "react": "^18.2.0", - "react-dom": "^18.2.0" + "react-dom": "^18.2.0", + "tailwind-merge": "^1.14.0" }, "devDependencies": { "@astrojs/tailwind": "^4.0.0", diff --git a/packages/website/src/components/app-footer.astro b/packages/website/src/components/app-footer.astro index a2cf37a..eb665ef 100644 --- a/packages/website/src/components/app-footer.astro +++ b/packages/website/src/components/app-footer.astro @@ -1,14 +1,19 @@ --- import { HeartIcon } from "@heroicons/react/20/solid" +import { twMerge } from "tailwind-merge" import ExternalLink from "./external-link.astro" + +export interface Props { + class?: string +} --- -