feat(events): Add script to fetch and display Zoho calendar events
This commit introduces a new script that fetches and normalizes event data from Zoho Calendar using OAuth2. The script makes an API call to retrieve calendar events for the current month. The event data is then processed and formatted to be used by a Nunjucks template. Key Changes: - test(dummy-data): Created a dummy calendar and dummy events for development and testing. - feat(events): Added a new script to fetch event data from Zoho Calendar. - feat(oauth2): Implemented OAuth2 authentication for secure API access. - refactor(data): Normalized the fetched data payload for consistency. - feat(ui): Integrated the normalized data with a Nunjucks template to dynamically populate "event cards" on the community events page.
This commit is contained in:
120
src/_data/communityEvents.js
Normal file
120
src/_data/communityEvents.js
Normal file
@@ -0,0 +1,120 @@
|
||||
/**
|
||||
* @fileoverview This data file contains all community events for Bloom Valley Nursery Demo.
|
||||
*/
|
||||
|
||||
const communityEvents = [
|
||||
// BVN Workshops
|
||||
{
|
||||
id: "WS-01",
|
||||
title: "Gardening and Landscaping 101",
|
||||
description: "Join Bethany Bloom as she shares tips for creating a themed decor throughout the home that you will be delighted to share with your holiday guests.",
|
||||
dayOfWeek: "Tuesday",
|
||||
time: "6:30 pm",
|
||||
month: "September",
|
||||
year: 2025,
|
||||
type: "bvn",
|
||||
category: "workshop"
|
||||
},
|
||||
{
|
||||
id: "WS-02",
|
||||
title: "Gardening and Landscaping 101",
|
||||
description: "Join Bethany Bloom as she shares tips for creating a themed decor throughout the home that you will be delighted to share with your holiday guests.",
|
||||
dayOfWeek: "Tuesday",
|
||||
time: "6:30 pm",
|
||||
month: "October",
|
||||
year: 2025,
|
||||
type: "bvn",
|
||||
category: "workshop"
|
||||
},
|
||||
{
|
||||
id: "WS-03",
|
||||
title: "Gardening and Landscaping 101",
|
||||
description: "Join Bethany Bloom as she shares tips for creating a themed decor throughout the home that you will be delighted to share with your holiday guests.",
|
||||
dayOfWeek: "Tuesday",
|
||||
time: "6:30 pm",
|
||||
month: "November",
|
||||
year: 2025,
|
||||
type: "bvn",
|
||||
category: "workshop"
|
||||
},
|
||||
{
|
||||
id: "WS-04",
|
||||
title: "Deck the Halls",
|
||||
description: "Join Nathaniel and Vincent as they guide us through picking and tending the perfect live Christmas tree for your Christmas decoration focal-point.",
|
||||
dayOfWeek: "Saturday",
|
||||
time: "10:00 am",
|
||||
month: "November",
|
||||
year: 2025,
|
||||
type: "bvn",
|
||||
category: "workshop"
|
||||
},
|
||||
|
||||
// BVN Events
|
||||
{
|
||||
id: "CE-01",
|
||||
title: "Christmas Eve and Christmas Day Closure",
|
||||
description: "Bloom Valley Nursery will close on Christmas Eve at 8:00 pm. The nursery will remain closed until January 2nd while we make improvements to the nursery grounds and store. Happy Holidays!",
|
||||
dayOfWeek: "Wednesday",
|
||||
time: "8:00 pm",
|
||||
month: "December",
|
||||
year: 2025,
|
||||
type: "bvn",
|
||||
category: "event"
|
||||
},
|
||||
|
||||
// Community-Wide Events
|
||||
{
|
||||
id: "CE-02",
|
||||
title: "Tree Lighting Ceremony",
|
||||
description: "Help us kick off the Holiday festivities by joining the Bloom family, along with the Bloom Valley Chamber of Commerce, the Bloom Valley Garden Club, and other local organizations, in front of City Hall. Includes performances, workshops, and the annual Chili Cook-off.",
|
||||
dayOfWeek: "Thursday",
|
||||
time: "6:00 pm",
|
||||
month: "December",
|
||||
year: 2025,
|
||||
type: "community",
|
||||
location: "City Hall",
|
||||
category: "event"
|
||||
},
|
||||
{
|
||||
id: "CE-03",
|
||||
title: "Halloween Spooktacular",
|
||||
description: "Join the Bloom Valley community for an evening of family-friendly Halloween fun, including costume contests, pumpkin carving, and trick-or-treating around the nursery.",
|
||||
dayOfWeek: "Friday",
|
||||
time: "5:00 pm",
|
||||
month: "October",
|
||||
year: 2025,
|
||||
type: "community",
|
||||
location: "Bloom Valley Nursery",
|
||||
category: "event"
|
||||
},
|
||||
{
|
||||
id: "CE-04",
|
||||
title: "Thanksgiving Harvest Festival",
|
||||
description: "Celebrate the season with a community Thanksgiving festival. Enjoy local food vendors, a farmers' market, and workshops on holiday décor and seasonal planting.",
|
||||
dayOfWeek: "Thursday",
|
||||
time: "11:00 am",
|
||||
month: "November",
|
||||
year: 2025,
|
||||
type: "community",
|
||||
location: "Bloom Valley Community Park",
|
||||
category: "event"
|
||||
},
|
||||
|
||||
// Cleanup Event
|
||||
{
|
||||
id: "CU-01",
|
||||
title: "Community Garden Workday",
|
||||
description: "Help keep our community garden thriving! Volunteers will help with planting, weeding, and general maintenance. All tools provided.",
|
||||
dayOfWeek: "Saturday",
|
||||
time: "9:00 am",
|
||||
month: "October",
|
||||
year: 2025,
|
||||
type: "community",
|
||||
location: "Bloom Valley Community Garden",
|
||||
category: "cleanup"
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
communityEvents
|
||||
};
|
Reference in New Issue
Block a user