Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
f85f948
feat: migrate SPE site to Doop and Sanity
devin-ai-integration[bot] Nov 20, 2026
19e34c7
fix: list undated events as TBC
devin-ai-integration[bot] Nov 20, 2026
756cec8
fix: quarantine the legacy Height sample
devin-ai-integration[bot] Nov 20, 2026
5d00939
fix: reflect open editions in programme metadata
devin-ai-integration[bot] Nov 20, 2026
2134b5b
fix: hold rejected text and image motion
devin-ai-integration[bot] Nov 20, 2026
2e72ff9
fix: align filters with committed selection
devin-ai-integration[bot] Nov 20, 2026
ca9b4f1
feat: connect Sanity and revised motion
devin-ai-integration[bot] Nov 20, 2026
1a4e6bc
fix: preserve migrated email links
devin-ai-integration[bot] Nov 20, 2026
36b4df3
fix: serve Studio assets beneath admin
devin-ai-integration[bot] Nov 20, 2026
5a645de
feat: add mosaic image reveals
devin-ai-integration[bot] Nov 20, 2026
89e1db5
fix: allow cold shader preparation
devin-ai-integration[bot] Nov 20, 2026
218905b
fix: reserve globe controls layout
devin-ai-integration[bot] Nov 20, 2026
d5b3401
fix: keep navigation header sticky
devin-ai-integration[bot] Nov 20, 2026
da4c804
style: simplify neutral hero globe
devin-ai-integration[bot] Nov 20, 2026
8293155
fix: make globe pausing pointer-accessible
devin-ai-integration[bot] Nov 20, 2026
39542f1
fix: render complete globe without JavaScript
devin-ai-integration[bot] Nov 20, 2026
2111bff
fix: reveal visible card images together
devin-ai-integration[bot] Nov 20, 2026
9da95c5
fix: skip costly software GPU image effects
devin-ai-integration[bot] Nov 20, 2026
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
42 changes: 42 additions & 0 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Validate and publish

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

concurrency:
group: site-${{ github.ref }}
cancel-in-progress: true

jobs:
site:
runs-on: ubuntu-latest
env:
HAS_CF_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN != '' }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm ci --prefix studio
- run: npm --prefix studio run check
- name: Validate the editor build without project credentials
run: SANITY_STUDIO_PROJECT_ID=checkonly SANITY_STUDIO_DATASET=production npm --prefix studio run build
- run: npm test
- run: npm run build
- name: Publish approved main branch to Cloudflare Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && env.HAS_CF_TOKEN == 'true'
uses: cloudflare/wrangler-action@9acf94ace14e7dc412b076f2c5c20b8ce93c79cd # v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 3e5477c0d876280e8202b85baf22e587
wranglerVersion: '4.165.0'
command: pages deploy dist --project-name spejava --branch main
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
node_modules/
dist/
src/generated-content.ts
src/generated-earth.ts
studio/migration.ndjson
studio/.sanity/
public/admin/config.json
public/fonts/geist.woff2
public/fonts/geist-mono.woff2
public/fonts/OFL.txt
.env*
.wrangler/
.vercel/
71 changes: 52 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,71 @@
# SPE Java homepage
# SPE Java

A responsive rebuild of the current SPE Java homepage using React, TypeScript, Vite, and Tailwind CSS v4. The production build prerenders the complete homepage to HTML; no server or paid hosting runtime is needed.
Full-site Doop redesign on React, TypeScript and Vite, with Cloudflare Pages Functions and Sanity. All 34 observed Framer URLs are preserved within 47 public routes. Source content and local images are retained under `content/` and `public/media/`.

## Development
**Review only. Do not change spejava.com DNS or cancel Framer before SPE Java approves the migration.**

Requires Node.js 20.19+ (Node 22 recommended).
## Develop and verify

Node 22.12 or later is required.

```sh
npm ci
npm ci --prefix studio
npm run dev
npm run check
npm --prefix studio run check
npm test
npm run build
```

## Checks and production build
The build validates the portable content, prerenders every known route, writes route-specific metadata and a sitemap, and builds the browser editor when a Sanity project is configured. `npm run preview` previews the static snapshot, not Pages Functions. To exercise the full runtime locally after building:

```sh
npm run check
npm test
npm run build
npm run preview
npx wrangler pages dev dist
```

## Cloudflare Pages
Use `npm run types:worker` after changing Wrangler bindings. No pre-commit hooks are currently configured.

## Sanity setup

The review uses SPE Java Section project `q8u3iykd` and its public `production` dataset. The self-hosted Studio and schema registry are configured; API credentials are never included in the website.

1. Reuse an SPE-owned project, or create one at https://www.sanity.io/manage with a public dataset named `production`. Only public website content belongs in this dataset, never registrations or private member information.
2. Put the public Project ID/dataset into the default and preview `vars` in `wrangler.jsonc`. The website needs no read token. Build-time `SANITY_PROJECT_ID` / `SANITY_DATASET` overrides must match the runtime bindings.
3. Add exact permitted editor origins in Sanity's API → CORS origins with credentials enabled: `https://redesign.spejava.pages.dev`, `https://spejava.pages.dev`, and `http://localhost:3333` when developing Studio locally. Add `https://spejava.com` only as part of an approved production rollout. No wildcard credential origins.
4. Run `npm run cms:export` to create `studio/migration.ndjson`. It contains 40 deterministic root-namespace records (no dots in public IDs), proper Portable Text, original source copy and locked legacy slugs. Import with **create-if-absent** semantics, never replace existing editorial changes. An authorized Sanity MCP integration can create the records; the authenticated CLI equivalent is `sanity dataset import migration.ndjson production --missing` from `studio/`. Inspect the existing dataset before importing.
5. Rebuild and deploy the review branch. Studio is self-hosted at `/admin/` using native Sanity authentication; it requires no GitHub app, custom OAuth service or separate Studio-hosting token. Invite only authorized SPE editors using the roles available on the selected Sanity plan.

- Build command: `npm run build`
- Build output directory: `dist`
- Environment: `NODE_VERSION=22`
- No runtime environment variables or secrets are required.
Unconfigured deployments deliberately show the portable snapshot and an explicit editor setup-pending page. A configured CMS outage fails with a retryable 503 rather than silently republishing old snapshot content.

For a direct upload after building: `npx wrangler pages deploy dist --project-name spejava`.
Published documents are fetched through a fixed published-only GROQ query; draft/version IDs are excluded, and the public request sends no auth token. Validated published content is cached for 60 seconds, in addition to Sanity CDN freshness. **Publishing content needs no site rebuild, deploy hook, or Cloudflare token.**

## Scope and migration safety
Existing images remain owned static assets with provenance. Replacing a photo in Studio uploads its replacement to Sanity. Original Markdown is retained in hidden migration fields; the editor exposes Portable Text instead of raw Markdown.

## Editorial workflow and safety

- Stories and events: enter confirmed facts, summary, date, language, image alt and content. Clear the editorial-review flag only after approval. Migrated stock/sample records remain marked for review, excluded from listings and search.
- Existing URL identifiers are locked; validation also prevents renaming a published new document. Deliberate unpublishing/deletion removes its public page.
- Event registration requires a confirmed date and approved URL. Past events close automatically; a future event with closed registration is still an upcoming event, not an archive item.
- AES and scholarships retain historical announcements. Add future application rounds as programme editions with confirmed opening/closing dates (Asia/Jakarta), an approved URL and explicit open status. Outside that window no open application button is shown.
- Edition supporters appear only when explicitly approved for that edition. Unknown counts, leadership terms, fees, schedules and contacts remain visibly TBC.
- Contact/newsletter submission stays disabled until SPE approves a backend and privacy/anti-spam handling. Historical Google Forms/workshop invitations are not current registrations.

## Motion and assets

The neutral ASCII earth sits directly on bone with Indonesia in SPE blue. Click/tap the globe or use Enter/Space to pause/resume; no visible caption or Pause footer remains. It stops offscreen/in background tabs and freezes under reduced motion. The same renderer generates the complete static no-JS frame during the build. Geography is derived from public-domain [Natural Earth](https://www.naturalearthdata.com/about/terms-of-use/) data supplied in the design handoff. Glyph dividers and arrow feedback remain in place. The header is sticky on every page; menus, skip links and anchors retain clearance.

Designer’s v3 text streams from 0–100% with a four-character alphanumeric tail, using final glyph rectangles without changing source layout. Designer’s v5 images in view start together: authentic prewarmed, paused Libraries.dev `pixels-mechanic` mosaics fade in for 400ms, then the final photos crossfade over 350ms. This is a 750ms compositor reveal, not a shortened native GPU dissolve. If a mosaic is not ready on entry, a concurrent 600ms clean fade prevents an invisible queue. Exact-pinned img-fx/Three packages load locally only for eligible viewport/nearby images (900px prewarm margin), sharing one WebGL renderer. Completed layers stay paused/hidden without replay. Semantic images and source text remain accessible beneath decorative overlays. Reduced motion, no JS, missing WebGL/observers, dependency failure, slow bootstrap and font failure show final plain content. Major-performance-caveat contexts and known software renderers (SwiftShader, llvmpipe, softpipe and Basic Render Driver) also show originals without loading the SDK: synchronous software-GPU compilation can block the page beyond any JavaScript safety timer. No video autoplays. Fonts are self-hosted Geist and Geist Mono.

## Cloudflare deployment

```sh
npm run build
npx wrangler pages deploy dist --project-name spejava --branch redesign
```

Only the homepage is rebuilt here. Article, event, student, about, and contact links explicitly retain their original `https://spejava.com` destinations. **Do not move the spejava.com domain to this homepage-only deployment:** other pages, registration forms, and the CMS still belong to the existing Framer site. The Cloudflare Pages URL is a review deployment, not a domain cutover.
Use the Bot's saved Pages Edit token through the environment, never a committed token. The `redesign` branch deploys a review alias without changing the main Pages deployment or the custom domain. Preview pages receive `X-Robots-Tag: noindex,nofollow`; canonical URLs remain on spejava.com.

Content is maintained in `src/content.ts`. Images and the Instrument Sans font are served locally, using assets from the current site. The existing membership video stays at the repository root and is copied into `dist` during the build. Video playback is user-controlled. The Instagram row refreshes from the existing public FeedSpring feed near the viewport, with local snapshot images and links available if the service is unavailable or JavaScript is disabled. The existing Elfsight LinkedIn widget is lazy loaded beneath it. These social feeds retain their existing third-party service dependencies.
GitHub Actions validates PRs and can publish approved code merged into main if the repository has `CLOUDFLARE_API_TOKEN`. Without it deployment is intentionally manual. This secret affects code releases, not CMS publishing.

A browser CMS, the remaining pages, content migration, and registration forms are not part of this homepage rebuild. No new dates or claims have been invented; featured articles and event dates match the current homepage.
Before cutover: complete SPE's content/asset approvals, verify native editor login/publish/draft behavior with the actual project, approve and test any submission backend, run desktop/mobile and reduced-motion browser QA, then separately approve DNS changes. Framer stays live throughout review.
24 changes: 24 additions & 0 deletions content/articles/2023-end-of-year-party.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"slug": "2023-end-of-year-party",
"kind": "event",
"title": "2023 End of Year Party!",
"excerpt": "You are cordially invited to our end-of-year party, held on Wednesday, 6 December, from 6 to 9 p.m., at Dallas Restaurant and Bar (Level 3), 31 Boat Quay. This event is a collaboration with the AIEN (Association of…",
"body": "Dear members,\n\nYou are cordially invited to our end-of-year party, held on Wednesday, 6 December, from 6 to 9 p.m., at Dallas Restaurant and Bar (Level 3), 31 Boat Quay. This event is a collaboration with the AIEN (Association of International Energy Negotiators) society.\n\nThis invitation is for SPE Singapore chapter members only. Advance registration and cross-checking of a valid membership list will be required. Please register through the registration section of this page.\n\nThis will be an opportunity to connect with energy industry colleagues, exchange ideas, and expand your professional circle while celebrating the year-end over drinks and nibbles.\n\nPrice: Members $35.\n\nIMPORTANT: Payment at the door is NOT available, and only registration paid before the 4th of December will be included in the attendance list\n\nPlease pay by Paynow to WCW at 8337 4173. Official receipt will be sent to your email after the event.\n\nLooking forward to seeing you there!",
"image": "/media/hRa5Thad36Ga5jqeSRDHAULhWO8.webp",
"alt": "Original event poster: 2023 End of Year Party!",
"date": "2023-12-06",
"author": "",
"category": "Section news",
"language": "en",
"sourceUrl": "https://spejava.com/articles/2023-end-of-year-party",
"featured": false,
"reviewRequired": false,
"event": {
"start": "2023-12-06",
"venue": "Dallas Bar",
"format": "Partner event",
"registrationStatus": "closed"
},
"imageWidth": 1352,
"imageHeight": 1800
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"slug": "addressing-indonesia-s-lpg-shortage-a-technical-and-strategic-perspective",
"kind": "article",
"title": "Addressing Indonesia’s LPG Shortage: A Technical and Strategic Perspective",
"excerpt": "Indonesia has recently faced a significant LPG shortage, particularly affecting the availability of subsidized 3-kilogram canisters relied upon by low-income households. This scarcity has been exacerbated by policy changes…",
"body": "Indonesia has recently faced a significant LPG shortage, particularly affecting the availability of subsidized 3-kilogram canisters relied upon by low-income households. This scarcity has been exacerbated by policy changes restricting sales to official distributors, leading to long queues and public frustration. In response, the government reversed the policy, allowing small retailers to resume sales to alleviate the shortage ([The Jakarta Post](https://www.thejakartapost.com/indonesia/2025/02/05/govt-walks-back-subsidized-lpg-policy-after-backlash.html?utm_source=chatgpt.com)).\n\nOne of the major challenges in Indonesia’s LPG supply chain is its heavy reliance on imports. In 2023, Indonesia consumed around 8.7 million tons of LPG, but 6.9 million tons came from imports. To reduce this dependency, the government plans to boost domestic LPG production by approximately 1 million metric tons annually by developing 15 identified gas fields over the next three to four years. This initiative aims to double current production levels, ensuring a more self-sufficient supply ([Reuters](https://www.reuters.com/business/energy/indonesia-targets-additional-liquefied-petroleum-gas-output-regulator-says-2024-10-29/?utm_source=chatgpt.com)).\n\nLPG, primarily composed of propane (C₃H₈) and butane (C₄H₁₀), is separated from natural gas and crude oil during processing. To increase domestic production, Indonesia needs to optimize its natural gas processing facilities and improve gas fractionation efficiency. This involves upgrading gas processing plants such as those at Bontang, Badak, and Tangguh, ensuring higher extraction rates of LPG from raw gas.\n\nOne of the key technical challenges is removing impurities like CO₂, H₂S, and water vapor from raw gas before fractionation. Indonesia’s gas fields, particularly in Sumatra and Kalimantan, have varying compositions of wet and sour gas, which require advanced gas sweetening and dehydration processes. Technologies such as amine gas treating, molecular sieves, and cryogenic separation play a crucial role in improving LPG recovery efficiency.\n\nMoreover, increasing LPG yield from condensate-rich gas fields requires enhanced natural gas liquids (NGL) recovery techniques such as turboexpander cryogenic processing. These systems use Joule-Thomson (JT) expansion and cryogenic cooling to separate heavier hydrocarbons, ensuring higher propane and butane recovery rates.\n\nBeyond production, effective storage and distribution are critical to reducing supply disruptions. Indonesia is investing in floating storage and regasification units (FSRUs), particularly in Java and Sumatra, to improve logistics flexibility. Expanding the pipelines and pressurized LPG storage terminals will also ensure a more stable supply to key demand centers.\n\nAdditionally, mini-GTL (Gas-to-Liquids) and small-scale LNG plants could provide alternative sources of LPG by converting stranded or flared gas into marketable fuels. Such technologies are already being explored in remote gas fields to improve overall energy efficiency and reduce reliance on imports.\n\nBy leveraging advanced gas processing technologies, optimizing field development, and improving distribution infrastructure, Indonesia aims to achieve greater LPG self-sufficiency in the coming years. While challenges remain, continued investment in these technical solutions will help ensure a stable and reliable domestic LPG market.",
"image": "/media/akA6AulgPyc074rrAspxiQKLw.webp",
"alt": "Addressing Indonesia’s LPG shortage",
"date": "2025-02-13",
"author": "Syahreza A. Mahmudi.",
"category": "Technical perspectives",
"language": "en",
"sourceUrl": "https://spejava.com/articles/addressing-indonesia-s-lpg-shortage-a-technical-and-strategic-perspective",
"featured": false,
"reviewRequired": false,
"imageWidth": 399,
"imageHeight": 195
}
24 changes: 24 additions & 0 deletions content/articles/aes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"slug": "aes",
"kind": "event",
"title": "Annual Energy Symposium",
"excerpt": "The Society of Petroleum Engineers (SPE) Annual Energy Symposium (AES) is an event that features a case study competition and technical discussions.",
"body": "The Society of Petroleum Engineers (SPE) Annual Energy Symposium (AES) is an event that features a case study competition and technical discussions.\n\n\n\nCase study competition\n\nSPE Java Section hosts an AES case study competition that focuses on a theme related to energy demand and carbon footprint. The competition includes a presentation and question-and-answer session for each team.\n\n\n\nTechnical discussions\n\nSPE Java Section also hosts technical discussions that feature presentations from industry professionals. These discussions are free to attend and open to all SPE members and non-members.",
"image": "/media/8xTvZaYPfIM9EwmXgPCatKkuoWs.webp",
"alt": "Original event poster: Annual Energy Symposium",
"date": "2024-11-24",
"author": "",
"category": "Section news",
"language": "en",
"sourceUrl": "https://spejava.com/articles/aes",
"featured": false,
"reviewRequired": false,
"event": {
"start": "2024-11-24",
"venue": "Indonesia",
"format": "AES",
"registrationStatus": "closed"
},
"imageWidth": 1800,
"imageHeight": 1198
}
Loading
Loading