GithubHelp home page GithubHelp logo

isabella232 / federalist-beta-feedback-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 18f/federalist-beta-feedback-template

0.0 0.0 0.0 28.13 MB

Converting a feedback site into a Federalist template

Home Page: https://federalist-proxy.app.cloud.gov/site/18f/federalist-beta-feedback-template/

Ruby 8.63% HTML 50.60% CSS 37.40% JavaScript 3.37%

federalist-beta-feedback-template's Introduction

OpenBeta.USAspending.gov       Build Status

When the new USAspending.gov – the taxpayer site built for taxpayer needs – is launched in May 2017, users will have an open window into government spending. Users will be able to track Federal spending from congressional appropriations down to purchases and grant details -- what was bought, from whom, when, and for how much.

Treasury will be making updates and adding proposed features to the site that looks to gain feedback from the public for how best to display how the Federal government is spending taxpayer money.

Setup

  • Clone the repo into your project directory:
git clone https://github.com/fedspendingtransparency/openbeta.git
  • Change the current directory:
cd openbeta
  • This site uses Jekyll. To run it:
jekyll serve --watch
  • Open your browser to http://localhost:4000/dev/

Frameworks & Libraries Included:

  1. Jekyll
  2. Bourbon.io
  3. Neat
  4. Slick
  5. Font Awesome
  6. Lightbox
  7. Disqus

Adding and Editing Site Content

Page content can be found in either a YAML or Markdown file.

Header:

  • /_data/header.yml
  • To add new items to the navigation bar, add
- text:
  url:

Footer:

  • /_data/footer.yml

Home Page (/):

  • /_data/home.yml
  • To add a new slide to the carousel, add the following under the carousel line item
- usa_intro:
  banner_title:
  banner_label:
  banner_cta:
  banner_cta_link:
  banner_image:
  banner_image_alt_text:
  • The sections below the carousel are hard coded into position but the content can be updated.

About Page (/about):

  • /_data/about.yml

Contact Page (/contact):

  • /_data/contact.yml

Concepts Page (/concepts):

  • /_data/concepts-landing-page.yml
  • Three (3) tabs: Active, Completed, Archived
  • When adding a new category, it will auto-populate onto the page

Topic Pages (/concepts/:path):

Topics are using Jekyll's Collections feature. It works in the same way as blog posts except it has its own unique properties. Each file in the _concepts folder pertains to one topics page.

The URL is determined by the file name.

This template contains logic that results in two (2) different looks:

Contract Award Summary Page - /concepts/contract-award-summary

The page can contain tabs which are specified in the topics Markdown page through this field: tabs_required: yes.

Tab names are created from the title: field.

To create a new Disqus comments section, include disqus_identifier which can be any unique ID of your choosing. In order for Disqus to enable a unique comments section per tab, the url_hash must contain #! before the name of the tab.

Search Results Page - /concepts/search-results

This page does not contain tabs, which is specified by tabs_required: no.

For Testing

Travis uses Bundler and the Rakefiles to run tests on pull requests. To emulate this environment locally, run bundle install --path vendor/bundle

federalist-beta-feedback-template's People

Contributors

siempa avatar avaleske avatar meredithsocrata avatar sniderna avatar kaitlin avatar aguynamedmarco avatar lisaam avatar meredithu avatar opleban avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.