From cc910cec593411e8071f24b1693ee23fab8fb967 Mon Sep 17 00:00:00 2001 From: Ben Parker Date: Wed, 26 Nov 2025 10:34:45 +0000 Subject: [PATCH] changes to contact page --- src/components/sections/CardGrid.astro | 137 +++++++++++++++++-------- src/content/pages/contact.md | 57 +++++----- src/content/schemas/sections.ts | 10 ++ 3 files changed, 128 insertions(+), 76 deletions(-) diff --git a/src/components/sections/CardGrid.astro b/src/components/sections/CardGrid.astro index d11e7589..d69e320d 100644 --- a/src/components/sections/CardGrid.astro +++ b/src/components/sections/CardGrid.astro @@ -3,56 +3,109 @@ import type { cardsSchema } from "@/content/schemas/sections"; import { Icon } from "astro-icon/components"; import type { z } from "astro/zod"; import { marked } from "marked"; +import ContactModal from "../forms/ContactModal.astro"; +import InsightModal from "../forms/InsightModal.astro"; type Props = z.infer; const { cards, styles, divider } = Astro.props; --- + diff --git a/src/content/pages/contact.md b/src/content/pages/contact.md index 32bb05f6..2315e1d7 100644 --- a/src/content/pages/contact.md +++ b/src/content/pages/contact.md @@ -7,47 +7,30 @@ description: | hero: title: > Contact Linaro - background_image: linaro-website/graphics/close-up-woman_sbf1xz + background_image: /linaro-website/graphics/young-woman-with-curly-hair-using-phone-street_1_zfsbea.png description: "" styles: - text_container: text-center w-full - title: w-full text-center - background: bg-right-top md:bg-top opacity-50 + main_container: lg:h-[calc(100vh)] h-[calc(35vh)] + text_container: text-center w-full lg:pl-40 + title: w-full text-left + background: w-full description: text-md sm:text-lg - main_container: max-h-[30rem] min-h-[30ch] h-[30vh] flow: - row: container_row + styles: + outer: purple-gradient-container sections: - - component: contact_buttons + - component: contact + form_id: "7" + formName: "sales_contact" styles: - card: max-w-[30ch] mx-auto flex flex-col justify-center items-center - container: justify-around gap-x-5 gap-y-20 - button: mt-8 - card_title: text-[2rem] text-center - buttons: - - title: Sales Enquiries - type: form - icon: workspaces - button_text: Get in Touch - form_id: "7" - modal_id: general - formName: "sales_contact" - - title: Media Enquiries - type: form - icon: flash_on - button_text: Get in Touch - form_id: "8" - modal_id: marketing - formName: "media_contact" - - title: Careers Enquiries - type: link - icon: handshake - button_text: Get in Touch - url: /careers + card: flex flex-col md:flex-row bg-background border rounded-xl p-8 + form: w-full md:w-1/2 bg-background + content: w-full md:w-1/2 text-2xl + content: We’d love to hear from you so please send us a message and one of our team will be in touch! - row: container_row - styles: - outer: purple-gradient-container sections: + - component: faded_line - component: cards styles: card: max-w-[40ch] flex flex-col items-start @@ -55,10 +38,16 @@ flow: cards: - title: Technical Support text: | + 96Boards Technical Support - If you have a technical support query relating to 96Boards, please post your question on [96Boards](https://discuss.96boards.org/). + + Linaro Technical Support - If you have a technical support query relating to Linaro, please go to our support page. If you have a technical support query relating to Linaro, please go to our [support page](https://support.linaro.org/). - title: Legal Information text: Linaro's legal information can be found on the [Legal page](/legal). - - title: Getting Involved with the Community - text: For discussion around Linux and Open Source on Arm, subscribe to the lists on [Linaro Lists Site](https://lists.linaro.org/mailman3/lists/). + - title: Subscribe to our newsletter + contact_button: + button_text: Subscribe + type: insight + formName: newsletter --- diff --git a/src/content/schemas/sections.ts b/src/content/schemas/sections.ts index f828d44b..692e8f44 100644 --- a/src/content/schemas/sections.ts +++ b/src/content/schemas/sections.ts @@ -53,6 +53,16 @@ export const cardsSchema = z.object({ url: z.string(), }) .optional(), + contact_button: z + .object({ + form_id: z.string().optional(), + modal_id: z.string().optional(), + button_text: z.string(), + type: z.string(), + title: z.string().optional(), + formName: z.string(), + }) + .optional(), }), ), divider: z.boolean().optional(),