diff --git a/astro.config.mjs b/astro.config.mjs index 92dcc77..07ad7a3 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -12,6 +12,7 @@ const env = loadEnv(process.env.NODE_ENV ?? 'development', process.cwd(), ''); // https://astro.build/config export default defineConfig({ + site: 'https://theater-jb.ch', output: 'server', integrations: [ sanity({ diff --git a/package-lock.json b/package-lock.json index 9d3363b..1d19b2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.1", "dependencies": { "@astrojs/node": "^11.1.14", + "@fontsource/kaushan-script": "^5.3.0", "@portabletext/to-html": "^6.0.0", "@sanity/client": "^8.16.0", "@sanity/image-url": "^2.2.0", @@ -4008,6 +4009,15 @@ "dev": true, "license": "MIT" }, + "node_modules/@fontsource/kaushan-script": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource/kaushan-script/-/kaushan-script-5.3.0.tgz", + "integrity": "sha512-Kdcvr76wOGp2jgKkkmAOETmPcw/a34RU/qcGW2+gSKzkKyr03vEaLWSbSABoVKWuyuoqWoulcmC4571vq3BYvg==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, "node_modules/@img/colour": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", diff --git a/package.json b/package.json index dc9f92a..b715cba 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@astrojs/node": "^11.1.14", + "@fontsource/kaushan-script": "^5.3.0", "@portabletext/to-html": "^6.0.0", "@sanity/client": "^8.16.0", "@sanity/image-url": "^2.2.0", diff --git a/public/og-image.png b/public/og-image.png new file mode 100644 index 0000000..9a6b79f Binary files /dev/null and b/public/og-image.png differ diff --git a/src/components/AnchorNav.astro b/src/components/AnchorNav.astro index 9a67ce0..0e68beb 100644 --- a/src/components/AnchorNav.astro +++ b/src/components/AnchorNav.astro @@ -1,16 +1,16 @@ --- -const navItems = [ - { id: 'projekt', label: 'Das Projekt' }, - { id: 'team', label: 'Wer steckt dahinter' }, - { id: 'stueck', label: 'Das Stück' }, - { id: 'mitwirkung', label: 'Mitwirken' }, - { id: 'termine', label: 'Termine' }, - { id: 'presse', label: 'Presse' }, - { id: 'gallery', label: 'Galerie' }, - { id: 'tickets', label: 'Tickets' }, -]; ---- +export interface NavItem { + id: string; + label: string; +} +interface Props { + /** Sections actually rendered on the page, in page order. */ + items: NavItem[]; +} + +const { items: navItems } = Astro.props; +---