Website for Mommy Haven — safe transitional housing and holistic support helping mothers in the Philadelphia area reunite with their children.
Reunite. Restore. Rise.
Built with Next.js 15 (App Router), React 19, and Tailwind CSS.
Almost everything on the site — page text, programs, impact points, news posts, contact details, footer links — lives in one file:
lib/content.js
Open it, change the text between the quotes "...", save, and redeploy (or push to GitHub).
The file is fully commented to show you where each piece goes.
In lib/content.js, find the NEWS list and copy an existing { ... } block to the top
of the list, then edit it:
{
slug: 'our-spring-open-house', // becomes /news/our-spring-open-house
title: 'Our Spring Open House',
date: '2026-05-15',
author: 'Mommy Haven',
image: 'https://.../photo.jpg', // a link, or a file in /public/images
excerpt: 'A short one-line summary for the news list.',
body: `
<p>Write your story here. You can use paragraphs,</p>
<h3>Sub-headings</h3>
<ul><li>and bullet points.</li></ul>
`,
},Each page has its own clearly-labeled section in lib/content.js
(HOME, ABOUT, PROGRAMS, IMPACT, GET_INVOLVED, DONATE, VOLUNTEER, CONTACT).
Edit the text and it updates on the site.
Use any https:// image link, or drop a file into public/images/ and reference it
as /images/your-file.jpg.
| Page | Route | Editable content |
|---|---|---|
| Home | / |
HOME |
| About | /about |
ABOUT |
| Programs | /programs |
PROGRAMS |
| Impact | /impact |
IMPACT |
| Get Involved | /get-involved |
GET_INVOLVED |
| Donate | /donate |
DONATE |
| Volunteer | /volunteer |
VOLUNTEER |
| News (list + posts) | /news, /news/[slug] |
NEWS |
| Contact | /contact |
CONTACT |
| ColdStart SEO landers | /[program], /[region]/... |
powered by ColdStart (below) |
This project keeps the ColdStart integration in place. It generates programmatic, search-optimized landing pages that target program types (e.g. transitional housing, recovery housing) and Philadelphia-area regions (halfway-home searches, neighborhoods).
- The data layer is
lib/api.js(fetchPageData) — unchanged ColdStart client. - The dynamic routes
app/[slug1]/[slug2]/[slug3]/[slug4]render these landers viacomponents/PageRenderer.js(re-skinned in Mommy Haven branding). - SEO metadata is generated in
lib/creator.js. - Footer links to a handful of these landers are configured in
lib/content.jsunderSEO_LANDERS(edit the labels/URLs there).
To make these pages show Mommy Haven content, you need a Mommy Haven ColdStart account:
- In ColdStart, create your categories (program types) and locations (Philadelphia neighborhoods / PA regions). Their slugs become the page URLs.
- Put your ColdStart key in
.env.localasAPI_KEY_SECRET. - Make sure the URLs in
SEO_LANDERS(inlib/content.js) match the slugs you created.
Until a Mommy Haven ColdStart key is connected, these lander URLs show a graceful branded fallback. The main site (Home, About, Programs, etc.) does not depend on ColdStart.
Contact, Volunteer, Donation, and Newsletter forms all post to app/api/contact/route.js.
By default submissions are logged on the server and the form shows a success message.
To capture leads, set CONTACT_WEBHOOK_URL (Zapier/Make/email API/your endpoint) — see
.env.example.
Donations: the donate form currently records intent to give. To take card payments,
connect a processor (Stripe Payment Link, PayPal, or Donorbox) and either set
NEXT_PUBLIC_DONATE_URL or replace components/DonateForm.js with the processor's embed.
npm install
cp .env.example .env.local # then fill in values (all optional to start)
npm run dev # http://localhost:3000Build for production:
npm run build
npm run startVercel (recommended)
- Push this repo to GitHub.
- On vercel.com → Add New Project → import the repo.
- Add environment variables from
.env.example(all optional to start). - Deploy. Future pushes deploy automatically.
Netlify — connect the repo, build command npm run build, set the same env vars.
- Plum
#7A2E5D(primary) · Pink#E27AAE(accent) · Gold#E4B24A - Backgrounds: Cream
#FBF7F2, Blush#FBEDF4 - Fonts: Fraunces (headings), Nunito Sans (body)
Colors are defined in tailwind.config.js; global styles and button classes in
app/globals.css.