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:
37
src/_data/testimonials.js
Normal file
37
src/_data/testimonials.js
Normal file
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* @fileoverview This data file contains all testimonials for the Testimonials Feature.
|
||||
*/
|
||||
|
||||
/* **Unit Template**
|
||||
{
|
||||
"id": "",
|
||||
"clientName": "",
|
||||
"testimonial": "",
|
||||
"dateObtained": ""
|
||||
}
|
||||
*/
|
||||
|
||||
const testimonials = [
|
||||
{
|
||||
"id": "T01",
|
||||
"clientName": "Caroline N.",
|
||||
"testimonial": "My order arrived the very next day. The speed of delivery and high-quality products provided by Bloom Valley Nursery helped my project go smoothly from start to finish!",
|
||||
"dateObtained": "2024-11-23"
|
||||
},
|
||||
{
|
||||
"id": "T02",
|
||||
"clientName": "Morris F.",
|
||||
"testimonial": "Thanks to the Gardening 101 Workshop with Bethany and Bloom Valley Nursery's amazing line of products, I won 'Best Azaleas' at the 2024 Royal Horticultural Society's American Cup!",
|
||||
"dateObtained": "2024-12-03"
|
||||
},
|
||||
{
|
||||
"id": "T03",
|
||||
"clientName": "Gladis B.",
|
||||
"testimonial": "Bloom Valley Nursery's community garden inspired me take charge of my health. I was able to lose 50 pounds!",
|
||||
"dateObtained": "2025-03-22"
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
testimonials
|
||||
};
|
Reference in New Issue
Block a user