Back to Projects

Corporate Responsibility

Generates a random corporate responsibility with a matching background. Utilizes ReactJS and two API's

About this Project

This interactive web application generates random corporate responsibility statements paired with matching background images. The app combines professional-sounding corporate jargon with visually appealing backgrounds to create unique, shareable content that playfully satirizes corporate culture.

Features

  • Dynamic content generation with each click
  • Integration with multiple external APIs (Pixabay & CorporateBS)
  • Responsive design for all device sizes
  • Elegant transitions between content changes
  • One-click regeneration for new combinations

Challenges & Solutions

The Challenge

The main challenge was coordinating multiple API calls efficiently while ensuring the background image thematically matched the generated text. Additionally, handling potential API failures gracefully without disrupting the user experience required careful error handling.

The Solution

I implemented async/await patterns with proper error handling to manage API requests. For theme matching, I developed an algorithm that analyzes key terms in the generated text and sends relevant search queries to the Pixabay API to find a relevant background image.