Datawheel / oec-website

The website powering the Observatory of Economic Complexity
atlas.media.mit.edu
8 stars 1 forks source link

resource pages #49

Open davelandry opened 4 years ago

davelandry commented 4 years ago
davelandry commented 4 years ago

@nicoperezmundaca I just reviewed your implementation with Alex, and we think it's overkill for what we need.

davelandry commented 4 years ago

@nicoperezmundaca I set up the page route:

https://github.com/Datawheel/oec-website/blob/6cd9b4220819a243136e4e2743ba91524e6a28e4/app/routes.jsx#L85

Take a look at how that component conditionally renders: https://github.com/Datawheel/oec-website/blob/6cd9b4220819a243136e4e2743ba91524e6a28e4/app/pages/Resources/index.jsx

Don't worry about CSS too much, just content. I can go in and tweak styles later.

davelandry commented 4 years ago

@nicoperezmundaca while you're hooking these up, can you also add <Helmet /> elements for the window titles? Here's how I did it on Privacy/Terms: https://github.com/Datawheel/oec-website/commit/c03941c3bb95b12baf2c85496f116aaacd0067f8