Skip to content

safe-global/safe-homepage

Repository files navigation

Safe Homepage

license release

Editing content

The content for this website is stored in this repository in the /src/content folder as JSON files for each page.

To more easily edit these content files, there's an inline editing tool built into the website. You can access it by appending #admin to any page.

E.g.:

When in this admin mode you can click on any text on the page and edit it. Even on buttons and links.

Screenshot 2023-06-28 at 09 12 37

Once you edit a piece of text, a "Save edits" button will appear. Clicking on it will copy the content you've edited into your clipboard and take you to the corresponding JSON file on GitHub. There, you can paste the JSON into the GitHub editor and create a pull request from it.

Screenshot 2023-06-28 at 09 14 59

The PR will be then reviewed, merged and deployed by developers.

Getting started with development

These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

We use yarn in our infrastructure, so we decided to go with yarn in the README. Please install yarn globally if you haven't already.

Installing and running

Install dependencies for the project:

yarn install

To launch the dev version of the app locally:

yarn start

Building

To get a complete bundle use:

yarn build

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is released under the MIT License - see the LICENSE.md file for details.