diff --git a/apps/changelog_public/astro.config.mjs b/apps/changelog_public/astro.config.mjs index ebeaab9..e94a8f8 100644 --- a/apps/changelog_public/astro.config.mjs +++ b/apps/changelog_public/astro.config.mjs @@ -7,5 +7,6 @@ import tailwind from '@astrojs/tailwind' // https://astro.build/config export default defineConfig({ + output: 'server', integrations: [react(), tailwind({ nesting: true })], }) diff --git a/apps/changelog_public/package.json b/apps/changelog_public/package.json index 5adbee3..95c452b 100644 --- a/apps/changelog_public/package.json +++ b/apps/changelog_public/package.json @@ -15,12 +15,15 @@ "@astrojs/tailwind": "^5.1.2", "@boring.tools/schema": "workspace:*", "@boring.tools/ui": "workspace:*", + "@tailwindcss/typography": "^0.5.15", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "astro": "^4.16.7", + "date-fns": "^4.1.0", "react": "^18.3.1", "react-dom": "^18.3.1", "tailwindcss": "^3.4.14", + "tailwindcss-animate": "^1.0.7", "typescript": "^5.6.3" } } diff --git a/apps/changelog_public/src/pages/[id].astro b/apps/changelog_public/src/pages/[id].astro new file mode 100644 index 0000000..2ccd8f1 --- /dev/null +++ b/apps/changelog_public/src/pages/[id].astro @@ -0,0 +1,49 @@ +--- +import { Button } from '@boring.tools/ui' +import { format } from 'date-fns' + +const { id } = Astro.params +const response = await fetch(`http://localhost:3000/v1/changelog/public/${id}`) +const data = await response.json() +console.log(data) +--- + + + + + + + + {data.title} | boring.tools + + +
+
+ +
+

{data.title}

+

{data.description}

+
+ + {data.versions.map((version) => { + return ( +
+
+

+ {version.version} +

+

+ {format(new Date(version.releasedAt), "dd-MM-yy")} +

+
+ +

+ {version.markdown} +

+
+ ) + })} +
+
+ + diff --git a/apps/changelog_public/src/pages/index.astro b/apps/changelog_public/src/pages/index.astro index 0b2319e..890ea6f 100644 --- a/apps/changelog_public/src/pages/index.astro +++ b/apps/changelog_public/src/pages/index.astro @@ -1,5 +1,4 @@ --- -import { Button } from '@boring.tools/ui' --- @@ -11,7 +10,9 @@ import { Button } from '@boring.tools/ui' Astro -

Astro

- +
+

boring.tools

+

CHANGELOG

+
diff --git a/apps/changelog_public/tailwind.config.mjs b/apps/changelog_public/tailwind.config.mjs index 01a7788..ae2c83d 100644 --- a/apps/changelog_public/tailwind.config.mjs +++ b/apps/changelog_public/tailwind.config.mjs @@ -82,5 +82,5 @@ export default { }, }, }, - plugins: [], + plugins: [require('tailwindcss-animate'), require('@tailwindcss/typography')], } diff --git a/bun.lockb b/bun.lockb index df3cbf3..e994512 100755 Binary files a/bun.lockb and b/bun.lockb differ