diff --git a/web/astro.config.mjs b/web/astro.config.mjs index 1db7ba3..e2b8773 100644 --- a/web/astro.config.mjs +++ b/web/astro.config.mjs @@ -3,11 +3,14 @@ import {defineConfig} from 'astro/config'; import tailwind from '@astrojs/tailwind'; +import svelte from '@astrojs/svelte'; + // https://astro.build/config export default defineConfig({ - integrations: [ - tailwind({ - nesting: true, - }) - ] + integrations: [tailwind({ + nesting: true, + }), svelte()], + build: { + format: 'file', + }, }); diff --git a/web/package.json b/web/package.json index 61a3477..77417a4 100644 --- a/web/package.json +++ b/web/package.json @@ -13,9 +13,11 @@ }, "dependencies": { "@astrojs/check": "^0.9.4", + "@astrojs/svelte": "^5.7.3", "@astrojs/tailwind": "^5.1.3", "astro": "^4.16.16", + "svelte": "^4.2.19", "tailwindcss": "^3.4.16", - "typescript": "^5.7.2" + "typescript": "^5.7.3" } } diff --git a/web/src/components/CopyTextComponent.svelte b/web/src/components/CopyTextComponent.svelte new file mode 100644 index 0000000..2da7074 --- /dev/null +++ b/web/src/components/CopyTextComponent.svelte @@ -0,0 +1,31 @@ + + +{text} diff --git a/web/src/layouts/Layout.astro b/web/src/layouts/Layout.astro index b7b035b..5523b84 100644 --- a/web/src/layouts/Layout.astro +++ b/web/src/layouts/Layout.astro @@ -2,6 +2,10 @@ import Header from "../components/Header.astro"; const {title} = Astro.props; + +function renderTitle(title: string): string { + return (title ? `${title} | ` : "") + "[[ .ServiceName ]]"; +} --- @@ -11,7 +15,7 @@ const {title} = Astro.props; -