# Juegaterapia

> I joined an agency project for the Spanish foundation Juegaterapia, which helps children with cancer through play. I turned the finished markup into a set of WordPress blocks the administrator builds pages from, and fixed the half-finished home page blocks.

Case study · Website: https://vitaliihura.com/work/juegaterapia

- Author: [Vitalii Hura](https://vitaliihura.com/), Full-Stack Developer
- Role: WordPress developer
- Stack: PHP, WordPress, Gutenberg, JavaScript
- Timeline: 2 weeks
- Year: 2022
- Client: Juegaterapia Foundation, through an agency
- Website: https://www.juegaterapia.org/

## The task

The foundation ordered a new site from an agency. Design and markup for 30+ pages were ready, but only part of the home page had been moved into WordPress, and it worked with errors. The agency needed a developer who could quickly turn the markup into a set of blocks, so the administrator could build any page from them. Tasks came through the agency's project manager, and their developer reviewed the finished code.

## What was built

- **Blocks from the finished markup.** I turned every section of the markup into a WordPress editor block. Texts, photos and buttons are changed in the admin, no developer needed.
- **One set for the whole site.** Many pages on the site look alike, so one set of blocks builds the foundation sections, the projects and the pages for volunteers and partners.
- **Half-finished blocks fixed.** The theme already had half-finished home page blocks, but with bugs. I found and fixed them, and the home page started working.
- **Empty fields don't break the page.** If something is left empty in the admin, the block simply skips that part and the page stays intact.

## Result

In five days, 70-80% of the blocks were ready. After that I finished the set together with the agency's developer, and their team launched the site. Today juegaterapia.org runs on this theme, and its inner pages are built from blocks in this set.

## What the site looks like

- Hospital projects: A slider of projects that turn hospital wards into play spaces. ![Humanizamos hospitales block with a slider of the foundation's hospital projects](https://vitaliihura.com/storage/cases/juegaterapia-hospitales.jpg?v=1793992905)
- Baby Pelones dolls: The foundation's dolls: money from their sales funds new projects for children. ![Baby Pelones block with the foundation's doll and buy buttons](https://vitaliihura.com/storage/cases/juegaterapia-pelones.jpg?v=1793993661)
- The foundation in numbers: The foundation's key numbers: donated consoles, volunteers, projects and doll kits. ![Conoce Juegaterapia block on the home page with four foundation figures](https://vitaliihura.com/storage/cases/juegaterapia-conoce.jpg?v=1793992905)

Build something similar: https://vitaliihura.com/quote
