Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Optional. A form backend (e.g. Formspree, Basin, Web3Forms) that accepts POSTs.
# When unset, the contact and newsletter forms fall back to links (Messenger / email).
PUBLIC_FORM_ENDPOINT=
PUBLIC_NEWSLETTER_ENDPOINT=
# Form backends (e.g. Formspree, Basin, Web3Forms) that accept POSTs.
# Set them as GitHub repository variables for the deployed site.
# When unset, each form shows contact links instead.
PUBLIC_FORM_ENDPOINT= # contact + local network interest forms
PUBLIC_PRAYER_ENDPOINT= # prayer requests (private inbox, prayer team only)
PUBLIC_NEWSLETTER_ENDPOINT= # footer newsletter
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:
workflow_dispatch:
# Daily rebuild at 00:05 Manila time (16:05 UTC) so ended events and announcements drop off.
schedule:
- cron: '5 16 * * *'

permissions:
contents: read
Expand All @@ -26,6 +29,7 @@ jobs:
package-manager: [email protected]
env:
PUBLIC_FORM_ENDPOINT: ${{ vars.PUBLIC_FORM_ENDPOINT }}
PUBLIC_PRAYER_ENDPOINT: ${{ vars.PUBLIC_PRAYER_ENDPOINT }}
PUBLIC_NEWSLETTER_ENDPOINT: ${{ vars.PUBLIC_NEWSLETTER_ENDPOINT }}

deploy:
Expand Down
250 changes: 169 additions & 81 deletions AGENTS.md

Large diffs are not rendered by default.

52 changes: 29 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Indigitous Philippines

The website of **Indigitous Philippines**, a community of Filipino followers of Jesus using tech and creativity to take the gospel to new people, places and spaces. It is part of the global [Indigitous](https://indigitous.org) network.
The website of **Indigitous Philippines**, a movement of Filipino believers using their gifts for missions in a digital age. It is part of the global [Indigitous](https://indigitous.org) movement.

Built with [Astro](https://astro.build) and [Tailwind CSS](https://tailwindcss.com), in English and Filipino, and deployed to GitHub Pages.
_Locally rooted. Digitally sent._

Built with [Astro](https://astro.build) and [Tailwind CSS](https://tailwindcss.com) and deployed to GitHub Pages.

## Quick start

Expand All @@ -11,31 +13,35 @@ pnpm install
pnpm dev # http://localhost:4321
```

- Component library: http://localhost:4321/storybook
- Filipino site: http://localhost:4321/fil/
The component library is at http://localhost:4321/storybook.

## Contributing

Read **[AGENTS.md](AGENTS.md)** first. It covers the conventions, brand rules and step-by-step recipes for adding pages, components and content. It is written for both people and AI coding assistants.
Read **[AGENTS.md](AGENTS.md)** first. It has the site map, voice guide, brand rules, deck-to-component map, and step-by-step recipes. It is written for both people and AI coding assistants.

Most updates only touch content:

The most common task, adding an event or story, only needs a Markdown file in `src/content/`.
| To change… | Edit |
| ------------------------------------------------- | ----------------------------- |
| The announcement bar, prayer time or prayer focus | `src/content/site/site.json` |
| Events (incl. the next #HACK) | `src/content/events/*.md` |
| Local networks | `src/content/networks/*.md` |
| Stories | `src/content/stories/*.md` |
| #HACK challenges | `src/content/challenges/*.md` |
| Team | `src/content/team/*.md` |
| Links, socials, nav | `src/config/site.ts` |

## Pages

| Route | What it is |
| ------------------------------------- | --------------------------------------------------------------------- |
| `/` | Home |
| `/about`, `/about/team` | Who we are |
| `/start-here` | Find your path (developer, designer, creator, gamer, ministry leader) |
| `/hack` | #HACK Philippines |
| `/events`, `/events/[slug]` | Events |
| `/communities`, `/communities/[slug]` | Local communities (Manila, Iloilo) |
| `/projects`, `/projects/[slug]` | Projects built by the community |
| `/stories`, `/stories/[slug]` | News and stories |
| `/resources` | Curated tools and research |
| `/get-involved` | Ways to help |
| `/give` | Giving (links to the official Indigitous giving page) |
| `/contact` | Contact |
| `/storybook` | Component showcase (not indexed) |

Every page also exists under `/fil/`.
| Route | What it is |
| ------------------------------------ | -------------------------------------------------------------- |
| `/` | Home |
| `/about` | What Indigitous is, our story, beliefs, team |
| `/networks` | Local networks and the "get connected" form |
| `/hack` | #HACK: countdown, how it works, event details, challenges, FAQ |
| `/pray` | Prayer time, online workers ministry, prayer requests |
| `/stories`, `/stories/[slug]` | Stories |
| `/partner` | Partner & Give |
| `/contact` | Contact |
| `/events`, `/projects`, `/resources` | Extra pages, linked from the footer |
| `/storybook` | Component showcase (not indexed) |
62 changes: 50 additions & 12 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,58 @@ import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import tailwindcss from '@tailwindcss/vite';

/**
* Old URLs from the first version of the site (incl. the retired /fil/ mirror).
* GitHub Pages is static, so each one becomes a small meta-refresh page.
*/
const moved = {
'/communities': '/networks',
'/communities/manila': '/networks',
'/communities/iloilo': '/networks',
'/about/team': '/about#team',
'/give': '/partner',
'/get-involved': '/partner',
'/start-here': '/networks',
'/events/coffee-talk-faith-and-ai': '/events',
'/events/hack2026-manila': '/events',
'/events/hack2027-champion-info-session': '/events',
'/events/iloilo-creatives-meetup': '/events',
'/stories/what-happened-at-hack2026': '/stories/what-happens-at-a-hack',
};
const filPages = [
'',
'about',
'about/team',
'start-here',
'hack',
'events',
'communities',
'communities/manila',
'communities/iloilo',
'projects',
'projects/bible-in-your-dialect',
'projects/church-website-kit',
'projects/ofw-stories',
'stories',
'stories/why-indigitous-philippines',
'stories/what-happened-at-hack2026',
'stories/getting-started-as-a-creative',
'resources',
'get-involved',
'give',
'contact',
];
/** @type {Record<string, string>} */
const redirects = { ...moved };
for (const p of filPages) {
const en = `/${p}`.replace(/\/$/, '') || '/';
redirects[`/fil${p ? `/${p}` : ''}`] = moved[/** @type {keyof typeof moved} */ (en)] ?? en;
}

// https://astro.build/config
export default defineConfig({
site: 'https://indigitousph.github.io',
i18n: {
defaultLocale: 'en',
locales: ['en', 'fil'],
routing: { prefixDefaultLocale: false },
},
integrations: [
mdx(),
sitemap({
filter: (page) => !page.includes('/storybook'),
i18n: { defaultLocale: 'en', locales: { en: 'en-PH', fil: 'fil-PH' } },
}),
],
redirects,
integrations: [mdx(), sitemap({ filter: (page) => !page.includes('/storybook') })],
vite: { plugins: [tailwindcss()] },
});
2 changes: 1 addition & 1 deletion public/og-default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 0 additions & 49 deletions src/components/cards/CommunityCard.astro

This file was deleted.

20 changes: 0 additions & 20 deletions src/components/cards/CommunityCard.stories.ts

This file was deleted.

16 changes: 9 additions & 7 deletions src/components/cards/EventCard.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,27 @@ import EventCard from './EventCard.astro';
export default {
title: 'EventCard',
component: EventCard,
description: 'Event teaser used on /events.',
width: 'sm',
variants: [
{
name: 'Default',
props: {
title: 'Coffee Talk Manila: Faith, AI and the Filipino church',
title: '#HACK for Christmas — Iloilo',
href: '#',
date: new Date('2026-12-06T07:00:00Z'),
location: 'Makati City, Metro Manila',
summary: 'An afternoon of kape and honest conversation about AI and ministry.',
date: new Date('2026-11-20T09:00:00Z'),
location: 'ICMAC, Smallville, Iloilo',
summary:
'24 hours. One mission. Build something that tells the Christmas story to someone who needs it.',
},
},
{
name: 'Online, sample content',
props: {
title: '#HACK2027 Philippines: Champion info session',
title: 'Online workers huddle',
href: '#',
date: new Date('2027-02-20T11:00:00Z'),
location: 'Online (Zoom)',
date: new Date('2026-12-10T12:00:00Z'),
location: 'Online',
online: true,
placeholder: true,
},
Expand Down
58 changes: 58 additions & 0 deletions src/components/cards/NetworkCard.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
import Button from '../ui/Button.astro';
import Icon from '../ui/Icon.astro';
import PillTag from '../ui/PillTag.astro';

/** Local network card (deck: NetworkCards): city, description, meeting rhythm, connect button. */
interface Props {
city: string;
region?: string;
description: string;
meets?: string;
href: string;
placeholder?: boolean;
class?: string;
}
const {
city,
region,
description,
meets,
href,
placeholder = false,
class: className,
} = Astro.props;
---

<article
class:list={['flex h-full flex-col gap-4 rounded-card bg-white p-7 ring-1 ring-stone', className]}
>
<div class="flex flex-wrap items-center gap-2">
{region && (
<span class="eyebrow flex items-center gap-1.5 text-brand-orange-dark">
<Icon name="map-pin" size={14} />
{region}
</span>
)}
{placeholder && (
<PillTag tone="outline" size="sm">
Sample content
</PillTag>
)}
</div>
<h3 class="text-2xl">Indigitous {city}</h3>
<p class="text-ink-2">{description}</p>
<p class="flex items-center gap-2 font-mono text-sm text-ink-2">
<Icon name="calendar" size={16} />
Meets: {meets ?? 'ask us for the next gathering'}
</p>
<Button
href={href}
variant="dark"
size="sm"
icon="arrow-right"
class="mt-auto self-start max-w-full"
>
Connect with {city}
</Button>
</article>
30 changes: 30 additions & 0 deletions src/components/cards/NetworkCard.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import type { Story } from '@/lib/story';
import NetworkCard from './NetworkCard.astro';

export default {
title: 'NetworkCard',
component: NetworkCard,
width: 'sm',
variants: [
{
name: 'Default',
props: {
city: 'Iloilo',
region: 'Western Visayas',
description: 'Believers in Iloilo who meet, pray and dream together.',
meets: 'Monthly, Saturdays',
href: '#',
},
},
{
name: 'Rhythm not set, sample',
props: {
city: 'Manila',
region: 'Metro Manila',
description: 'Believers across Metro Manila.',
href: '#',
placeholder: true,
},
},
],
} satisfies Story;
11 changes: 5 additions & 6 deletions src/components/cards/StoryCard.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,18 @@ export default {
title: 'Why we started Indigitous Philippines',
href: '#',
date: new Date('2026-11-01'),
summary:
'More than 85 million Filipinos are online. Here is why tech and creative people matter.',
category: 'news',
summary: 'The mission hasn’t changed. Where people gather has.',
category: 'Testimonies',
},
},
{
name: 'Sample content',
props: {
title: 'What happened at #HACK2026 Manila',
title: 'What happens at a #HACK?',
href: '#',
date: new Date('2026-10-25'),
summary: 'Two days, twelve teams and a lot of coffee.',
category: 'hack',
summary: 'Twenty-four hours, a real challenge and a team you might have just met.',
category: '#HACK',
placeholder: true,
},
},
Expand Down
Loading
Loading