From b170bfcc47925578d270a7b205ae446e0b5d0463 Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Tue, 13 Feb 2024 05:55:46 -0800 Subject: [PATCH] new card component for brutal theme --- packages/astro-ghostcms-brutalbyelian/package.json | 2 +- .../src/components/ghostrender/astrocard.astro | 9 +++++++++ .../src/components/ghostrender/index.ts | 3 ++- .../astro-ghostcms-brutalbyelian/src/routes/[slug].astro | 1 + 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 packages/astro-ghostcms-brutalbyelian/src/components/ghostrender/astrocard.astro diff --git a/packages/astro-ghostcms-brutalbyelian/package.json b/packages/astro-ghostcms-brutalbyelian/package.json index c94cf3c6..7a4d1eb0 100644 --- a/packages/astro-ghostcms-brutalbyelian/package.json +++ b/packages/astro-ghostcms-brutalbyelian/package.json @@ -1,7 +1,7 @@ { "name": "@matthiesenxyz/astro-ghostcms-brutalbyelian", "description": "ElianCodes Brutal theme modified to work with Astro-GhostCMS", - "version": "0.0.4", + "version": "0.0.5", "homepage": "https://astro-ghostcms.xyz/", "type": "module", "license": "MIT", diff --git a/packages/astro-ghostcms-brutalbyelian/src/components/ghostrender/astrocard.astro b/packages/astro-ghostcms-brutalbyelian/src/components/ghostrender/astrocard.astro new file mode 100644 index 00000000..61abb2bb --- /dev/null +++ b/packages/astro-ghostcms-brutalbyelian/src/components/ghostrender/astrocard.astro @@ -0,0 +1,9 @@ +--- +import { Card } from "@eliancodes/brutal-ui"; + +--- +
+ + + +
\ No newline at end of file diff --git a/packages/astro-ghostcms-brutalbyelian/src/components/ghostrender/index.ts b/packages/astro-ghostcms-brutalbyelian/src/components/ghostrender/index.ts index 48f492d2..3d7549fe 100644 --- a/packages/astro-ghostcms-brutalbyelian/src/components/ghostrender/index.ts +++ b/packages/astro-ghostcms-brutalbyelian/src/components/ghostrender/index.ts @@ -5,4 +5,5 @@ export { default as H4 } from "./H4.astro" export { default as H5 } from "./H5.astro" export { default as H6 } from "./H6.astro" export { default as CodeSlot } from "./CodeSlot.astro" -export { default as Paragraph } from "./Paragraph.astro" \ No newline at end of file +export { default as Paragraph } from "./Paragraph.astro" +export { default as astrocard } from "./astrocard.astro" \ No newline at end of file diff --git a/packages/astro-ghostcms-brutalbyelian/src/routes/[slug].astro b/packages/astro-ghostcms-brutalbyelian/src/routes/[slug].astro index 04c5e99c..73aae438 100644 --- a/packages/astro-ghostcms-brutalbyelian/src/routes/[slug].astro +++ b/packages/astro-ghostcms-brutalbyelian/src/routes/[slug].astro @@ -41,6 +41,7 @@ invariant(settings, "Settings are required"); h6: C.H6, pre: C.CodeSlot, p: C.Paragraph, + astrocard: C.astrocard, }} />