diff --git a/brutal-demo/.env b/brutal-demo/.env new file mode 100644 index 00000000..fbeecd6d --- /dev/null +++ b/brutal-demo/.env @@ -0,0 +1,2 @@ +CONTENT_API_KEY=a33da3965a3a9fb2c6b3f63b48 +CONTENT_API_URL=https://ghostdemo.matthiesen.xyz \ No newline at end of file diff --git a/brutal-demo/.vscode/extensions.json b/brutal-demo/.vscode/extensions.json new file mode 100644 index 00000000..22a15055 --- /dev/null +++ b/brutal-demo/.vscode/extensions.json @@ -0,0 +1,4 @@ +{ + "recommendations": ["astro-build.astro-vscode"], + "unwantedRecommendations": [] +} diff --git a/brutal-demo/.vscode/launch.json b/brutal-demo/.vscode/launch.json new file mode 100644 index 00000000..d6422097 --- /dev/null +++ b/brutal-demo/.vscode/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "command": "./node_modules/.bin/astro dev", + "name": "Development server", + "request": "launch", + "type": "node-terminal" + } + ] +} diff --git a/brutal-demo/LICENSE b/brutal-demo/LICENSE new file mode 100644 index 00000000..88dd1335 --- /dev/null +++ b/brutal-demo/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Matthiesen XYZ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/brutal-demo/README.md b/brutal-demo/README.md new file mode 100644 index 00000000..608b1aba --- /dev/null +++ b/brutal-demo/README.md @@ -0,0 +1,11 @@ +# Astro-GhostCMS Demo Template + +[Demo](https://brutal-demo.astro-ghostcms.xyz/) + +This Repo is a Demo Website for the [@matthiesenxyz/astro-ghostcms](https://github.com/MatthiesenXYZ/astro-ghostcms) integraion. + + +### For more information Check our website + +[Astro-GhostCMS.xyz](https://astro-ghostcms.xyz) + diff --git a/brutal-demo/astro.config.mjs b/brutal-demo/astro.config.mjs new file mode 100644 index 00000000..55649e1e --- /dev/null +++ b/brutal-demo/astro.config.mjs @@ -0,0 +1,15 @@ +import { defineConfig } from "astro/config"; +import ghostcms from "@matthiesenxyz/astro-ghostcms"; +import UnoCSS from 'unocss/astro'; + +// https://astro.build/config +export default defineConfig({ + site: "https://brutal-demo.astro-ghostcms.xyz/", + integrations: [ + UnoCSS({ injectReset: true }), + ghostcms({ + theme: "@matthiesenxyz/astro-ghostcms-brutalbyelian", + ghostURL: "https://ghostdemo.matthiesen.xyz", + }) + ], +}); diff --git a/brutal-demo/package.json b/brutal-demo/package.json new file mode 100644 index 00000000..89d7b23f --- /dev/null +++ b/brutal-demo/package.json @@ -0,0 +1,24 @@ +{ + "name": "brutal-demo", + "type": "module", + "version": "0.0.1", + "scripts": { + "dev": "astro dev", + "start": "astro dev", + "build": "astro check && astro build", + "preview": "astro preview", + "astro": "astro" + }, + "dependencies": { + "astro": "^4.3.2", + "@matthiesenxyz/astro-ghostcms": "^3.2.0", + "@matthiesenxyz/astro-ghostcms-brutalbyelian": "0.0.1", + "@unocss/astro": "^0.57.7" + }, + "devDependencies": { + "@astrojs/check": "^0.4.1", + "@unocss/reset": "^0.57.7", + "typescript": "^5.3.3", + "unocss": "^0.57.7" + } +} diff --git a/brutal-demo/public/favicon.svg b/brutal-demo/public/favicon.svg new file mode 100644 index 00000000..f157bd1c --- /dev/null +++ b/brutal-demo/public/favicon.svg @@ -0,0 +1,9 @@ + + + + diff --git a/brutal-demo/src/env.d.ts b/brutal-demo/src/env.d.ts new file mode 100644 index 00000000..e8c8b171 --- /dev/null +++ b/brutal-demo/src/env.d.ts @@ -0,0 +1,9 @@ +/// +interface ImportMetaEnv { + readonly CONTENT_API_KEY: string + readonly CONTENT_API_URL: string +} + +interface ImportMeta { + readonly env: ImportMetaEnv; +} \ No newline at end of file diff --git a/brutal-demo/tsconfig.json b/brutal-demo/tsconfig.json new file mode 100644 index 00000000..0be1a571 --- /dev/null +++ b/brutal-demo/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "astro/tsconfigs/strict", + "exclude": ["dist"] +} \ No newline at end of file diff --git a/brutal-demo/uno.config.ts b/brutal-demo/uno.config.ts new file mode 100644 index 00000000..d056c836 --- /dev/null +++ b/brutal-demo/uno.config.ts @@ -0,0 +1,6 @@ +import brutalTheme from '@matthiesenxyz/astro-ghostcms-brutalbyelian'; +import { defineConfig } from 'unocss'; + +export default defineConfig({ + presets: [ brutalTheme() ], +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bb7e3a02..cf4217fb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,6 +21,34 @@ importers: specifier: ^0.2.2 version: 0.2.2(vitest@1.2.1) + brutal-demo: + dependencies: + '@matthiesenxyz/astro-ghostcms': + specifier: ^3.2.0 + version: link:../packages/astro-ghostcms + '@matthiesenxyz/astro-ghostcms-brutalbyelian': + specifier: 0.0.1 + version: link:../packages/astro-ghostcms-brutalbyelian + '@unocss/astro': + specifier: ^0.57.7 + version: 0.57.7(vite@5.0.12) + astro: + specifier: ^4.3.2 + version: 4.3.2(@types/node@20.11.16)(typescript@5.3.3) + devDependencies: + '@astrojs/check': + specifier: ^0.4.1 + version: 0.4.1(prettier-plugin-astro@0.13.0)(prettier@3.2.4)(typescript@5.3.3) + '@unocss/reset': + specifier: ^0.57.7 + version: 0.57.7 + typescript: + specifier: ^5.3.3 + version: 5.3.3 + unocss: + specifier: ^0.57.7 + version: 0.57.7(postcss@8.4.33)(vite@5.0.12) + catppuccin-dark-demo: dependencies: '@astrojs/tailwind': diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index e1786edf..f2f845df 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -3,4 +3,5 @@ packages: - "playground" - "www" - "demo" + - "brutal-demo" - "catppuccin-dark-demo" \ No newline at end of file