# tangram-tutorial **Repository Path**: mirrors_tangrams/tangram-tutorial ## Basic Information - **Project Name**: tangram-tutorial - **Description**: Tangram Tutorial - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-12-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Tangram Tutorial This tutorial exposes a complete beginner to the basics of Tangram using an embedded version of Tangram Play. To view online go to: [Tangram Tutorial](https://tangrams.github.io/tangram-tutorial/) ## Adding tutorial sections ### Steps 1. Create a markdown file with the section content and place it in `src/Assets/markdown/`, following writing rules as specified in the 'markdown specifications' section of this readme. 2. Place any YAML scene files you wish to use for an embedded Tangram Play within `src/Assets/tutorial-files/`. 3. Go to `src/Components/content.js` and add the section details to the `content` variable. The order of the array represents the order in which the tutorial pages will render. For example: ``` let content = [ { title: 'Introduction', sections: [ { path: '/intro', markdown: 'intro.md', name: 'Introduction' } ] }, { title: 'A Basic Map', sections: [ { path: '/minimum-map/min', markdown: 'min1.md', name: 'A Basic Map'}, { path: '/minimum-map/data', markdown: 'min2.md', name: 'Layers and Data Import'} ] }, ... ] ``` `title` will be the main title for the section sidebar. Each entry within `sections` corresponds to an individual page for which `path` is the url for the page, `markdown` represents the markdown file containing the section content, and `name` will be the name for the section on the sidebar. That's it! ### Markdown specifications All of the content in the tutorial is being generated from markdown. To do so, we've implemented a few different ways to add objects and content. In the background, some of the markdown will get converted into HTML and some of it will get converted into JSX to be rendered by the react component `Tutorial.jsx`. #### Images Images can be added using the following convention (note there are no line breaks, its important!): ``` [section] { "type": "image", "width": "60%", "src": "min.png" } [section] ``` `type`, `width`, and `src` are all required properties. The `src` property should just point to an image within the `src/Assets/images/` folder. In the background, some JSX will eventually be generated for images. #### Embedding Tangram Play A Tangram Play `