A marketing site for the Meso health insurance platform.
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:
- Make your copy changes on Github
- Create your pull request
- Preview your changes
- Merge your pull request
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
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.
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.
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
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.
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.