From f00f738088becaffde8498ff51b779d7d52f0e1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20N=C3=BDvlt?= Date: Thu, 22 Feb 2024 14:51:45 +0100 Subject: [PATCH] Add text --- src/content/config.ts | 5 +++++ src/content/intro/en.md | 7 +++++++ src/pages/[lang]/index.astro | 29 ++++++----------------------- 3 files changed, 18 insertions(+), 23 deletions(-) create mode 100644 src/content/intro/en.md diff --git a/src/content/config.ts b/src/content/config.ts index 9cbdd8c..4fae6f4 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -1,5 +1,9 @@ import { z, defineCollection } from "astro:content"; +const intro = defineCollection({ + type: "content", +}); + const confirmEmail = defineCollection({ type: "content", schema: z.object({ @@ -17,6 +21,7 @@ const emailConfirmed = defineCollection({ }); export const collections = { + intro, confirmEmail, emailConfirmed, }; diff --git a/src/content/intro/en.md b/src/content/intro/en.md new file mode 100644 index 0000000..c892821 --- /dev/null +++ b/src/content/intro/en.md @@ -0,0 +1,7 @@ +**Vienna Insurance Group is the biggest insurer in Central and Eastern Europe and still considers supporting the fossil fuel industry**. With its zero restriction on giving insurance to oil and gas companies and light restriction on coal, VIG continues to fund fossil fuels and therefore accelerating climate change. So far. Right now, we hold the power to pressure VIG and insurers all around the world to adopt stricter policies and make a major move in helping the burning planet! Together, we have the power to call out Vienna Insurance Group with its 50 branches in 20 CEE countries, and demand change. + +And now is the good time! Because this week is the Week of Action against insuring fossil fuels, by the Insure our Future network – tens of actions are happening worldwide. Join us to make voices from the CEE heard, and send an email to your local branch of Vienna Insurance Group in just a few clicks! + +Insure our Future, not fossil fuels! + +Down below, fill in your name, choose the branch you want to contact, and the specific concern you want to raise. Feel free to directly modify the text to make it more personal. If you are a client of this branch, tick the box! It's a very powerful argument to use diff --git a/src/pages/[lang]/index.astro b/src/pages/[lang]/index.astro index d7ab687..e62403d 100644 --- a/src/pages/[lang]/index.astro +++ b/src/pages/[lang]/index.astro @@ -7,11 +7,16 @@ import LetterBodyForm from "../../letter/LetterBodyForm.astro"; import LetterOptionsForm from "../../letter/LetterOptionsForm.astro"; import imgLogoVig from "../../assets/images/vig-logo.webp"; import imgBanknotes from "../../assets/images/banknotes.webp"; +import { getEntries, getEntry } from "astro:content"; export { getStaticPaths } from "../../static-paths"; const { lang } = Astro.params; const t = makeT(lang); + +const entry = (await getEntry("intro", lang)) ?? (await getEntry("intro", "en")); +const { Content } = await entry.render(); + const branches = await db .selectFrom("branches") .where("language", "=", lang) @@ -43,29 +48,7 @@ const branches = await db {t`Tell your local branch of Vienna Insurance Group to stop supporting fossil fuel`}
-

- - { - t`Vienna Insurance Group is the biggest insurer in Central and Eastern Europe and still considers supporting the fossil fuel industry.` - } - {" "} - { - t`With its zero restriction on giving insurance to oil and gas companies and light restriction on coal, VIG continues to fund fossil fuels and therefore accelerating climate change. So far. Right now, we hold the power to pressure VIG and insurers all around the world to adopt stricter policies and make a major move in helping the burning planet! Together, we have the power to call out Vienna Insurance Group with its 50 branches in 20 CEE countries, and demand change.` - } -

-

- { - t`And now is the good time! Because this week is the Week of Action against insuring fossil fuels, by the Insure our Future network – tens of actions are happening worldwide. Join us to make voices from the CEE heard, and send an email to your local branch of Vienna Insurance Group in just a few clicks!` - } -

-

- {t`Insure our Future, not fossil fuels!`} -

-

- { - t`Down below, fill in your name, choose the branch you want to contact, and the specific concern you want to raise. Feel free to directly modify the text to make it more personal. If you are a client of this branch, tick the box! It's a very powerful argument to use` - } -

+