Skip to content

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Mommy Haven

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.


1. Editing the website content (no coding needed)

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.

Add a news post

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>
  `,
},

Edit programs, impact, or any page

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.

Swap images

Use any https:// image link, or drop a file into public/images/ and reference it as /images/your-file.jpg.


2. Pages

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)

3. ColdStart SEO landing pages (preserved)

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 via components/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.js under SEO_LANDERS (edit the labels/URLs there).

To make these pages show Mommy Haven content, you need a Mommy Haven ColdStart account:

  1. In ColdStart, create your categories (program types) and locations (Philadelphia neighborhoods / PA regions). Their slugs become the page URLs.
  2. Put your ColdStart key in .env.local as API_KEY_SECRET.
  3. Make sure the URLs in SEO_LANDERS (in lib/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.


4. Forms

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.


5. Run locally

npm install
cp .env.example .env.local   # then fill in values (all optional to start)
npm run dev                  # http://localhost:3000

Build for production:

npm run build
npm run start

6. Deploy

Vercel (recommended)

  1. Push this repo to GitHub.
  2. On vercel.com → Add New Project → import the repo.
  3. Add environment variables from .env.example (all optional to start).
  4. Deploy. Future pushes deploy automatically.

Netlify — connect the repo, build command npm run build, set the same env vars.


7. Brand

  • 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.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages