/meso-site

Meso informational landing page

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Meso

A marketing site for the Meso health insurance platform.

Editing content from Github

Content for this site can be found in content.yml, a YAML file. Changing that file will update the site.

To update the content follow these four steps:

  1. Make your copy changes on Github
  2. Create your pull request
  3. Preview your changes
  4. Merge your pull request

Making your changes on Github

Open up up this link: content.yml. From that page, click on the pencil "edit" icon on the top-right of the file. It looks like this:



This opens up a text editor to change the file. Adjust the copy you want from this file. YAML is a human-friendly language, so follow the existing format and you'll be fine. Two quick rules to note:

  • Only change text after the colon
  • Make sure you use two spaces to indent the text

Creating your pull request

Once you've made your edits you'll create a pull request, a way to propose changes to files.

At the bottom of the edit page, tap the "Create a new branch and start a pull request" box and hit the green button. Then, press "create pull request" to make your changes into a pull request. You'll be taken to the pull request page.



Merging your pull request

If you're happy with your changes, press the big "Merge pull request" button. Within the minute, https://meso.health will be updated with your changes.

Contributing

Getting started

To run the site locally, you'll want to clone the repo and install the dependencies:

git clone https://github.com/Meso-Health/meso-site
cd meso-site
npm install

You can start the local webserver by running:

npm start

Summary

The site is built on top of create-react-app, an easy development environment for building apps with React. We use react-snap to render our React app as static HTML and CSS to help with page load times. Content is loaded from the content.yml to make copy edits easier.

Deployment

This site is built as a set of static files and hosted on Netlify. Currently, there's only a production environment, meso-health, since changes can easily be previewed locally.