Add flyer, friendly dates/times, and CSS to the JS events example#307
Merged
Conversation
…302] Render the event flyer (featured_image, guarded for null), format dates as "Saturday, July 19, 2026" and times as 12-hour (11:00 AM – 4:00 PM) instead of ISO/military, and style the list as cards with a scoped <style> block. 🐦⬛ Generated with Claude Code, orchestrated by Crow Co-Authored-By: Claude <noreply@anthropic.com> Crow-Session: 43D5CCA0-472E-44C1-8990-7243EBC9DF1C Claude-Session: https://claude.ai/code/session_01Qhzc67oVYG5NsCp3naTPDu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #303 and #306 (both merged). Polishes the render block in
docs/rest-api-javascript-example.md:event.featured_imageas an<img>(guarded fornull, so flyer-less events still render).2026-07-19→Saturday, July 19, 2026(parsed from parts to avoid the UTC weekday shift fromnew Date('YYYY-MM-DD')).16:00→4:00 PM; no timezone conversion since the values are local wall-clock for the event's timezone. Same-day events show a time range; multi-day events span both dates.<style>block presents the list as cards (rounded borders, subtle shadow + hover lift, flyer thumbnail, blue date emphasis).Field names verified against the live nanj.org feed (
featured_image,event_end_time,location_address,location_details). Docs-only.Refs #302.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Qhzc67oVYG5NsCp3naTPDu