This component is used for the client to list their rates in a table.
This component includes a SECTION on the existing homepage, and also includes its own unique subpage template.
Homepage
JSON Files
package.json- For the homepage “featured rates” section, all the necessary pieces in the mustache are controlled by thepackage.jsonfile. Make sure that yourcomponentRatesvariable in thepackage.jsonfile is set totrueif things aren’t working!-make.json- Since this is a component that adds content areas to the homepage, make sure to rungulp make-everything, grab the list of content areas from thetemplates.jsonthat is generated, and paste them into the home template in your-make.jsonfile.
Mustache Files
src > templates > _partials > rates-featured.mustache - The featured rate template file. If you are using the most recent files, this will be automatically un-commented based off of the "componentRates": true setting in your package.json.
Styling
src > scss > themes > _general.scss- Styling for pieces that are shared between all 3 themes.src > scss > themes > [yourtheme].scss- Styling for the homepage feature AND subpage sections.
Subpage
Mustache Files
src > templates > rates.mustache - The main template file.
Script
src > scripts > script.js - Script to ensure the tables still scroll properly (because they’re inside an accordion)
Styling
src > scss > themes > [yourtheme].scss - Styling for the homepage feature AND subpage sections.
Example Sites
Alabaster
- HOMEPAGE SECTION: Pioneer Bank (Stanley)
- SUBPAGE: Pioneer Bank (Stanley)
Rosewood
- HOMEPAGE SECTION: Bank of Cleveland
- SUBPAGE: Bank of Cleveland