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
12 changes: 12 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Nothing is required to run the site locally. Every variable is optional.

# Include entries marked `sample: true` in content/. Defaults to true in
# `pnpm dev` and false in `pnpm build`. `pnpm build:preview` sets it to true.
SHOW_SAMPLE_CONTENT=

# Canonical origin used for metadata, sitemap and OG images.
NEXT_PUBLIC_SITE_URL=https://flutter.ph

# Google Analytics 4 measurement ID ("G-..."). Empty means analytics is off.
# Never loaded in development. The old UA-121652877-4 tag no longer works.
NEXT_PUBLIC_GA_MEASUREMENT_ID=
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Organizers review every change. Add more handles as the team grows.
* @joshuadeguzman
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/add-event.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Add an event
description: Put a Flutter PH meetup, workshop or watch party on the site.
title: "[event] "
labels: [content, event]
body:
- type: markdown
attributes:
value: |
Prefer to add it yourself? Create `content/events/<short-name>.mdx` (copy any file in that folder). The fields are explained in docs/content-guide.md.
- type: input
id: title
attributes: { label: Event name }
validations: { required: true }
- type: input
id: when
attributes:
{ label: Date and time (Manila time), placeholder: "2027-01-23, 2:00 PM to 6:00 PM" }
validations: { required: true }
- type: dropdown
id: format
attributes: { label: Format, options: [In person, Online, Hybrid] }
validations: { required: true }
- type: input
id: venue
attributes: { label: Venue and city (in person or hybrid) }
- type: input
id: rsvp
attributes: { label: RSVP link (Luma, Bevy, etc.) }
- type: textarea
id: summary
attributes: { label: Short description, description: Two sentences is plenty. }
validations: { required: true }
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/add-talk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Add a talk by the team
description: A talk, workshop or booth a Flutter PH organizer gave at another event.
title: "[talk] "
labels: [content, talk]
body:
- type: markdown
attributes:
value: Talks live in `content/talks/<year>.yaml`. Add a new item to the `talks` list, or fill this in and an organizer will.
- type: input
id: event
attributes: { label: Event name (exactly as written by the host) }
validations: { required: true }
- type: input
id: date
attributes: { label: Date, placeholder: "2027-03-14" }
validations: { required: true }
- type: input
id: session
attributes: { label: Session title }
- type: input
id: url
attributes:
{ label: Event page link, description: Leave empty if there is no public page. Never guess. }
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Report a bug
description: Something on flutter.ph looks wrong or is broken.
title: "[bug] "
labels: [bug]
body:
- type: input
id: page
attributes: { label: Page URL }
validations: { required: true }
- type: textarea
id: what
attributes: { label: What happened, and what did you expect? }
validations: { required: true }
- type: input
id: device
attributes: { label: Device and browser, placeholder: "iPhone 15, Safari" }
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Ask the community
url: https://www.facebook.com/groups/flutterphilippines
about: Questions about Flutter go to the Facebook group.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/propose-talk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Propose a talk
description: Want to speak at a Flutter PH meetup? Tell us about it.
title: "[cfp] "
labels: [talk-proposal]
body:
- type: input
id: title
attributes: { label: Talk title }
validations: { required: true }
- type: textarea
id: abstract
attributes: { label: What will people learn? }
validations: { required: true }
- type: dropdown
id: level
attributes: { label: Level, options: [Beginner, Intermediate, Advanced] }
- type: input
id: contact
attributes: { label: How can we reach you? (X, LinkedIn or GitHub) }
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## What's in this PR

<!-- One or two sentences: what changed and why. -->

## Test Plan

<!-- How you checked it. For content, "Previewed with pnpm dev" is enough. -->

- [ ] `pnpm dev` and checked the page at http://localhost:3000
- [ ] `pnpm check` passes (code changes only)

## Screenshots

<!-- For visible changes: before and after, phone and desktop if layout changed. -->

## Checklist

- [ ] Content facts (dates, names, numbers, links) are real and checked
- [ ] Every image has alt text
- [ ] No em dashes in copy
- [ ] No secrets or personal data added
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
groups:
minor-and-patch:
update-types: [minor, patch]
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Runs the same gate as `pnpm check` on every pull request.
name: CI

on:
pull_request:
workflow_dispatch:

jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: corepack enable
- run: pnpm install --frozen-lockfile
- run: pnpm exec playwright install --with-deps chromium webkit
- run: pnpm check
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: |
test-results/
playwright-report/
retention-days: 7
- name: Lighthouse
run: pnpm lighthouse
49 changes: 49 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Builds the static site and publishes it to GitHub Pages.
# Requires: Settings > Pages > Source = "GitHub Actions" (one-time, by a maintainer).
# Runs on every push to main, daily (so upcoming events roll over to past),
# and on demand.
name: Deploy

on:
push:
branches: [main]
schedule:
- cron: "0 16 * * *" # 00:00 Asia/Manila
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: corepack enable
- run: pnpm install --frozen-lockfile
- run: pnpm build
env:
NEXT_PUBLIC_SITE_URL: https://flutter.ph
NEXT_PUBLIC_GA_MEASUREMENT_ID: ${{ vars.GA_MEASUREMENT_ID }}
- uses: actions/upload-pages-artifact@v3
with:
path: out

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# dependencies
node_modules/

# next.js
.next/
out/
next-env.d.ts
*.tsbuildinfo

# content collections
.content-collections/

# testing
coverage/
test-results/
playwright-report/
blob-report/
.lighthouseci/

# env
.env
.env*.local

# misc
.DS_Store
*.log
.vscode/*
!.vscode/extensions.json

# local-only notes (research with personal names, not for the public repo)
.local/
34 changes: 34 additions & 0 deletions .lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"ci": {
"collect": {
"startServerCommand": "pnpm start",
"startServerReadyPattern": "Accepting connections",
"url": ["http://localhost:3000/"],
"numberOfRuns": 3,
"settings": {
"preset": "perf",
"formFactor": "mobile",
"throttlingMethod": "simulate",
"onlyCategories": ["performance", "accessibility", "best-practices", "seo"],
"skipAudits": ["is-crawlable"]
}
},
"assert": {
"assertions": {
"categories:performance": [
"error",
{ "minScore": 0.95, "aggregationMethod": "median-run" }
],
"categories:accessibility": ["error", { "minScore": 0.95 }],
"categories:best-practices": ["error", { "minScore": 0.95 }],
"categories:seo": ["error", { "minScore": 0.95 }],
"largest-contentful-paint": [
"error",
{ "maxNumericValue": 2000, "aggregationMethod": "median-run" }
],
"cumulative-layout-shift": ["error", { "maxNumericValue": 0.05 }]
}
},
"upload": { "target": "filesystem", "outputDir": ".lighthouseci" }
}
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.next
out
.content-collections
node_modules
pnpm-lock.yaml
test-results
playwright-report
.lighthouseci
public
LICENSE
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 100,
"plugins": ["prettier-plugin-tailwindcss"],
"tailwindStylesheet": "./src/app/globals.css"
}
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"unifiedjs.vscode-mdx"
]
}
69 changes: 69 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Contributing to flutter.ph

Thanks for helping. Most changes are content: an event, a talk, a fix to some text. You can do those in your browser without installing anything.

## The 5-minute way (no coding needed)

1. Open the file you want to change on GitHub, or the folder you want to add to (see the table below).
2. Click the pencil icon to edit, or **Add file > Create new file** to add one. Copying an existing file is the easiest start.
3. Write a short description at the bottom and choose **Create a new branch and start a pull request**.
4. An organizer reviews it. Checks run automatically, and if a field is wrong they tell you which one.

Not sure where something goes? Open an issue instead and pick a template: **Add an event**, **Add a talk by the team**, **Propose a talk** or **Report a bug**.

## Where things live

| You want to add | Put it in | Example |
| ------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------------- |
| A Flutter PH event | `content/events/<short-name>.mdx` | `content/events/shipaton-manila-2026.mdx` |
| A talk, workshop or booth by the team | `content/talks/<year>.yaml` (add to `talks:`) | `content/talks/2026.yaml` |
| A demo or workshop repo | `content/talks/<year>.yaml` (add to `openSource:`) | same file |
| A person (speaker, organizer) | `content/people/<name>.mdx` | `content/people/joshua-de-guzman.mdx` |
| A supporter or partner logo | `content/partners/<name>.mdx` and the logo in `public/images/partners/` | `content/partners/google-developer-groups.mdx` |
| An older Meetup event | `content/archive/meetup.yaml` | |

Every field is described in [docs/content-guide.md](docs/content-guide.md).

## Content rules

- **Only real facts.** Dates, names, numbers and links must be checked. If you are unsure, leave the field out. Never guess a URL.
- **Times are in Manila time** with the offset, for example `2027-01-23T14:00:00+08:00`.
- **Every image needs alt text** that says what it shows.
- **Plain, short copy.** No em dashes. Write like you would talk to a friend at a meetup.
- **Logos** must be the official files from the owner, used with permission.
- **Sample content** (`sample: true`) is for previews only and never appears on the live site.

## Working on the code

```bash
nvm use && corepack enable
pnpm install
pnpm dev
```

Before you open a pull request:

```bash
pnpm check
```

That runs type checks, lint, formatting, unit tests, a production build, accessibility and end-to-end tests in Chromium and WebKit, and the scroll performance test. CI runs the same thing.

Guidelines:

- Server Components by default. Add `"use client"` only for real interactivity, and keep it small.
- Use the tokens in `src/app/globals.css` (`bg-surface`, `text-muted`, ...). Do not hard-code colors.
- Motion should be CSS, transform-based, and must respect `prefers-reduced-motion`.
- Every text color must pass WCAG 2.2 AA. The axe tests will tell you if it does not.
- Keep pages static. There is no server on GitHub Pages.

## Commits and pull requests

- Use [Conventional Commits](https://www.conventionalcommits.org): `feat:`, `fix:`, `content:`, `docs:`, `chore:`.
- Pull request titles follow `[type] Short description`, for example `[content] Add DevFest Cebu 2027`.
- Fill in the pull request template: what changed, how you tested it, and screenshots for anything visible.
- `main` is the live site. Changes land through reviewed pull requests and are squash-merged.

## Code of conduct

Be kind, be patient, and assume good intent. Harassment of any kind is not welcome at our events or in our channels. Report problems to the organizers through the Facebook group or at team@flutter.ph.
Loading
Loading