Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

massgov/mayflower-starters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iframe Quickstart

Explanation of Github Pages for hosting apps

With the GitHub pages everytime an individual pushes to master branch the code will be updated on the live site. This could take about (~10 minutes) depending on how many dependencies the application is using within the code.

If the user is adding code to the develop branch it will not apppear on the GitHub Page until a Pull Request (PR) has been created to merge the develop branch into the master branch. Below shows a Pull Request being created with develop branch merged into master branch.

Merging develop branch into Master branch

Explanation of Mayflower

Mayflower is an open source repository that was created to be used on the Mass.gov website theming. With Mayflower being an open source it allows multiple other agencies to have access to this theming.

To use Mayflower in theming components for a widget or application:

Steps in adding a Mayflower component to the repository

  1. What components are needed for the widget or application?

    Here are some Mayflower components the repository might use:

  2. Base, Atoms, and Molecules within Mayflower are the building blocks for elements that could be used in iFrame.

    • Base - Colors
    • Atoms - Buttons, Forms, Headings, Icons, Lists, Media, Table, Text, Divider, and Decorative Link
    • Molecules - Callout Link and Field Submit
  3. Let's say the widget needs to use a Comp Heading. Here is how to add a component to html page

    1. Click Atoms in the Mayflower navigation

    2. Go to Headings which will expand to show all headings

    3. Click on the Comp Heading

    4. Within the page it will show the component click the Tools

    5. In the Tools click the Show Patterns Info

    6. The patterns will appear on the page click the HTML tab.

    7. Copy the html code

      
      <h2 class="ma__comp-heading" id="GUID9827924" tabindex="-1">Title text</h2>
      
      
    8. Paste the code to the html page and replace the Title Heading and id

Next steps to add CSS and Javascript to the html page:

  1. In the <header> </header> section the following will be added:

    
    <link rel="stylesheet" href="https://mayflower.digital.mass.gov/assets/css/base-theme-generated.css"  media="all" />
    <link rel="stylesheet" href="https://mayflower.digital.mass.gov/assets/css/index-generated.css" media="all" />
    <script src="https://mayflower.digital.mass.gov/assets/js/vendor/modernizr.js"></script>
    
    

    Explanation of adding the following CSS and Javascript files to the html page:

    • base-theme-generated.css is theme such as fonts and colors of components within Mayflower
    • index-generated.css is all components within Mayflower
  2. Before the </body> tag add the following:

    
    <!--Notes that this Mayflower assets-->
    <script src="https://mayflower.digital.mass.gov/assets/js/vendor-generated.js"></script>
    <script src="https://mayflower.digital.mass.gov/assets/js/index-generated.js"></script>
    
    

    Explanation of adding the following Javascripts files to the html page

    • vendor-generated.js is 3rd party dependecies such as jQuery.
    • index-generated.js is all components within Mayflower

Links to Mayflower, GitHub, and GitHub Pages documentation

Mayflower

  1. Mayflower GitHub Repository
  2. Mayflower website using the GitHub Pages to publish the website.
  3. Example of Resposity which uses Mayflower (RMV Wait Time Widget)

GitHub

  1. GitHub Guides
  2. On Demand Training for GitHub
  3. GitHub Help

GitHub Pages

  1. GitHub Pages Basics
  2. GitHub Pages from GitHub Desktop
  3. Troubleshooting GitHub Pages build
  4. What is GitHub Pages? (YouTube video)

About

This Mayflower HTML Starter is deprecated and replaced by the new Mayflower Template documentation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •