From 0575972ad8727d8b956b6e0a9621a5579936fc77 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 1 Feb 2026 21:04:43 -0500 Subject: [PATCH] fix(portal-frontend): extract contact data to JSON and use in contact page - Move contact community links from inline to data/contacts.json - Update contact page to use data-driven approach for community links - Maintain consistency with website refactoring pattern --- apps/portal-frontend/src/data/contacts.json | 14 ++++++++ apps/portal-frontend/src/pages/contact.astro | 37 +++++++++++--------- 2 files changed, 34 insertions(+), 17 deletions(-) create mode 100644 apps/portal-frontend/src/data/contacts.json diff --git a/apps/portal-frontend/src/data/contacts.json b/apps/portal-frontend/src/data/contacts.json new file mode 100644 index 000000000..fa746dc43 --- /dev/null +++ b/apps/portal-frontend/src/data/contacts.json @@ -0,0 +1,14 @@ +{ + "community": { + "discord": { + "url": "https://discord.gg/qpC8ADp3rS", + "label": "Join Discord →", + "description": "Get support, share ideas, and connect with other users" + }, + "github": { + "url": "https://github.com/lumeweb", + "label": "View Source →", + "description": "Help improve Lume by contributing to the project" + } + } +} diff --git a/apps/portal-frontend/src/pages/contact.astro b/apps/portal-frontend/src/pages/contact.astro index 5cf018e18..c2477f069 100644 --- a/apps/portal-frontend/src/pages/contact.astro +++ b/apps/portal-frontend/src/pages/contact.astro @@ -1,8 +1,9 @@ --- -import Layout from '@/layouts/Layout.astro'; +import Layout from '../layouts/Layout.astro'; import PageHeader from '@/components/PageHeader'; -import Section from '@/components/layout/Section'; -import { Button } from '@/components/ui/button'; +import contactsData from '../data/contacts.json'; + +const { community } = contactsData; --- @@ -13,27 +14,29 @@ import { Button } from '@/components/ui/button'; client:load /> -
+

Join our Discord community

-

Get support, share ideas, and connect with other users

-

Contribute on GitHub

-

Help improve Pinner by contributing to the project

-
-
+